Skip to content

[0-size Tensor No.221、155、187] Add 0-size Tensor support for paddle.nn.functional.softmax [fluid_ops] - #74119

Merged
luotao1 merged 2 commits into
PaddlePaddle:developfrom
co63oc:h28
Jul 22, 2025
Merged

luotao1 merged 2 commits into
PaddlePaddle:developfrom
co63oc:h28

Conversation

@co63oc

@co63oc co63oc commented Jul 18, 2025 •

Copy link
Copy Markdown
Contributor

PR Category

Operator Mechanism

PR Types

Bug fixes

Description

155 paddle.nn.functional.batch_norm
修改 infermeta, 符号推导,修改为0的检查
修改kernel,x.numel() 为0返回

PaddleAPITest 测试通过,错误为torch error
image

[0-size Tensor No.221] Add 0-size Tensor support for paddle.nn.functional.softmax
221 paddle.nn.functional.softmax

softmax 增加 GPUDNN 支持 0-size
增加单测

PaddleAPITest测试通过
image

187 paddle.nn.functional.linear
XPU 补充 matmul 0-size计算,其他kernel测试通过
增加单测

PaddleAPITest测试通过,错误为torch error
image

@paddle-bot

paddle-bot Bot commented Jul 18, 2025

Copy link
Copy Markdown

你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册。
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@paddle-bot paddle-bot Bot added the contributor External developers label Jul 18, 2025
@co63oc

co63oc commented Jul 19, 2025

Copy link
Copy Markdown
Contributor Author

/re-run all-failed

@co63oc co63oc changed the title CI测试不review [fluid_ops] [0-size Tensor No.221、155、187] Add 0-size Tensor support for paddle.nn.functional.softmax [fluid_ops] Jul 19, 2025
@co63oc

co63oc commented Jul 19, 2025

Copy link
Copy Markdown
Contributor Author

/re-run all-failed

@codecov-commenter

codecov-commenter commented Jul 19, 2025 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 13.63636% with 19 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (develop@8341678). Learn more about missing BASE report.

Files with missing lines Patch % Lines
paddle/phi/kernels/cpu/batch_norm_kernel.cc 10.00% 9 Missing ⚠️
paddle/phi/kernels/cpu/batch_norm_grad_kernel.cc 11.11% 8 Missing ⚠️
...terface/infer_symbolic_shape/multiary_infer_sym.cc 0.00% 2 Missing ⚠️

❌ Your patch status has failed because the patch coverage (13.63%) 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   #74119   +/-   ##
==========================================
  Coverage           ?   13.63%           
==========================================
  Files              ?        4           
  Lines              ?       22           
  Branches           ?        0           
==========================================
  Hits               ?        3           
  Misses             ?       19           
  Partials           ?        0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@luotao1 luotao1 added the HappyOpenSource Pro 进阶版快乐开源活动,更具挑战性的任务 label Jul 21, 2025
@co63oc

co63oc commented Jul 22, 2025

Copy link
Copy Markdown
Contributor Author

@DanielSun11 CI已完成需要review

@DanielSun11 DanielSun11 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@DanielSun11

Copy link
Copy Markdown
Contributor

修改了符号推导 请 @luotao1 协调云飞review

@luotao1
luotao1 merged commit 08edb82 into PaddlePaddle:develop Jul 22, 2025
@co63oc
co63oc deleted the h28 branch July 23, 2025 04:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contributor External developers HappyOpenSource Pro 进阶版快乐开源活动,更具挑战性的任务

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants