GetScheduleMode
Description
Obtains the scheduling mode of operators when they are executed on NPUs.
Prototype
uint32_t GetScheduleMode() const
Parameters
None
Returns
schedule_mode is returned.
- 0 (default): common mode.
- 1: batch mode, which needs to be set only in the model execution scenario where inter-core synchronization operators exist in the model. In this mode, operators cannot be called directly or indirectly through single-operator APIs.
Restrictions
None
Example
ge::graphStatus TilingForAdd(TilingContext *context) {
auto schedule_mode = context->GetScheduleMode();
...
}
Parent topic: TilingContext