monai.deploy.core.ExecutionContext¶
- class monai.deploy.core.ExecutionContext(context, op)[source]¶
Bases:
monai.deploy.core.execution_context.BaseExecutionContext
An execution context for the operator.
Methods
__init__
(context, op)Returns the execution index for the operator.
Increases the execution index for the operator.
Attributes
input
- rtype
Returns the input context for the operator.
models
- rtype
op
output
- rtype
Returns the output context for the operator.
storage
- rtype
- get_execution_index()[source]¶
Returns the execution index for the operator.
The execution index is incremented every time before the operator is executed. For the first time, the execution index is set to 0.
- Returns
The execution index(int) for the operator.
- increase_execution_index()[source]¶
Increases the execution index for the operator.
This index number would be increased once for each call to the operator so that the operator can be executed multiple times.
- property input_context¶
Returns the input context for the operator.
- property output_context¶
Returns the output context for the operator.