Issue 8919 checkpoint at end ignored (#8933)

This commit is contained in:
Sven Mika
2020-06-16 08:51:20 +02:00
committed by GitHub
parent bdf1404a5f
commit 0c7764b010
2 changed files with 4 additions and 0 deletions
+3
View File
@@ -124,6 +124,9 @@ def ckpt_restore_test(alg_name, tfe=False):
if abs(a1 - a2) > .1:
raise AssertionError("algo={} [a1={} a2={}]".format(
alg_name, a1, a2))
# Stop both Trainers.
alg1.stop()
alg2.stop()
class TestCheckpointRestore(unittest.TestCase):
+1
View File
@@ -149,6 +149,7 @@ def run(args, parser):
args.experiment_name: { # i.e. log to ~/ray_results/default
"run": args.run,
"checkpoint_freq": args.checkpoint_freq,
"checkpoint_at_end": args.checkpoint_at_end,
"keep_checkpoints_num": args.keep_checkpoints_num,
"checkpoint_score_attr": args.checkpoint_score_attr,
"local_dir": args.local_dir,