FusionParseParamsFn

Description

Registers a function for parsing the attributes of a fused operator.

Prototype

OpRegistrationData &FusionParseParamsFn(const FusionParseParamFunc &fusionParseParamFn)

Parameters

Parameter

Input/Output

Description

fusionParseParamFn

Input

Function for parsing the attributes of a fused operator. For details, see Callback Function FusionParseParamFunc.

Restrictions

For fused operator plugins, the FusionParseParamsFn API will be deprecated in later versions. Use the FusionParseParamsFn (Overload) API instead.

Callback Function FusionParseParamFunc

Call the user-defined FusionParseParamFunc function to map operator attributes of the original model to those of the model adapted to Ascend AI Processor and fill the result in class Operator.

Status FusionParseParamFunc(const vector<const google::protobuf::Message *> &v_op_origin, ge::Operator &op_dest)

Table 1 Parameters

Parameter

Input/Output

Description

v_op_origin

Input

Data structure in Protobuf format (from the source .prototxt file) within the scope, which stores the operator information.

op_dest

Output

Data structure that stores the fused operator information.

For details about class Operator, see Operator.