Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make loss cond. on label while using Stirling approximation #56992

Merged
merged 1 commit into from
Sep 6, 2023

Conversation

akshatvishu
Copy link
Contributor

@akshatvishu akshatvishu commented Sep 5, 2023

PR types

Others

PR changes

Others

Description

This commit updates the condition for adding the Stirling approximation term in Poisson NLL Loss to align with how PyTorch and TensorFlow handle it. The condition is changed from 'label <= 1' to 'label > 1' for adding the Stirling term, making the behavior consistent across frameworks.

@paddle-bot
Copy link

paddle-bot bot commented Sep 5, 2023

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

@akshatvishu
Copy link
Contributor Author

akshatvishu commented Sep 5, 2023

Close #56824 #56733

@paddle-bot paddle-bot bot added the contributor External developers label Sep 5, 2023
@luotao1 luotao1 self-assigned this Sep 6, 2023
@luotao1
Copy link
Contributor

luotao1 commented Sep 6, 2023

@LyndonKong Could you help review this PR?

@LyndonKong
Copy link
Contributor

LGTM

@luotao1 luotao1 merged commit f6a8125 into PaddlePaddle:develop Sep 6, 2023
@akshatvishu
Copy link
Contributor Author

Thank you @luotao1 and @LyndonKong for sticking me with this one even though I made a lot of mistakes . Your support and guidance was invaluable !

@akshatvishu akshatvishu deleted the issue_! branch September 6, 2023 15:08
akshatvishu added a commit to akshatvishu/ivy that referenced this pull request Sep 13, 2023
…le issue

Refined the `poisson_nll_loss` composition function to address discrepancies with the native PaddlePaddle method. This refinement ensures accuracy and is to be replaced once PaddlePaddle promotes the changes from the develop branch to a stable release.

Related to PR in PaddlePaddle: PaddlePaddle/Paddle#56992
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.

3 participants