-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Move and rename uniform_random API #26347
Move and rename uniform_random API #26347
Conversation
Thanks for your contribution! |
assert "Error" in str(stderr), "Error: paddle.tensor.random." \ | ||
"uniform_random should not be imported" | ||
|
||
|
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.
建议新增测试,直接使用 paddle.uniform API,paddle.uniform确保可设置min,max参数,例如构造paddle.uniform([2,3], min=-5, max=5)进行测试
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
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
44af7fc
to
89a7366
Compare
89a7366
to
08b56e1
Compare
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
PR types
Others
PR changes
APIs
Describe
uniform_random
API underpaddle/tensor/random.py
.uniform_random
API inpaddle/tensor/random.py
asuniform
.paddle.tensor.random.uniform
:paddle.tensor.uniform
,paddle.uniform