未验证 提交 9f34374b 编写于 作者: C cc 提交者: GitHub

Fix the formate of raising error in randperm op (#30108)

* fix the formate of raising error in randperm op
上级 ab049978
......@@ -31,7 +31,9 @@ class RandpermOp : public framework::OperatorWithKernel {
int n = ctx->Attrs().Get<int>("n");
PADDLE_ENFORCE_GT(
n, 0, platform::errors::InvalidArgument(
"The input(n) of randperm op must be greater than 0."));
"The input 'n' of randperm op should be greater than 0. "
"But received %d.",
n));
ctx->SetOutputDim("Out", framework::make_ddim({n}));
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册