Browse Source

!13328 convert typeid to string label

From: @jjfeing
Reviewed-by: @zhoufeng54,@kisnwang
Signed-off-by: @zhoufeng54
tags/v1.2.0-rc1
mindspore-ci-bot Gitee 4 years ago
parent
commit
a05ba06c07
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      mindspore/ccsrc/backend/optimizer/ascend/enhancer/concat_outputs_for_all_gather.cc

+ 2
- 1
mindspore/ccsrc/backend/optimizer/ascend/enhancer/concat_outputs_for_all_gather.cc View File

@@ -41,7 +41,8 @@ kernel::KernelBuildInfoPtr GenerateKernelBuildInfo(const AnfNodePtr &concat) {
auto dtype_iter = std::find_if(inputs_device_type.begin(), inputs_device_type.end(), auto dtype_iter = std::find_if(inputs_device_type.begin(), inputs_device_type.end(),
[&](const auto &dtype) { return dtype != (*cmp_dtype); }); [&](const auto &dtype) { return dtype != (*cmp_dtype); });
if (dtype_iter != inputs_device_type.end()) { if (dtype_iter != inputs_device_type.end()) {
MS_LOG(EXCEPTION) << "Input dtype is not same, value: " << (*dtype_iter) << ", need dtype: " << (*cmp_dtype);
MS_LOG(EXCEPTION) << "Input dtype is not same, value: " << TypeIdLabel(*dtype_iter)
<< ", need dtype: " << TypeIdLabel(*cmp_dtype);
} }
outputs_device_format.emplace_back(*cmp_format); outputs_device_format.emplace_back(*cmp_format);
outputs_device_type.emplace_back(*cmp_dtype); outputs_device_type.emplace_back(*cmp_dtype);


Loading…
Cancel
Save