OP_MODE

Function Usage

Encapsulates an operator's run mode, specifically, whether the HF32 data type is allowed during computation.

Prototype

OP_MODE(x...)

Parameters

Parameter

Input/Output

Description

x...

Input

Operator execution mode. For details, see OpExecMode. The default value is 0, indicating the default mode.

Constraints

None.

Example

1
2
// Encapsulate the operator run mode.
OP_MODE(OP_EXEC_MODE_DEFAULT);