diff --git a/paddle/fluid/framework/operator.cc b/paddle/fluid/framework/operator.cc index 4d9aeecac306e97c4a57b5d2202b2a41dd52774d..2fb1757fe6e760cf7325a5ced14ceee1c5c39fe3 100644 --- a/paddle/fluid/framework/operator.cc +++ b/paddle/fluid/framework/operator.cc @@ -1588,7 +1588,6 @@ void OperatorWithKernel::CheckWhetherPreparePhiData( // different type with variable. The PhiKernelContext need be reconstructed. // We use kernel_signature_'s output to retrieve tensor. Because the tensor // in phi_kernel_context stored in the order of kernel_signature_'s output. - // if (phi_kernel_context->OutputsSize() >= phi_tensor_index || if (kernel_signature_ == nullptr) { need_prepare_phi_data_ = true; return;