-
Notifications
You must be signed in to change notification settings - Fork 5.9k
[API Compatibility No.352、372] add param decorator for paddle.std and paddle.randint -part #77194
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
base: develop
Are you sure you want to change the base?
Conversation
|
你的PR提交成功,感谢你对开源项目的贡献! |
python/paddle/tensor/ops.py
Outdated
| if out is not None: | ||
| import paddle | ||
|
|
||
| paddle.assign(res, out) |
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.
这个为何不采用下沉的方式
python/paddle/tensor/stat.py
Outdated
| x, axis=axis, unbiased=unbiased, keepdim=keepdim, name=name, out=out | ||
| ) | ||
| if out is not None: | ||
| out.sqrt_() |
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.sqrt(out=) 吧,另外var如果支持了别名,这里是不是透传就行。无需再来一次装饰器。
|
square已经下沉了,重新处理std、randint吧 |
1080822 to
4bd5672
Compare
c114028 to
4a0bbfb
Compare
Codecov Report❌ Patch coverage is
❌ Your patch status has failed because the patch coverage (66.66%) is below the target coverage (90.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## develop #77194 +/- ##
==========================================
Coverage ? 66.66%
==========================================
Files ? 2
Lines ? 6
Branches ? 0
==========================================
Hits ? 4
Misses ? 2
Partials ? 0 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
PR Category
User Experience
PR Types
New features
Description
add param decorator and unit tests for paddle.std, paddle.square and paddle.randint