Updated on 2022-03-13 GMT+08:00

ParseParamsFn

Function

Parses parameters.

Syntax

OpRegistrationData& ParseParamsFn(ParseParamFunc parseParamFn);

Parameter Description

Parameter

Input/Output

Description

parseParamFn

Input

Callback function ParseParamFunc. For details, see Callback Function ParseParamFunc.

Callback Function ParseParamFunc

You can customize and implement the ParseParamFunc class functions to convert the parameters and weights of the Caffe model and fill the results in the Operator class.

Syntax

Status ParseParamFunc(const Message* op_origin, ge::Operator& op_dest);

Parameter Description

Parameter

Input/Output

Description

op_origin

Input

Data structure in protobuf format (from the prototxt file of the Caffe model), including operator parameter information

op_dest

Output

Operator data structure of offline model supported by the Ascend AI processor, which stores operator information

For details about the operator class, see Operator Class APIs in GE API Reference.