mirror of
https://github.com/NicolasBohn/NexQuant.git
synced 2026-07-27 23:47:46 +00:00
fix: ignore RuntimeError for shared workspace double recovery (#1140)
* fix: ignore RuntimeError for shared workspace double recovery * add print
This commit is contained in:
@@ -439,7 +439,12 @@ class Experiment(
|
||||
self.experiment_workspace.recover_ws_ckp()
|
||||
for ws in self.sub_workspace_list:
|
||||
if ws is not None:
|
||||
ws.recover_ws_ckp()
|
||||
try:
|
||||
ws.recover_ws_ckp()
|
||||
except RuntimeError:
|
||||
# the FBWorkspace is shared between experiment_workspace and sub_workspace_list,
|
||||
# so recover_ws_ckp will raise RuntimeError if a workspace is recovered twice.
|
||||
print("recover_ws_ckp failed due to one workspace is recovered twice.")
|
||||
|
||||
|
||||
ASpecificExp = TypeVar("ASpecificExp", bound=Experiment)
|
||||
|
||||
Reference in New Issue
Block a user