未验证 提交 1b00fc48 编写于 作者: W wanghuancoder 提交者: GitHub

continue if transform not support dtype, test=develop (#37661)

上级 1ba81500
......@@ -266,10 +266,7 @@ void ApplyDataTransform(const OpKernelType& expected_kernel_key,
tensor_in =
static_cast<const Tensor*>(&(var->Get<LoDTensorArray>()[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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册