Skip to content

Conversation

@co63oc
Copy link
Contributor

@co63oc co63oc commented Jul 1, 2025

PR Category

Operator Mechanism

PR Types

Bug fixes

Description

https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/nn/functional/multi_margin_loss_cn.html

image
multi_margin_loss weight 应加到 pow计算后,因为有在0和运算值中取较大的值计算,如果weight有负值,计算会有误差

同样修改单测的计算

PaddleAPITest 测试通过,如果测试错误时会随机出现,需要重复运行几次
image

@paddle-bot
Copy link

paddle-bot bot commented Jul 1, 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.

@co63oc
Copy link
Contributor Author

co63oc commented Jul 2, 2025

@lshpku CI已完成需要review

@lshpku lshpku merged commit 85bc32d into PaddlePaddle:develop Jul 2, 2025
54 of 56 checks passed
@co63oc co63oc deleted the g12 branch July 10, 2025 05:40
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.

3 participants