Skip to content

Commit

Permalink
feat(trainer): save checkpoints when load no data (#1066)
Browse files Browse the repository at this point in the history
* feat(trainer): save checkpoints when load no data

* feat(trainer): save checkpoints when load no data

* feat(trainer): save checkpoints when load no data

* feat(trainer): save checkpoints when load no data
  • Loading branch information
lixiaoguang01 authored Jan 6, 2023
1 parent 64faf0a commit 86a9f3e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@ on:

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
# As long as we need Python 3.6 here in the test, we can only use up to Ubuntu 20.
# https://github.com/actions/setup-python/issues/544
os: [ubuntu-20.04]
runs-on: ${{ matrix.os }}
name: CI tests
steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion fedlearner/trainer/trainer_master.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ def _session_run(self, estimator):
and (self._save_checkpoint_secs \
or self._save_checkpoint_steps):
hooks.append(
_CheckpointSaverHook(
tf.train.CheckpointSaverHook(
checkpoint_dir=self._checkpoint_path,
save_secs=self._save_checkpoint_secs,
save_steps=self._save_checkpoint_steps,
Expand Down

0 comments on commit 86a9f3e

Please sign in to comment.