Browse Source

error message add

tags/v1.1.0
wangwenhua1@huawei.com 4 years ago
parent
commit
3c3e146209
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      ge/generator/ge_generator.cc

+ 2
- 2
ge/generator/ge_generator.cc View File

@@ -557,14 +557,14 @@ Status GeGenerator::CheckForSingleOp(OpDescPtr &op_desc, const vector<GeTensor>
if (!inputs.empty() && (inputs.size() != op_desc->GetAllInputsSize())) {
ErrorManager::GetInstance().ATCReportErrMessage("E14001", {"opname", "optype", "value", "reason"},
{op_desc->GetName(), op_desc->GetType(), "inputs size" + FmtToStr(inputs.size()),
"tensor size is " + FmtToStr(inputs.size())});
"tensor size is " + FmtToStr(op_desc->GetAllInputsSize())});
GELOGE(PARAM_INVALID, "Tensor size: %zu, Inputs size: %zu", inputs.size(), op_desc->GetAllInputsSize());
return PARAM_INVALID;
}
if (!outputs.empty() && (outputs.size() != op_desc->GetOutputsSize())) {
ErrorManager::GetInstance().ATCReportErrMessage("E14001", {"opname", "optype", "value", "reason"},
{op_desc->GetName(), op_desc->GetType(), "outputs size" + FmtToStr(outputs.size()),
"tensor size is " + FmtToStr(inputs.size())});
"tensor size is " + FmtToStr(op_desc->GetOutputsSize())});
GELOGE(PARAM_INVALID, "Tensor size: %zu, Outputs size: %zu", outputs.size(), op_desc->GetOutputsSize());
return PARAM_INVALID;
}


Loading…
Cancel
Save