singleop errormassage modify

pull/165/head
wangwenhua 5 years ago
parent df258a2913
commit 3fa4ecff3f

@ -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)});

Loading…
Cancel
Save