-
Notifications
You must be signed in to change notification settings - Fork 5.9k
[0-size Tensor Job2 No.15、84] Add 0-size Tensor support for paddle.gather [fluid_ops] #73483
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 ReportAttention: Patch coverage is
❌ Your patch status has failed because the patch coverage (38.46%) 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 #73483 +/- ##
==========================================
Coverage ? 38.46%
==========================================
Files ? 3
Lines ? 13
Branches ? 0
==========================================
Hits ? 5
Misses ? 8
Partials ? 0 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
/re-run all-failed |
|
/re-run all-failed |
|
/re-run all-failed |
|
@DanielSun11 这个PR可以review @luotao1 |
DanielSun11
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.
LGTM
PR Category
Operator Mechanism
PR Types
Bug fixes
Description
[0-size Tensor Job2 No.15] Add 0-size Tensor support for paddle.gather
修改infermeta, 符号推导中对index使用的是product,已包含维度为0的逻辑不用修改
Paddle/paddle/fluid/pir/dialect/operator/interface/infer_symbolic_shape/binary_infer_sym.cc
Line 934 in bb0cc74
修改前向和反向,反向填充0

PaddleAPITest中Rule是paddle自定义https://github.com/PFCCLab/PaddleAPITest/blob/6576bb1a5e90a1c99322cabcf317411c518eb82e/tester/paddle_to_torch/rules.py#L2499
PaddleAPITest测试为numpy error, torch error

