From 4520c088cfc0cafabe14e0bacdf4899342417687 Mon Sep 17 00:00:00 2001 From: wilfChen Date: Wed, 2 Dec 2020 18:46:42 +0800 Subject: [PATCH] infer shape for noop --- mindspore/ccsrc/runtime/device/ascend/ascend_kernel_runtime.cc | 2 -- mindspore/ccsrc/runtime/device/executor/dynamic_kernel.cc | 1 + mindspore/ccsrc/runtime/device/executor/dynamic_kernel.h | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/mindspore/ccsrc/runtime/device/ascend/ascend_kernel_runtime.cc b/mindspore/ccsrc/runtime/device/ascend/ascend_kernel_runtime.cc index 46d15c5d8d..1a78623b6b 100644 --- a/mindspore/ccsrc/runtime/device/ascend/ascend_kernel_runtime.cc +++ b/mindspore/ccsrc/runtime/device/ascend/ascend_kernel_runtime.cc @@ -22,8 +22,6 @@ #include #include #include -#include -#include "abstract/primitive_infer_map.h" #include "debug/data_dump/e2e_dump_util.h" #include "runtime/device/ascend/ascend_device_address.h" #include "runtime/device/cpu/mpi/mpi_interface.h" diff --git a/mindspore/ccsrc/runtime/device/executor/dynamic_kernel.cc b/mindspore/ccsrc/runtime/device/executor/dynamic_kernel.cc index 218bc995bd..eaa442f2f5 100644 --- a/mindspore/ccsrc/runtime/device/executor/dynamic_kernel.cc +++ b/mindspore/ccsrc/runtime/device/executor/dynamic_kernel.cc @@ -16,6 +16,7 @@ #include "runtime/device/executor/dynamic_kernel.h" #include +#include #include #include "backend/session/anf_runtime_algorithm.h" #include "backend/optimizer/common/helper.h" diff --git a/mindspore/ccsrc/runtime/device/executor/dynamic_kernel.h b/mindspore/ccsrc/runtime/device/executor/dynamic_kernel.h index c70889c6b0..637bdc410e 100644 --- a/mindspore/ccsrc/runtime/device/executor/dynamic_kernel.h +++ b/mindspore/ccsrc/runtime/device/executor/dynamic_kernel.h @@ -48,7 +48,6 @@ class DynamicKernel { virtual void Initialize(); std::string GetKernelName() { return cnode_ptr_->fullname_with_scope(); } int GetKernelType(); - CNodePtr kernel_node() const { return cnode_ptr_; } protected: void RebuildDependTensor();