From a3f36dba6543b49b2bca11f59ba9c8528998a78f Mon Sep 17 00:00:00 2001 From: jjfeing Date: Mon, 15 Mar 2021 16:30:10 +0800 Subject: [PATCH] convert typeid to label --- .../optimizer/ascend/enhancer/concat_outputs_for_all_gather.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mindspore/ccsrc/backend/optimizer/ascend/enhancer/concat_outputs_for_all_gather.cc b/mindspore/ccsrc/backend/optimizer/ascend/enhancer/concat_outputs_for_all_gather.cc index ec542e5ab9..269d4db2f2 100644 --- a/mindspore/ccsrc/backend/optimizer/ascend/enhancer/concat_outputs_for_all_gather.cc +++ b/mindspore/ccsrc/backend/optimizer/ascend/enhancer/concat_outputs_for_all_gather.cc @@ -41,7 +41,8 @@ kernel::KernelBuildInfoPtr GenerateKernelBuildInfo(const AnfNodePtr &concat) { auto dtype_iter = std::find_if(inputs_device_type.begin(), inputs_device_type.end(), [&](const auto &dtype) { return dtype != (*cmp_dtype); }); 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_type.emplace_back(*cmp_dtype);