diff --git a/paddle/phi/api/lib/utils/tensor_utils.h b/paddle/phi/api/lib/utils/tensor_utils.h index 5b237f433aa6f5ca50f36931c4111084a1c53f54..4357eacaf3b1f573904bc2d90ab980ea5f87030e 100644 --- a/paddle/phi/api/lib/utils/tensor_utils.h +++ b/paddle/phi/api/lib/utils/tensor_utils.h @@ -16,7 +16,6 @@ limitations under the License. */ #include -#include "paddle/fluid/framework/lod_tensor.h" #include "paddle/fluid/framework/variable.h" #include "paddle/phi/api/lib/utils/allocator.h" #include "paddle/phi/common/int_array.h" diff --git a/paddle/phi/kernels/funcs/sequence2batch.h b/paddle/phi/kernels/funcs/sequence2batch.h index 83c89a30916faf171d357d1ff991d6e8ad7d6800..4fba1d0709f0d71609b33e1f2a60a90b77a96f90 100644 --- a/paddle/phi/kernels/funcs/sequence2batch.h +++ b/paddle/phi/kernels/funcs/sequence2batch.h @@ -16,7 +16,6 @@ limitations under the License. */ #include #include -#include "paddle/fluid/framework/lod_tensor.h" #include "paddle/fluid/framework/tensor.h" #include "paddle/fluid/platform/device_context.h" #include "paddle/phi/kernels/funcs/eigen/common.h" @@ -132,7 +131,7 @@ class LoDTensor2BatchFunctor { // The max_seqlen represents batch size after rearranging the // input LodTensor. It is also the maximum length of input sequence. - paddle::framework::LoD batch_lods; + phi::LoD batch_lods; batch_lods.emplace_back(std::vector{0}); batch_lods.emplace_back(std::vector{0}); batch_lods.emplace_back(std::vector{0});