From 1c8e15c95397ccf521e28997b7d0f679beef76ee Mon Sep 17 00:00:00 2001 From: RedContritio Date: Mon, 20 Feb 2023 11:11:05 +0800 Subject: [PATCH] [PHI decoupling] remove reference to fluid/framework/tensor.h in phi (#50475) --- paddle/phi/backends/custom/custom_device_test.cc | 1 - paddle/phi/kernels/funcs/math_function.h | 1 - paddle/phi/kernels/funcs/sequence2batch.h | 2 +- paddle/phi/kernels/gpu/depthwise_conv.h | 1 - paddle/phi/tests/core/test_custom_kernel.cc | 1 - 5 files changed, 1 insertion(+), 5 deletions(-) diff --git a/paddle/phi/backends/custom/custom_device_test.cc b/paddle/phi/backends/custom/custom_device_test.cc index 84eaea3426..07c66cba3b 100644 --- a/paddle/phi/backends/custom/custom_device_test.cc +++ b/paddle/phi/backends/custom/custom_device_test.cc @@ -16,7 +16,6 @@ #include -#include "paddle/fluid/framework/tensor.h" #include "paddle/fluid/framework/tensor_util.h" #include "paddle/fluid/platform/device_context.h" #include "paddle/phi/backends/custom/fake_cpu_device.h" diff --git a/paddle/phi/kernels/funcs/math_function.h b/paddle/phi/kernels/funcs/math_function.h index 7a4143c875..7918a222f1 100644 --- a/paddle/phi/kernels/funcs/math_function.h +++ b/paddle/phi/kernels/funcs/math_function.h @@ -18,7 +18,6 @@ limitations under the License. */ #include #include "paddle/fluid/framework/operator.h" -#include "paddle/fluid/framework/tensor.h" #include "paddle/fluid/platform/device_context.h" #include "paddle/phi/core/dense_tensor.h" #include "paddle/phi/core/enforce.h" diff --git a/paddle/phi/kernels/funcs/sequence2batch.h b/paddle/phi/kernels/funcs/sequence2batch.h index 31fbad6d2f..dad48eaaf2 100644 --- a/paddle/phi/kernels/funcs/sequence2batch.h +++ b/paddle/phi/kernels/funcs/sequence2batch.h @@ -16,8 +16,8 @@ limitations under the License. */ #include #include -#include "paddle/fluid/framework/tensor.h" #include "paddle/fluid/platform/device_context.h" +#include "paddle/phi/core/mixed_vector.h" #include "paddle/phi/kernels/funcs/eigen/common.h" namespace phi { diff --git a/paddle/phi/kernels/gpu/depthwise_conv.h b/paddle/phi/kernels/gpu/depthwise_conv.h index 879056d67a..2644c31b89 100644 --- a/paddle/phi/kernels/gpu/depthwise_conv.h +++ b/paddle/phi/kernels/gpu/depthwise_conv.h @@ -15,7 +15,6 @@ limitations under the License. */ #pragma once #include -#include "paddle/fluid/framework/tensor.h" #include "paddle/fluid/platform/device_context.h" #include "paddle/phi/core/hostdevice.h" diff --git a/paddle/phi/tests/core/test_custom_kernel.cc b/paddle/phi/tests/core/test_custom_kernel.cc index 756ff47cc4..55fb77e804 100644 --- a/paddle/phi/tests/core/test_custom_kernel.cc +++ b/paddle/phi/tests/core/test_custom_kernel.cc @@ -20,7 +20,6 @@ limitations under the License. */ #include #ifdef _LINUX -#include "paddle/fluid/framework/lod_tensor.h" #include "paddle/fluid/platform/device_context.h" #include "paddle/phi/api/lib/utils/allocator.h" #include "paddle/phi/common/int_array.h" -- GitLab