From ab45149fe7e2ca36bf0110705bce53774c8beb00 Mon Sep 17 00:00:00 2001 From: "ysh329@sina.com" Date: Sun, 27 Sep 2020 11:50:24 +0000 Subject: [PATCH] test=develop --- paddle/fluid/operators/clip_by_norm_op.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/paddle/fluid/operators/clip_by_norm_op.h b/paddle/fluid/operators/clip_by_norm_op.h index 415cc975ec..a8d1e8e466 100644 --- a/paddle/fluid/operators/clip_by_norm_op.h +++ b/paddle/fluid/operators/clip_by_norm_op.h @@ -65,7 +65,8 @@ class ClipByNormKernel : public framework::OpKernel { } else { PADDLE_THROW(platform::errors::InvalidArgument( "Invalid input variable type, only support LodTensor and " - "SelectedRows types.")); + "SelectedRows types, but got type is %s.", + framework::ToTypeName(in_var->Type()))); } PADDLE_ENFORCE_NOT_NULL(input, -- GitLab