Skip to content

Commit

Permalink
auto updates (#6938)
Browse files Browse the repository at this point in the history
  • Loading branch information
monai-bot authored Sep 4, 2023
1 parent 4ea40cf commit 37b58fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion monai/bundle/scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ def load(

if model is None and _workflow is None:
return model_dict
model = _workflow.network_def if model is None else model # type: ignore
model = _workflow.network_def if model is None else model
model.to(device)

copy_model_state(dst=model, src=model_dict if key_in_ckpt is None else model_dict[key_in_ckpt], **copy_model_args)
Expand Down
2 changes: 1 addition & 1 deletion monai/bundle/workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ def add_property( # type: ignore[override]
"""
super().add_property(name=name, required=required, desc=desc)
self.properties[name][BundlePropertyConfig.ID] = config_id # type: ignore[index]
self.properties[name][BundlePropertyConfig.ID] = config_id

def _check_optional_id(self, name: str, property: dict) -> bool:
"""
Expand Down

0 comments on commit 37b58fc

Please sign in to comment.