From 5870976fe1883483aa70e8cb8a6fbdcc781f349f Mon Sep 17 00:00:00 2001 From: Zhang Jun Date: Mon, 27 Mar 2023 15:36:15 +0800 Subject: [PATCH] Update operator.cc --- paddle/fluid/framework/operator.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/paddle/fluid/framework/operator.cc b/paddle/fluid/framework/operator.cc index 4d9aeecac30..2fb1757fe6e 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; -- GitLab