Browse Source

fix

tags/v1.3.0
wangxiaotian22 3 years ago
parent
commit
90f6e6296c
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      ge/graph/preprocess/graph_preprocess.cc

+ 2
- 2
ge/graph/preprocess/graph_preprocess.cc View File

@@ -1428,8 +1428,8 @@ Status GraphPrepare::CheckInternalFormat(const NodePtr &input_node, const GeTens
bool is_internal = TypeUtils::IsInternalFormat(format) || TypeUtils::IsInternalFormat(origin_format);
if (is_internal) {
std::string reason = "Input format[" + TypeUtils::FormatToSerialString(format) + "] or origin_format[" +
TypeUtils::FormatToSerialString(origin_format) + "] of index:" + std::to_string(index) +
" input tensor is not support";
TypeUtils::FormatToSerialString(origin_format) + "] of op:" + input_node->GetName() +
" is not support";
REPORT_INPUT_ERROR("E19025", std::vector<std::string>({"reason"}), std::vector<std::string>({reason}));
GELOGE(PARAM_INVALID, "[Check][Param] Input format %s or origin_format %s is not support.",
TypeUtils::FormatToSerialString(format).c_str(), TypeUtils::FormatToSerialString(origin_format).c_str());


Loading…
Cancel
Save