|
|
|
@@ -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."); |
|
|
|
|