Skip to content

[API compatibility] support paddle.norm and paddle.linalg.norm with out param#74934

Merged
zhwesky2010 merged 4 commits into
PaddlePaddle:developfrom
zeroRains:norm
Aug 28, 2025
Merged

[API compatibility] support paddle.norm and paddle.linalg.norm with out param#74934
zhwesky2010 merged 4 commits into
PaddlePaddle:developfrom
zeroRains:norm

Conversation

@zeroRains
Copy link
Copy Markdown
Contributor

@zeroRains zeroRains commented Aug 27, 2025

PR Category

User Experience

PR Types

New features

Description

为paddle.norm添加out参数,使其对齐torch.norm()。

对齐paddle.linalg.norm与torch.linalg.norm

在PaConvert下自测,paddle.norm()与torch.norm()对齐, paddle.linalg.norm与torch.linalg.norm对齐。

pcard-71500

paddle.norm
image

paddle.linalg.norm
image

@paddle-bot
Copy link
Copy Markdown

paddle-bot Bot commented Aug 27, 2025

你的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.

@zeroRains
Copy link
Copy Markdown
Contributor Author

/re-run all-failed

@zeroRains zeroRains changed the title [API compatibility] support paddle.norm with out param [API compatibility] support paddle.norm and paddle.linalg.norm with out param Aug 28, 2025
Copy link
Copy Markdown
Contributor

@zhwesky2010 zhwesky2010 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Copy Markdown
Contributor

@XiaoguangHu01 XiaoguangHu01 left a comment

Choose a reason for hiding this comment

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

LGTM

@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (develop@d83b10e). Learn more about missing BASE report.

Additional details and impacted files
@@             Coverage Diff             @@
##             develop    #74934   +/-   ##
===========================================
  Coverage           ?   100.00%           
===========================================
  Files              ?         1           
  Lines              ?        10           
  Branches           ?         0           
===========================================
  Hits               ?        10           
  Misses             ?         0           
  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.

@zeroRains
Copy link
Copy Markdown
Contributor Author

/re-run all-failed

@zhwesky2010 zhwesky2010 requested a review from zyfncg August 28, 2025 07:24
@zhwesky2010 zhwesky2010 merged commit 128cfd5 into PaddlePaddle:develop Aug 28, 2025
92 of 95 checks passed
@zeroRains zeroRains deleted the norm branch August 28, 2025 07:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants