From 3fa4ecff3fcc3685259105c26d4eeb0491e6cffe Mon Sep 17 00:00:00 2001 From: wangwenhua <89594672@qq.com> Date: Wed, 28 Oct 2020 14:50:29 +0800 Subject: [PATCH] singleop errormassage modify --- ge/offline/single_op_parser.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ge/offline/single_op_parser.cc b/ge/offline/single_op_parser.cc index 8a86f5c5..b1e2f975 100644 --- a/ge/offline/single_op_parser.cc +++ b/ge/offline/single_op_parser.cc @@ -226,7 +226,7 @@ bool SingleOpParser::Validate(const SingleOpDesc &op_desc) { } int index = 0; - for (auto &tensor_desc : op_desc.output_desc) { + for (auto &tensor_desc : op_desc.input_desc) { if ((tensor_desc.type == DT_UNDEFINED && tensor_desc.format != FORMAT_RESERVED) || (tensor_desc.type != DT_UNDEFINED && tensor_desc.format == FORMAT_RESERVED)){ ErrorManager::GetInstance().ATCReportErrMessage("E10027", {"input", "index"}, {"output", std::to_string(index)});