Skip to content

[0-size Tensor No.185、151] Add 0-size Tensor support for paddle.nn.functional.layer_norm [fluid_ops] - #74129

Merged
luotao1 merged 6 commits into
PaddlePaddle:developfrom
co63oc:h29
Jul 22, 2025
Merged

luotao1 merged 6 commits into
PaddlePaddle:developfrom
co63oc:h29

Conversation

@co63oc

@co63oc co63oc commented Jul 19, 2025 •

Copy link
Copy Markdown
Contributor

PR Category

Operator Mechanism

PR Types

Bug fixes

Description

[0-size Tensor No.185] Add 0-size Tensor support for paddle.nn.functional.layer_norm
185 paddle.nn.functional.layer_norm
修改kernel前向和反向,GPU 反向如果x, weight类型不同,需要对grad修改类型

PaddleAPITest测试通过
image

151 paddle.nn.functional.affine_grid
测试用例为numpy error,修改为抛出错误,配置移除在PR PFCCLab/PaddleAPITest#354

@paddle-bot

paddle-bot Bot commented Jul 19, 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 19, 2025
@co63oc co63oc changed the title CI测试不review layer_norm CI测试不review layer_norm [fluid_ops] Jul 19, 2025
@codecov-commenter

codecov-commenter commented Jul 19, 2025 •

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 16.66667% with 10 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/layer_norm_grad_kernel.cc 0.00% 9 Missing ⚠️
python/paddle/nn/functional/vision.py 50.00% 1 Missing ⚠️

❌ Your patch status has failed because the patch coverage (16.66%) 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   #74129   +/-   ##
==========================================
  Coverage           ?   16.66%           
==========================================
  Files              ?        3           
  Lines              ?       12           
  Branches           ?        0           
==========================================
  Hits               ?        2           
  Misses             ?       10           
  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.

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

co63oc commented Jul 20, 2025

Copy link
Copy Markdown
Contributor Author

/re-run all-failed

@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

@luotao1
luotao1 merged commit afacb7d into PaddlePaddle:develop Jul 22, 2025
@co63oc
co63oc deleted the h29 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 进阶版快乐开源活动,更具挑战性的任务 skip-ci: approval

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants