We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8afe26d commit 1d118c4Copy full SHA for 1d118c4
torchtnt/framework/callbacks/dcp_saver.py
@@ -136,7 +136,12 @@ def _checkpoint_impl(
136
planner: Optional[SavePlanner] = None,
137
storage_writer: Optional[StorageWriter] = None,
138
) -> bool:
139
- if hook not in ["on_train_step_end", "on_train_epoch_end", "on_train_end"]:
+ if hook not in [
140
+ "on_train_step_end",
141
+ "on_train_epoch_end",
142
+ "on_train_end",
143
+ "on_eval_epoch_end",
144
+ ]:
145
raise RuntimeError(f"Unexpected hook encountered '{hook}'")
146
147
intra_epoch = hook == "on_train_step_end"
0 commit comments