DynamicFormatFlag

Function Usage

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. The default value is false.

Prototype

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

Example

For details, see the calling examples in SetOpSelectFormat.