From 886c231b769602f37f4156b6814e990ae05afc3d Mon Sep 17 00:00:00 2001 From: "ysh329@sina.com" Date: Sun, 27 Sep 2020 11:42:44 +0000 Subject: [PATCH] test=develop --- paddle/fluid/operators/clip_by_norm_op.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/paddle/fluid/operators/clip_by_norm_op.h b/paddle/fluid/operators/clip_by_norm_op.h index 348a26bba94..415cc975ecd 100644 --- a/paddle/fluid/operators/clip_by_norm_op.h +++ b/paddle/fluid/operators/clip_by_norm_op.h @@ -63,8 +63,9 @@ class ClipByNormKernel : public framework::OpKernel { output->Resize(merged_input->value().dims()); output->mutable_data(context.GetPlace()); } else { - PADDLE_THROW( - platform::errors::InvalidArgument("invalid input variable type")); + PADDLE_THROW(platform::errors::InvalidArgument( + "Invalid input variable type, only support LodTensor and " + "SelectedRows types.")); } PADDLE_ENFORCE_NOT_NULL(input, -- GitLab