NeedCheckSupportFlag

Function Usage

Determines whether to call the operator parameter verification function to verify the data type and shape during operator fusion.

  • If this function is set to true, the framework calls the operator parameter verification function configured through SetCheckSupport to check whether the operator supports specified inputs. In this scenario, you need to implement the callback function for operator parameter verification.
  • If it is set to false, the verification is not required. The default value is false.

Prototype

OpAICoreConfig &NeedCheckSupportFlag(bool flag);

Parameters

Parameter

Input/Output

Description

flag

Input

Determines whether to call the operator parameter verification function to verify the data type and shape during operator fusion.

Returns

OpAICoreConfig class. For details, see OpAICoreConfig.

Constraints

None

Example

For details, see the calling examples in SetCheckSupport.