diff --git a/paddle/fluid/framework/operator.cc b/paddle/fluid/framework/operator.cc index 71da871cc002a4098022401f16ccc0bac25773c4..4d9aeecac306e97c4a57b5d2202b2a41dd52774d 100644 --- a/paddle/fluid/framework/operator.cc +++ b/paddle/fluid/framework/operator.cc @@ -1588,8 +1588,8 @@ 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 || - kernel_signature_ == nullptr) { + // if (phi_kernel_context->OutputsSize() >= phi_tensor_index || + if (kernel_signature_ == nullptr) { need_prepare_phi_data_ = true; return; }