From 0f64f63ce26df4d146a28ac039333d1b82d1f46b Mon Sep 17 00:00:00 2001 From: fary86 Date: Mon, 27 Apr 2020 10:17:05 +0800 Subject: [PATCH] Fix error type of inputs of ge graph is not tensor --- mindspore/ccsrc/pipeline/pipeline_ge.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"; } } }