aclgrphParseONNX

Description

Parses an ONNX model into a graph.

Prototype

graphStatus aclgrphParseONNX(const char *model_file, const std::map<ge::AscendString, ge::AscendString> &parser_params, ge::Graph &graph);

Restrictions

None

Parameters

Parameter

Input/Output

Description

model_file

Input

Path of the original ONNX model.

parser_params

Input

A key-value mapping table of type AscendString, for describing the parsing parameters of original model.

For details, see Configuration Parameters of Model Parsing APIs.

graph

Output

Parsed graph.

Returns

Parameter

Type

Description

-

graphStatus

0 on success;

else, failure.