diff --git a/paddle/framework/detail/tensor-inl.h b/paddle/framework/detail/tensor-inl.h index 9e8983e1fdecbdbe3266d56f36414adb2e721606..92621f8c18ec0d03160a23c462830d14272c7f64 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 3e110f8d74938016e3adf48c7ab694175162008a..76070f636b0971f4a136042e056c59adb5dc2d40 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