-
Notifications
You must be signed in to change notification settings - Fork 25.7k
Fix log_prob for Gumbel distribution #15878
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
|
rebase to fix macos builds :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM if distributions tests pass.
…el-log_prob-fix
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@soumith is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
Summary: Fixes pytorch#15681 Changelog: - Add hard-coded implementation of log_prob Pull Request resolved: pytorch#15878 Differential Revision: D13613716 Pulled By: soumith fbshipit-source-id: 2ba74e52748b6213098b167940dcc068f0c056f4
Fixes #15681
Changelog:
Test plan:
cc: @fritzo
There seems to be a precision issue (reported above) in the Gumbel
log_probfunction computed using the transforms, which is why I have hard-coded it.