提交 886c231b 编写于 作者: 开心的小妮's avatar 开心的小妮

test=develop

上级 bbf884da
...@@ -63,8 +63,9 @@ class ClipByNormKernel : public framework::OpKernel<T> { ...@@ -63,8 +63,9 @@ class ClipByNormKernel : public framework::OpKernel<T> {
output->Resize(merged_input->value().dims()); output->Resize(merged_input->value().dims());
output->mutable_data<T>(context.GetPlace()); output->mutable_data<T>(context.GetPlace());
} else { } else {
PADDLE_THROW( PADDLE_THROW(platform::errors::InvalidArgument(
platform::errors::InvalidArgument("invalid input variable type")); "Invalid input variable type, only support LodTensor and "
"SelectedRows types."));
} }
PADDLE_ENFORCE_NOT_NULL(input, PADDLE_ENFORCE_NOT_NULL(input,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册