Repository navigation
[0-size Tensor Job2 No.26、62、103、104] Add 0-size Tensor support for paddle.incubate.nn.functional.fused_bias_dropout_residual_layer_norm [fluid_ops] - #74029
Merged
Conversation
|
你的PR提交成功,感谢你对开源项目的贡献! |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #74029 +/- ##
==========================================
Coverage ? 50.00%
==========================================
Files ? 2
Lines ? 4
Branches ? 0
==========================================
Hits ? 2
Misses ? 2
Partials ? 0 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Contributor
Author
|
/re-run all-failed |
Contributor
Author
|
/re-run all-failed |
Contributor
|
请解决下conflicts |
Contributor
Author
|
@DanielSun11 CI已完成需要review |
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
Operator Mechanism
PR Types
Bug fixes
Description
26 paddle.incubate.nn.functional.fused_bias_dropout_residual_layer_norm

https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/incubate/nn/functional/fused_bias_dropout_residual_layer_norm_cn.html#fused-bias-dropout-residual-layer-norm
输出与x相同,但是测试residual如果为0-size,和residual相同,修改infermeta,没有符号推导
反向填充0,PaddeAPITest为自定义规则
https://github.com/PFCCLab/PaddleAPITest/blob/ec3cd8547f76e608c492f8a7ddb941c64765d378/tester/paddle_to_torch/rules.py#L2256
PaddleAPITest测试通过

62 paddle.nn.functional.margin_cross_entropy
PFCCLab/PaddleAPITest#354
margin_cross_entropy 增加logits结尾维度不为0的检查

103 deform_conv2d

文档
https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/vision/ops/deform_conv2d_cn.html
输入输出说明
从文档查看,输入0-size,输出可能不是0-size,测试中有不同规则检查,没有找到对应测试用例,代码还是按填充编写
修改前向和反向,使用0填充
torch测试反向填充
PaddleAPITest测试通过

错误中断是torch错误

104 distribute_fpn_proposals
增加单测
文档地址 https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/vision/ops/distribute_fpn_proposals_cn.html

PaddleAPITest 测试通过,错误为numpy error
