FusionParseParamsFn

Function

Registers the function for parsing fusion operator attributes.

Function Prototype

OpRegistrationData &FusionParseParamsFn(const FusionParseParamFunc &fusionParseParamFn)

Parameters

ParameterInput/OutputDescription
fusionParseParamFnInputFunction for parsing fusion operator attributes. See the callback function FusionParseParamFunc.

Constraints

For fusion operator plugins, the FusionParseParamsFn API will be deprecated in later versions. Use the FusionParseParamsFn (Overload) API to parse fusion operator attributes.

Callback Function FusionParseParamFunc

Users customize and implement the FusionParseParamFunc class function to complete the mapping of attributes from the original model to the model adapted to the AI processor, and fill the results into the Operator class.

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

Table 1 Parameters

ParameterInput/OutputDescription
v_op_originInputA protobuf-format data structure within a scope (derived from the prototxt file of the original model), containing operator attribute information.
op_destOutputFusion operator data structure, which stores fusion operator information.

For details about the Operator class, see GE Graph Engine API.