aclgrphParseONNXFromMem
Applicability
|
Product |
Supported or Not |
|---|---|
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
Header File/Library File
Function Usage
Parses an ONNX model loaded to the memory into a graph.
Prototype
1
|
graphStatus aclgrphParseONNXFromMem(const char *buffer, size_t size, const std::map<ge::AscendString, ge::AscendString> &parser_params, ge::Graph &graph) |
Parameters
|
Parameter |
Input/Output |
Description |
|---|---|---|
|
buffer |
Input |
Pointer to the ONNX model. It is loaded to the memory buffer in binary mode and has not been deserialized. |
|
size |
Input |
Size of the memory buffer. |
|
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
Restrictions
None