Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 86a9f3e

Browse files
authoredJan 6, 2023
feat(trainer): save checkpoints when load no data (#1066)
* 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
1 parent 64faf0a commit 86a9f3e

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed
 

‎.github/workflows/ci.yaml

+6-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,12 @@ on:
1010

1111
jobs:
1212
test:
13-
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
# As long as we need Python 3.6 here in the test, we can only use up to Ubuntu 20.
16+
# https://github.com/actions/setup-python/issues/544
17+
os: [ubuntu-20.04]
18+
runs-on: ${{ matrix.os }}
1419
name: CI tests
1520
steps:
1621
- uses: actions/checkout@v2

‎fedlearner/trainer/trainer_master.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ def _session_run(self, estimator):
318318
and (self._save_checkpoint_secs \
319319
or self._save_checkpoint_steps):
320320
hooks.append(
321-
_CheckpointSaverHook(
321+
tf.train.CheckpointSaverHook(
322322
checkpoint_dir=self._checkpoint_path,
323323
save_secs=self._save_checkpoint_secs,
324324
save_steps=self._save_checkpoint_steps,

0 commit comments

Comments
 (0)
Please sign in to comment.