-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refine bernoulli and unsqueeze op #26842
Conversation
Thanks for your contribution! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
// NOTE(zhiqiu): currently, PADDLE_ENFORCE in cuda kernel may print several | ||
// lines of error messages if, and it should be refined. | ||
PADDLE_ENFORCE(p >= 0.0 && p <= 1.0, | ||
"The probability should >=0 and <= 1, but got %f", p); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里是should >= 0
,下面是should be <= 1
,要不要统一下?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done, thx
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
* add check for bernoulli and register bool for unsqueeze * follow comments
PR types
New features
PR changes
OPs
Describe
add check for bernoulli cuda kernel
register bool for unsqueeze kernel
refine doc of paddle.stack