From 70589379211de9b1b63681c55fa771776974a848 Mon Sep 17 00:00:00 2001 From: zyfncg Date: Mon, 21 Nov 2022 15:47:37 +0800 Subject: [PATCH] Fix wrong eigen header include in data_type.h (#48157) * Fix wrong eigen header include * fix compile bug --- paddle/phi/core/utils/data_type.h | 2 -- paddle/phi/kernels/funcs/eigen/eigen_function.h | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/paddle/phi/core/utils/data_type.h b/paddle/phi/core/utils/data_type.h index a7bf1123a0..7852d87c9a 100644 --- a/paddle/phi/core/utils/data_type.h +++ b/paddle/phi/core/utils/data_type.h @@ -20,8 +20,6 @@ limitations under the License. */ #include "paddle/phi/common/data_type.h" #include "paddle/phi/core/enforce.h" -#include "paddle/phi/kernels/funcs/eigen/extensions.h" - namespace phi { // Here we can't depend on the fluid proto::VarType, so we use the dtype enum diff --git a/paddle/phi/kernels/funcs/eigen/eigen_function.h b/paddle/phi/kernels/funcs/eigen/eigen_function.h index 1e81256e79..42f46b814e 100644 --- a/paddle/phi/kernels/funcs/eigen/eigen_function.h +++ b/paddle/phi/kernels/funcs/eigen/eigen_function.h @@ -18,6 +18,8 @@ limitations under the License. */ #ifndef NOMINMAX #define NOMINMAX #endif + +#include "paddle/phi/kernels/funcs/eigen/extensions.h" #include "unsupported/Eigen/CXX11/Tensor" namespace phi { -- GitLab