-
Couldn't load subscription status.
- Fork 5.9k
[PHI] Support int64 for paddle.kthvalue param k #74002
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
[PHI] Support int64 for paddle.kthvalue param k #74002
Conversation
| 你的PR提交成功,感谢你对开源项目的贡献! |
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再找黄济懿、陈志扬帮忙看看
| 另外 Static-Check 的 approval 问题需要解决一下,旧 IR 的 Op 定义是不希望改变的,同样参考 #72639 里在 |
2f5e7e8
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
de94393 Codecov ReportAttention: Patch coverage is
❌ Your patch status has failed because the patch coverage (82.60%) 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 #74002 +/- ## ========================================== Coverage ? 82.60% ========================================== Files ? 2 Lines ? 23 Branches ? 0 ========================================== Hits ? 19 Misses ? 4 Partials ? 0 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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
| /re-run all-failed |
PR Category
Operator Mechanism
PR Types
Bug fixes
Description
Modification:
ksignature frominttoint64_t. Preposition PR:paddle.kthvaluefor big tensor #73745paddle/fluid/framework/infershape_utils.cc、paddle/fluid/framework/operator.ccto supportinttoint64_t, referring to the handling ofvector<int>: https://github.com/PaddlePaddle/Paddle/blob/develop/paddle/fluid/framework/infershape_utils.cc#L825Correctness Test:
Now
paddle.kthvaluesupportsint64_tfor the parameterk, and computes faster than torch. Paddle return the first index of the k-th value, whereas torch return it randomly.Compatibility Test:
To test whether the models of old/new IR can be loaded before and after modification (using paddle daily build to save the models)
new IR report error:

It can be addressed for Release version by changing pir patch version:
old IR pass:

Pcard-85711