From 365c2c9c89152e546d0556b71f44dd8b1f003e5c Mon Sep 17 00:00:00 2001 From: Zhen Wang Date: Fri, 9 Oct 2020 11:45:19 +0800 Subject: [PATCH] fix error message showing in UpdateLossScalingOp (#27596) --- paddle/fluid/operators/amp/update_loss_scaling_op.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/fluid/operators/amp/update_loss_scaling_op.cc b/paddle/fluid/operators/amp/update_loss_scaling_op.cc index fca3c531b40..8bd76a9886c 100644 --- a/paddle/fluid/operators/amp/update_loss_scaling_op.cc +++ b/paddle/fluid/operators/amp/update_loss_scaling_op.cc @@ -103,7 +103,7 @@ class UpdateLossScalingOpMaker : public framework::OpProtoAndCheckerMaker { .AddCustomChecker([](float decr_ratio) { PADDLE_ENFORCE_EQ(decr_ratio > 0.0f && decr_ratio < 1.0f, true, platform::errors::InvalidArgument( - "'incr_ratio' should be between 0 and 1, but " + "'decr_ratio' should be between 0 and 1, but " "the received is %f", decr_ratio)); }); -- GitLab