-
Notifications
You must be signed in to change notification settings - Fork 5.9k
[Accuracy diff No.167] Fix accuracy (output type) diff for paddle.cumsum API #74625
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
Conversation
|
你的PR提交成功,感谢你对开源项目的贡献! |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #74625 +/- ##
==========================================
Coverage ? 0
==========================================
Files ? 0
Lines ? 0
Branches ? 0
==========================================
Hits ? 0
Misses ? 0
Partials ? 0 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
/re-run all-failed |
wanghuancoder
left a comment
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端做了cast,那么unary.cc中的逻辑应该是不需要修改的
- uint16、uint32是不是也应该处理?
- 增加一个单测测试吧。
…cumsum kernel and add unit test
|
|
/re-run all-failed |
|
/re-run all-failed |
…sum API (PaddlePaddle#74625) * fix(math.py, unary.cc): fix output type diff for cumsum kernel * fix(math.py): fix output type diff for cumsum kernel * fix(math.py): fix `cumsum` documentation * fix(cum/cum_grad.cc/cu, test_cumsum_op.py): fix output type diff for cumsum kernel and add unit test
PR Category
Operator Mechanism
PR Types
Bug fixes
Description
Currently, the
cumsumkernel exhibits different output types between PyTorch and Paddle. For instance, when the input datatype isint8/int16/int32, PyTorch outputsint64, whereas Paddle outputs the origin datatype.This PR
pcard-67164