From db4d668f93709e2f30ef598f625525a6109055bf Mon Sep 17 00:00:00 2001 From: qijun Date: Mon, 31 Jul 2017 17:55:14 +0800 Subject: [PATCH] remove unused codes --- paddle/framework/detail/tensor-inl.h | 1 - paddle/framework/tensor.h | 3 --- 2 files changed, 4 deletions(-) diff --git a/paddle/framework/detail/tensor-inl.h b/paddle/framework/detail/tensor-inl.h index 9e8983e1fde..92621f8c18e 100644 --- a/paddle/framework/detail/tensor-inl.h +++ b/paddle/framework/detail/tensor-inl.h @@ -13,7 +13,6 @@ See the License for the specific language governing permissions and limitations under the License. */ #pragma once -#include #include "paddle/memory/memcpy.h" namespace paddle { diff --git a/paddle/framework/tensor.h b/paddle/framework/tensor.h index 3e110f8d749..76070f636b0 100644 --- a/paddle/framework/tensor.h +++ b/paddle/framework/tensor.h @@ -19,7 +19,6 @@ limitations under the License. */ #include #include #include "paddle/framework/ddim.h" -#include "paddle/memory/memcpy.h" #include "paddle/memory/memory.h" #include "paddle/platform/device_context.h" #include "paddle/platform/enforce.h" @@ -110,8 +109,6 @@ class Tensor { template inline void check_memory_size() const; - paddle::platform::Place place() const { return holder_->place(); } - private: /** * @note Placeholder hides type T, so it doesn't appear as a template -- GitLab