From 575fa0fe6987155eef085bee5abad5e59c15d9cb Mon Sep 17 00:00:00 2001 From: Chen Weihang Date: Fri, 11 Feb 2022 19:56:34 +0800 Subject: [PATCH] move memcpy.h into cc file (#39469) --- paddle/pten/core/selected_rows.cc | 4 ++++ paddle/pten/core/selected_rows.h | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/paddle/pten/core/selected_rows.cc b/paddle/pten/core/selected_rows.cc index 7578faf6143..a86b51ce253 100644 --- a/paddle/pten/core/selected_rows.cc +++ b/paddle/pten/core/selected_rows.cc @@ -13,8 +13,12 @@ See the License for the specific language governing permissions and limitations under the License. */ #include "paddle/pten/core/selected_rows.h" + #include "paddle/pten/core/utils/data_type.h" +// See Note [ Why still include the fluid headers? ] +#include "paddle/fluid/memory/memcpy.h" + namespace pten { struct ReAllocateVisitor { diff --git a/paddle/pten/core/selected_rows.h b/paddle/pten/core/selected_rows.h index 58256f2ee61..4a05d7ed315 100644 --- a/paddle/pten/core/selected_rows.h +++ b/paddle/pten/core/selected_rows.h @@ -29,7 +29,6 @@ limitations under the License. */ // See Note [ Why still include the fluid headers? ] #include "paddle/fluid/framework/mixed_vector.h" -#include "paddle/fluid/memory/memcpy.h" namespace egr { class EagerTensor; -- GitLab