Browse Source

add onnx model parse api

pull/134/head
baker 5 years ago
parent
commit
2549894836
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      parser/onnx/onnx_parser.cc

+ 1
- 1
parser/onnx/onnx_parser.cc View File

@@ -519,7 +519,7 @@ Status OnnxModelParser::GetModelFromMemory(const char *data, uint32_t size, ge::
GE_CHECK_NOTNULL(data);

// 1. Get graph from onnx model file.
if (!ge::parser::ReadProtoFromArray(data, onnx_model)) {
if (!ge::parser::ReadProtoFromArray(data, &onnx_model)) {
ErrorManager::GetInstance().ATCReportErrMessage(
"E19021", {"reason"}, {"Read onnx model from memory failed."});
GELOGE(PARAM_INVALID, "Read onnx model from memory failed.");


Loading…
Cancel
Save