提交 fd10c5a6 编写于 作者: Z Zhen Wang

fix error message showing in UpdateLossScalingOp

上级 d014e29f
......@@ -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));
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册