From b15d182cd276ea7cf1ce50a80f96831d01e632fd Mon Sep 17 00:00:00 2001 From: zhupuxu Date: Wed, 24 Feb 2021 11:00:13 +0800 Subject: [PATCH] fix bug for dynamic_shape_depends Signed-off-by: zhupuxu --- .../backend/optimizer/ascend/ir_fission/gather_v2_ds_fission.cc | 2 -- mindspore/ccsrc/runtime/device/executor/dynamic_kernel.h | 1 - mindspore/ccsrc/utils/utils.h | 1 - 3 files changed, 4 deletions(-) diff --git a/mindspore/ccsrc/backend/optimizer/ascend/ir_fission/gather_v2_ds_fission.cc b/mindspore/ccsrc/backend/optimizer/ascend/ir_fission/gather_v2_ds_fission.cc index 8bea6ac3c4..d3415e5e3d 100644 --- a/mindspore/ccsrc/backend/optimizer/ascend/ir_fission/gather_v2_ds_fission.cc +++ b/mindspore/ccsrc/backend/optimizer/ascend/ir_fission/gather_v2_ds_fission.cc @@ -96,8 +96,6 @@ CNodePtr CreateGatherV2Ds(const FuncGraphPtr &graph, const CNodePtr &origin_node AnfAlgo::SetOutputInferTypeAndShape({AnfAlgo::GetOutputInferDataType(origin_node, 0)}, {shape}, gather_v2.get()); AnfAlgo::SetNodeAttr(kAttrIsDynamicShape, MakeValue(true), gather_v2); AnfAlgo::SetNodeAttr(kAttrInputIsDynamicShape, MakeValue(true), gather_v2); - auto depends_list_me = AnfAlgo::GetNodeAttr>(origin_node, kAttrDynamicShapeDepends); - AnfAlgo::SetNodeAttr(kAttrDynamicShapeDepends, MakeValue(depends_list_me), gather_v2); auto input_names = AnfAlgo::GetNodeAttr>(origin_node, kAttrInputNames); AnfAlgo::SetNodeAttr(kAttrInputNames, MakeValue(input_names), gather_v2); auto output_names = AnfAlgo::GetNodeAttr>(origin_node, kAttrOutputNames); diff --git a/mindspore/ccsrc/runtime/device/executor/dynamic_kernel.h b/mindspore/ccsrc/runtime/device/executor/dynamic_kernel.h index fcf3b0ba8e..d85970c4d4 100644 --- a/mindspore/ccsrc/runtime/device/executor/dynamic_kernel.h +++ b/mindspore/ccsrc/runtime/device/executor/dynamic_kernel.h @@ -27,7 +27,6 @@ namespace mindspore { namespace device { -constexpr auto kDynamicShapeDepends = "dynamic_shape_depends"; class DynamicKernel { public: diff --git a/mindspore/ccsrc/utils/utils.h b/mindspore/ccsrc/utils/utils.h index b6b22f5fd7..e24655fa07 100644 --- a/mindspore/ccsrc/utils/utils.h +++ b/mindspore/ccsrc/utils/utils.h @@ -368,7 +368,6 @@ constexpr auto kAttrSize = "size"; constexpr auto kAttrIsDynamicShape = "is_dynamic_shape"; constexpr auto kAttrInputIsDynamicShape = "input_is_dynamic_shape"; constexpr auto kAttrOutputIsDynamicShape = "output_is_dynamic_shape"; -constexpr auto kAttrDynamicShapeDepends = "dynamic_shape_depends"; constexpr auto kAttrPynativeNextOpName = "next_op"; constexpr auto kAttrPynativeNextIndex = "next_index"; constexpr auto kAttrCompileInfo = "compile_info";