Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions returnn/training.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,13 @@ def __init__(
for pt_path in [self.output_path("models/epoch.%.3d.pt" % k)]
}
self.out_models = None
elif self.returnn_config.get("backend", None) == "jax":
# A directory, not a file.
# Not directory=True: pre-creating them empty could confuse other code.
self.out_checkpoints = {
k: self.output_path("models/epoch.%.3d.orbax" % k) for k in stored_epochs if k in self.keep_epochs
}
self.out_models = None
else:
raise ValueError("'backend' not specified in config")

Expand Down
Loading