From 34510e8fed14c874189901ba5c395a9baee5c047 Mon Sep 17 00:00:00 2001 From: zyfncg Date: Thu, 15 Sep 2022 11:02:59 +0800 Subject: [PATCH] Delete eigen header in data_type.h (#46036) * 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