DynamicFormatFlag
Function
Determines whether to automatically infer the dtype and format supported by the operator inputs and outputs based on the function configured in SetOpSelectFormat. If this function is set to true, you do not need to configure fixed dtype and format during prototype registration, because the inference function will be called to infer them.
Prototype
1 | OpAICoreConfig &DynamicFormatFlag(bool flag) |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
flag |
Input |
Determines whether to automatically infer the dtype and format supported by the operator inputs and outputs. |
Returns
OpAICoreConfig class. For details, see OpAICoreConfig.
Constraints
None
Examples
For details, see the calling examples in SetOpSelectFormat.
Parent topic: OpAICoreConfig