-
Notifications
You must be signed in to change notification settings - Fork 203
Implement scatter_logsumexp, scatter_softmax, scatter_log_softmax #77
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
Conversation
|
Overall, this looks really good :) Thank you!
I wonder if it is really beneficial to compute |
* `log_softmax` has now stand-alone to save one operation (and fix a bug). * `softmax` is implemented in a similar stand-alone way. * Address some PR comments.
Codecov Report
@@ Coverage Diff @@
## master #77 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 10 13 +3
Lines 126 159 +33
=====================================
+ Hits 126 159 +33
Continue to review full report at Codecov.
|
|
Some progress for today:
|
|
Thanks for the update. I will have a last look and will merge afterwards. I am a bit stressed due to ICLR rebuttal, but I will merge as soon as possible. Sorry for the delay. |
|
Merged and released in |
|
Thanks for accepting this PR and your help. Best wishes for ICLR. |
(As discussed in #76)
scatter_logsumexpcode copied from Scatter_logaddexp #71 with small modifications.scatter_*softmaxoperations added intorch_scatter.compositesubpackage.Closes #76
Open Issues
@rusty1s opening this for discussion. Haven't tested this at all, yet but need to stop for the day. Let me know if you have any comments so far.
Also, there are some design decisions/issues that are not up to me to decide about:
scatter_logsumexptheoutargument is a bit cumbersome. I've made a choice about handling this, but let me know if you'd like to change this.scatter_*softmaxops. Are you happy with this?scatter_logsumexporscatter_logaddexp.scatter_logsumexpis "compatible" with the respective PyTorch function.logaddexpis compatible withscatter_add.