From 399ddf996a4fff81b03a07c174548c1b7b5fcda2 Mon Sep 17 00:00:00 2001 From: Chen Weihang Date: Tue, 23 Nov 2021 00:26:14 -0600 Subject: [PATCH] fix test_egr_ds_auotgrad_meta compile failed (#37459) --- paddle/fluid/eager/eager_tensor.h | 1 + .../fluid/eager/tests/data_structure_tests/eager_tensor_test.cc | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/fluid/eager/eager_tensor.h b/paddle/fluid/eager/eager_tensor.h index 9303adb0ac..d871a84dc2 100644 --- a/paddle/fluid/eager/eager_tensor.h +++ b/paddle/fluid/eager/eager_tensor.h @@ -21,6 +21,7 @@ // pten deps #include "paddle/pten/all.h" #include "paddle/pten/api/all.h" +#include "paddle/pten/api/lib/api_declare.h" #include "paddle/pten/api/lib/utils/tensor_utils.h" /** * This class is used by Eager mode for now. It's painful to do this in Eager diff --git a/paddle/fluid/eager/tests/data_structure_tests/eager_tensor_test.cc b/paddle/fluid/eager/tests/data_structure_tests/eager_tensor_test.cc index 60193cb1c8..a02f0bec45 100644 --- a/paddle/fluid/eager/tests/data_structure_tests/eager_tensor_test.cc +++ b/paddle/fluid/eager/tests/data_structure_tests/eager_tensor_test.cc @@ -16,7 +16,6 @@ #include "gtest/gtest.h" #include "paddle/fluid/eager/eager_tensor.h" -#include "paddle/pten/api/lib/api_declare.h" #include "paddle/pten/api/lib/utils/allocator.h" namespace eager_test { -- GitLab