From a2f61fef4601da20b56584f0b6d455cb5710fa1c Mon Sep 17 00:00:00 2001 From: zyfncg Date: Fri, 25 Nov 2022 15:08:36 +0800 Subject: [PATCH] Fix wrong eigen header include in data_type.h (#48157) (#48260) * 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 9877149dc5..ecb51f2c0c 100644 --- a/paddle/phi/core/utils/data_type.h +++ b/paddle/phi/core/utils/data_type.h @@ -19,8 +19,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 { #define _PhiForEachDataTypeHelper_(callback, cpp_type, data_type) \ 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