GetExecuteMode
Function Usage
Returns the execution mode of the current operator.
Prototype
1 | ExecuteMode GetExecuteMode() const |
Parameters
None
Returns
The enumeration value of ExecuteMode is returned, indicating the running mode of the current operator.
1 2 3 4 5 | enum class ExecuteMode { kStaticOffloadExecute, // Execution in static graph mode kDynamicExecute, // Execution in dynamic graph mode kEnd //end }; |
Constraints
None
Examples
1 2 3 4 | ExecuteMode GetExecuteMode(ExeResGenerationContext *context) { ExecuteMode mode = *context->GetExecuteMode(); ... } |
Parent topic: ExeResGenerationContext