diff --git a/mindspore/ccsrc/pipeline/pipeline_ge.cc b/mindspore/ccsrc/pipeline/pipeline_ge.cc index 4a7328d3258..c442fba9317 100644 --- a/mindspore/ccsrc/pipeline/pipeline_ge.cc +++ b/mindspore/ccsrc/pipeline/pipeline_ge.cc @@ -465,7 +465,7 @@ void ProcessGeArg(const std::map &info, const py:: if (converted->isa()) { inputs->push_back(converted->cast()); } else { - MS_LOG(EXCEPTION) << "Args " << converted->ToString() << " is not tensor"; + MS_EXCEPTION(TypeError) << "Args " << converted->ToString() << " is not tensor"; } } }