Skip to content

Commit d464c11

Browse files
authored
Merge pull request #335 from Project-MONAI/mqin/Fix_issue_326_init_state
Fix the setting of init state in its own PR, instead of rolled into others
2 parents 1a8cf86 + 251362d commit d464c11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

monai/deploy/operators/monai_bundle_inference_operator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ def compute(self, op_input: InputContext, op_output: OutputContext, context: Exe
460460
if not self._init_completed:
461461
self._bundle_path = self._model_network.path
462462
self._init_config(self._bundle_config_names.config_names)
463-
self._init_completed
463+
self._init_completed = True
464464
elif self._bundle_path:
465465
# For the case of local dev/testing when the bundle path is not passed in as an exec cmd arg.
466466
# When run as a MAP docker, the bundle file is expected to be in the context, even if the model

0 commit comments

Comments
 (0)