Browse Source

!11493 modify export model error log

From: @changzherui
Reviewed-by: @zh_qh,@kingxian
Signed-off-by: @zh_qh
tags/v1.2.0-rc1
mindspore-ci-bot Gitee 5 years ago
parent
commit
29e5f0fcdb
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      mindspore/ccsrc/pipeline/jit/pipeline.cc

+ 3
- 3
mindspore/ccsrc/pipeline/jit/pipeline.cc View File

@@ -250,7 +250,7 @@ py::bytes ExecutorPy::GetFuncGraphProto(const std::string &phase, const std::str
if (ir_type == IR_TYPE_ANF) {
std::string proto_str = GetFuncGraphProtoString(fg_ptr);
if (proto_str.empty()) {
MS_LOG(EXCEPTION) << "Graph proto is empty.";
MS_LOG(EXCEPTION) << "Export ANF format model failed.";
}
return proto_str;
}
@@ -258,7 +258,7 @@ py::bytes ExecutorPy::GetFuncGraphProto(const std::string &phase, const std::str
if (ir_type == IR_TYPE_ONNX) {
std::string proto_str = GetOnnxProtoString(fg_ptr);
if (proto_str.empty()) {
MS_LOG(EXCEPTION) << "Graph proto is empty.";
MS_LOG(EXCEPTION) << "Export ONNX format model failed.";
}
return proto_str;
}
@@ -266,7 +266,7 @@ py::bytes ExecutorPy::GetFuncGraphProto(const std::string &phase, const std::str
if (ir_type == IR_TYPE_MINDIR) {
std::string proto_str = GetBinaryProtoString(fg_ptr);
if (proto_str.empty()) {
MS_LOG(EXCEPTION) << "Graph proto is empty.";
MS_LOG(EXCEPTION) << "Export MINDIR format model failed.";
}
return proto_str;
}


Loading…
Cancel
Save