未验证 提交 365c2c9c 编写于 作者: Z Zhen Wang 提交者: GitHub

fix error message showing in UpdateLossScalingOp (#27596)

上级 d84eb9b3
......@@ -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.
先完成此消息的编辑!
想要评论请 注册