diff --git a/paddle/fluid/framework/CMakeLists.txt b/paddle/fluid/framework/CMakeLists.txt index 7434557a3cae6b42d872204b4b81bcb28b741ca6..2729c090659329ada2f091c484fa4527c4ec1e20 100755 --- a/paddle/fluid/framework/CMakeLists.txt +++ b/paddle/fluid/framework/CMakeLists.txt @@ -425,7 +425,7 @@ cc_library( cc_library( shape_inference SRCS shape_inference.cc - DEPS ddim attribute) + DEPS ddim attribute selected_rows_utils) # every source file that includes "dnnl.h" must depends on mkldnn # or, the first one should depends on mkldnn @@ -1127,7 +1127,7 @@ cc_test( cc_library( selected_rows_utils SRCS selected_rows_utils.cc - DEPS selected_rows serialization) + DEPS selected_rows serialization device_context) cc_test( selected_rows_utils_test SRCS selected_rows_utils_test.cc diff --git a/paddle/fluid/framework/convert_utils.h b/paddle/fluid/framework/convert_utils.h index da2af86c77c477c3c70b220b47bc073b47645a5d..a11eafd8af23517a104eaa8e11a63fcee920f5c1 100644 --- a/paddle/fluid/framework/convert_utils.h +++ b/paddle/fluid/framework/convert_utils.h @@ -19,10 +19,7 @@ limitations under the License. */ #include "paddle/phi/common/layout.h" #include "paddle/phi/core/tensor_meta.h" -// See Note [ Why still include the fluid headers? ] #include "paddle/fluid/framework/data_type.h" -#include "paddle/fluid/framework/lod_tensor.h" -#include "paddle/fluid/platform/place.h" // TODO(chenweihang): this file may need to be removed