Skip to content

[Big tensor] Fix paddle.linalg.norm - #74541

Closed
leon062112 wants to merge 1 commit into
PaddlePaddle:developfrom
leon062112:bugfix/norm
Closed

[Big tensor] Fix paddle.linalg.norm#74541
leon062112 wants to merge 1 commit into
PaddlePaddle:developfrom
leon062112:bugfix/norm

Conversation

@leon062112

Copy link
Copy Markdown
Contributor

PR Category

Operator Mechanism

PR Types

Bug fixes

Description

paddle.linalg.norm在梯度计算逻辑不一致:在计算无穷范数(L-infinity norm)时,PaddlePaddle与PyTorch对最大值的反向梯度赋值策略存在差异。
PaddlePaddle (current): 将梯度 1 赋给所有的最大值。
PyTorch: 将梯度在所有等于最大值的元素间进行平均分配。

@paddle-bot

paddle-bot Bot commented Aug 11, 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 Aug 11, 2025
@paddle-bot paddle-bot Bot closed this Aug 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contributor External developers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant