Skip to content

Commit

Permalink
Orca pytorch load checkpoint bugfix (intel-analytics#3115)
Browse files Browse the repository at this point in the history
* Orca pytorch load checkpoint bugfix

* fix
  • Loading branch information
cyita authored and yangw1234 committed Sep 26, 2021
1 parent 66bd22a commit edcd5cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/orca/src/bigdl/orca/learn/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def find_latest_checkpoint(model_dir, model_type="bigdl"):
if model_type == "bigdl":
optim_regex = ".*\.[0-9]+$"
elif model_type == "pytorch":
optim_regex = "TorchModel[0-9a-z]{8}\.[0-9]+$"
optim_regex = "TorchModel[0-9a-z]*\.[0-9]+$"
elif model_type == "tf":
optim_regex = "TFParkTraining\.[0-9]+$"
else:
Expand Down

0 comments on commit edcd5cf

Please sign in to comment.