FusionParseParamsFn
Function Usage
Registers a function for parsing the attributes of a fused operator.
Prototype
1
|
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. |
Constraints
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 AI processor and fill the result in class Operator.
1
|
Status FusionParseParamFunc(const vector<const google::protobuf::Message *> &v_op_origin, ge::Operator &op_dest) |
|
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. |