[Tune] Better error when using checkpoint_freq (#9998)

This commit is contained in:
Amog Kamsetty
2020-08-10 13:52:46 -07:00
committed by GitHub
parent be8e63d477
commit 856d4a0533
4 changed files with 15 additions and 9 deletions
+4 -5
View File
@@ -120,13 +120,12 @@ class Experiment:
restore=None):
config = config or {}
if callable(run) and detect_checkpoint_function(run):
if checkpoint_at_end:
raise ValueError(
"'checkpoint_at_end' cannot be used with a "
"checkpointable function. You can specify and register "
"checkpoints within your trainable function.")
raise ValueError("'checkpoint_at_end' cannot be used with a "
"checkpointable function. You can specify "
"and register checkpoints within "
"your trainable function.")
if checkpoint_freq:
raise ValueError(
"'checkpoint_freq' cannot be used with a "