Browse Source

modify desc of err param dynamic_image_size

tags/v1.3.0
liudingyan 3 years ago
parent
commit
65837e1718
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      ge/ir_build/option_utils.cc

+ 1
- 2
ge/ir_build/option_utils.cc View File

@@ -253,8 +253,7 @@ bool CheckDynamicImagesizeInputShapeValid(map<string, vector<int64_t>> shape_map
for (auto str : split_set) { for (auto str : split_set) {
split_dim = StringUtils::Split(str, ','); split_dim = StringUtils::Split(str, ',');
if (split_dim.size() != static_cast<size_t>(kDynamicImageSizeNum)) { if (split_dim.size() != static_cast<size_t>(kDynamicImageSizeNum)) {
ErrorManager::GetInstance().ATCReportErrMessage("E10020", {"DynamicImageSizeNum"},
{std::to_string(kDynamicImageSizeNum)});
ErrorManager::GetInstance().ATCReportErrMessage("E10020");
GELOGE(ge::PARAM_INVALID, GELOGE(ge::PARAM_INVALID,
"[Check][DynamicImagesizeInputShape] invalid value:%s number of dimensions of each group must be %ld.", "[Check][DynamicImagesizeInputShape] invalid value:%s number of dimensions of each group must be %ld.",
dynamic_image_size.c_str(), kDynamicImageSizeNum); dynamic_image_size.c_str(), kDynamicImageSizeNum);


Loading…
Cancel
Save