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

Fix clip_by_norm_op error message. test=develop

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