From 2680a71eff095190eda5413254dcc4300de2f4b4 Mon Sep 17 00:00:00 2001 From: zyfncg Date: Thu, 15 Sep 2022 15:17:35 +0800 Subject: [PATCH] Delete eigen header in data_type.h (#46036) (#46066) * delete eigen header in data_type.h * fix complie bug * refactor --- paddle/fluid/framework/data_type.h | 1 - paddle/fluid/framework/eigen.h | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/fluid/framework/data_type.h b/paddle/fluid/framework/data_type.h index ab63b489a2e..fd1c06fc645 100644 --- a/paddle/fluid/framework/data_type.h +++ b/paddle/fluid/framework/data_type.h @@ -22,7 +22,6 @@ limitations under the License. */ #include "paddle/fluid/platform/complex.h" #include "paddle/fluid/platform/enforce.h" #include "paddle/fluid/platform/float16.h" -#include "paddle/phi/kernels/funcs/eigen/extensions.h" namespace paddle { namespace framework { diff --git a/paddle/fluid/framework/eigen.h b/paddle/fluid/framework/eigen.h index c383342ee34..22d3ac4333f 100644 --- a/paddle/fluid/framework/eigen.h +++ b/paddle/fluid/framework/eigen.h @@ -17,6 +17,7 @@ limitations under the License. */ #include #include "paddle/fluid/framework/tensor.h" +#include "paddle/phi/kernels/funcs/eigen/extensions.h" #include "unsupported/Eigen/CXX11/Tensor" namespace paddle { -- GitLab