From 1b00fc481d8a0153edad6d4c9fdf1311ba2ddbf9 Mon Sep 17 00:00:00 2001 From: wanghuancoder Date: Mon, 29 Nov 2021 18:46:32 +0800 Subject: [PATCH] continue if transform not support dtype, test=develop (#37661) --- paddle/fluid/framework/new_executor/data_transfer.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/paddle/fluid/framework/new_executor/data_transfer.cc b/paddle/fluid/framework/new_executor/data_transfer.cc index bb007cd6ae0..15e6b2a1ff9 100644 --- a/paddle/fluid/framework/new_executor/data_transfer.cc +++ b/paddle/fluid/framework/new_executor/data_transfer.cc @@ -266,10 +266,7 @@ void ApplyDataTransform(const OpKernelType& expected_kernel_key, tensor_in = static_cast(&(var->Get()[0])); } else { - PADDLE_THROW(platform::errors::InvalidArgument( - "Variable type is %s, expect LoDTensor or SelectedRows or " - "LoDTensorArray.", - ToTypeName(var->Type()))); + continue; } if (!tensor_in->IsInitialized()) { continue; -- GitLab