提交 41df9c20 编写于 作者: M mindspore-ci-bot 提交者: Gitee

!723 Modify type error of abnormal inputs

Merge pull request !723 from Simson/push-to-opensource
...@@ -94,11 +94,9 @@ AbstractBasePtr BaseFuncGraphEvaluator::Infer(AnalysisEnginePtr engine, const Ab ...@@ -94,11 +94,9 @@ AbstractBasePtr BaseFuncGraphEvaluator::Infer(AnalysisEnginePtr engine, const Ab
MS_EXCEPTION_IF_NULL(fg); MS_EXCEPTION_IF_NULL(fg);
std::size_t nargs = fg->parameters().size(); std::size_t nargs = fg->parameters().size();
if (args_spec_list.size() != nargs) { if (args_spec_list.size() != nargs) {
MS_LOG(EXCEPTION) << "Function " << fg->ToString() << ", The number of parameters of this function is " MS_EXCEPTION(ValueError) << "Function " << fg->ToString() << ", The number of parameters of this function is "
<< fg->parameters().size() << fg->parameters().size() << ", but the number of provided arguments is "
<< "," << args_spec_list.size() << ". NodeInfo: " << trace::GetDebugInfo(fg->debug_info());
" but the number of provided arguments is "
<< args_spec_list.size() << ". NodeInfo: " << trace::GetDebugInfo(fg->debug_info());
} }
MS_EXCEPTION_IF_NULL(parent_context_); MS_EXCEPTION_IF_NULL(parent_context_);
MS_EXCEPTION_IF_NULL(engine); MS_EXCEPTION_IF_NULL(engine);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册