提交 581d9b1b 编写于 作者: Z zhangjun

fix operator need_prepare_phi_data_

上级 46d6080d
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册