mirror of
https://github.com/wassname/ray.git
synced 2026-08-09 12:20:09 +08:00
[Tune] Better error when using checkpoint_freq (#9998)
This commit is contained in:
@@ -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 "
|
||||
|
||||
Reference in New Issue
Block a user