Repository navigation
[0-size Tensor No.159、161、163] Add 0-size Tensor support for conv1d - #73691
Merged
Merged
Conversation
|
你的PR提交成功,感谢你对开源项目的贡献! |
co63oc
force-pushed
the
f61
branch
2 times, most recently
from
June 28, 2025 08:02
1ce0521 to
298d01a
Compare
Codecov Report❌ Patch coverage is
❌ Your patch status has failed because the patch coverage (76.92%) 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 #73691 +/- ##
==========================================
Coverage ? 76.92%
==========================================
Files ? 2
Lines ? 13
Branches ? 0
==========================================
Hits ? 10
Misses ? 3
Partials ? 0 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Contributor
Author
|
/re-run all-failed |
Contributor
|
涉及到符号推导的改动请 @luotao1 协调云飞看一下 |
zyfncg
approved these changes
Jul 1, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Category
Execute Infrastructure
PR Types
Bug fixes
Description
paddle.nn.functional.conv1d
paddle.nn.functional.conv2d
paddle.nn.functional.conv3d
Infermeta 去掉维度为0检查,如果filter_dims[1] 为0,结果对应维度设置为0,原有代码是设置filter_dims[0],符号推导同样修改。

修改kernel,只用判断input 维度为0
torch不支持单独filter设置为0维度
kernel 使用到depthwise_conv 和 conv kernel, 修改 depthwise_conv 和 conv kernel
正向测试返回填充为0,需要修改tester/accuracy.py输出结果, PaddleAPITest 对输入增加了pad
反向测试filter为填充0
PaddleAPITest 测试


GPU测试为torch error
CPU测试为torch error

