From b29adb30e33b1617b6e1b301da3b3dd6385b60be Mon Sep 17 00:00:00 2001 From: wxl Date: Wed, 21 Apr 2021 15:44:24 +0800 Subject: [PATCH] fix lhisi cast be deleted question when fp32 input --- ge/graph/passes/cast_remove_pass.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ge/graph/passes/cast_remove_pass.cc b/ge/graph/passes/cast_remove_pass.cc index 55b71aa3..e8593ea8 100644 --- a/ge/graph/passes/cast_remove_pass.cc +++ b/ge/graph/passes/cast_remove_pass.cc @@ -123,6 +123,7 @@ Status CastRemovePass::DoFuse(const OpsKernelManager &ops_kernel_manager, in_desc->SetDataType(type); out_desc->SetDataType(type); bool is_supported = false; + string un_supported_reasons; for (const auto &ops_kernel_store_info : ops_kernel_manager.GetAllOpsKernelInfoStores()) { map op_infos; ops_kernel_store_info.second->GetAllOpsKernelInfo(op_infos); @@ -134,12 +135,14 @@ Status CastRemovePass::DoFuse(const OpsKernelManager &ops_kernel_manager, if (is_supported) { break; } + un_supported_reasons += "{op_store " + ops_kernel_store_info.first + ":" + un_supported_reason + "} "; } if (!is_supported) { // if no operator_info_store supported, do nothing in_desc->SetDataType(in_desc_org_dtype); out_desc->SetDataType(out_desc_org_dtype); to_be_deleted_cast_index.clear(); + GELOGI("Fused Op[%s] check supported fail! Reasons is as follows: %s", un_supported_reasons.c_str()); return SUCCESS; }