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

lgamma backward #10177

Merged

Conversation

youxiudeshouyeren
Copy link
Contributor

@youxiudeshouyeren youxiudeshouyeren commented Apr 21, 2023

修复了之前pr引入的一个小bug (多了一个return语句)
添加了lgamma的反向传播算子

@@ -250,7 +250,17 @@ struct BinaryFunctor<DeviceType::kCUDA, BinaryOp::kDigammaBackwardWithDyX, Src,
0, 0);
Src trigamma_result = trigamma_functor(x);
return trigamma_result * dy;
return 0.0;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

之前一个pr的bug,删掉这个useless return

@youxiudeshouyeren youxiudeshouyeren marked this pull request as ready for review April 21, 2023 08:00
@youxiudeshouyeren youxiudeshouyeren merged commit bf6ec80 into Oneflow-Inc:master May 5, 2023
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.

3 participants