KEMBAR78
Fix log_prob for Gumbel distribution by vishwakftw · Pull Request #15878 · pytorch/pytorch · GitHub
Skip to content

Conversation

@vishwakftw
Copy link
Contributor

Fixes #15681

Changelog:

  • Add hard-coded implementation of log_prob

Test plan:

  • Existing tests should pass

cc: @fritzo
There seems to be a precision issue (reported above) in the Gumbel log_prob function computed using the transforms, which is why I have hard-coded it.

@ssnl
Copy link
Collaborator

ssnl commented Jan 9, 2019

rebase to fix macos builds :)

Copy link
Collaborator

@fritzo fritzo left a 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.

Copy link
Contributor

@ajaech ajaech left a comment

Choose a reason for hiding this comment

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

Looks good!

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a 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.

@vishwakftw vishwakftw deleted the gumbel-log_prob-fix branch January 10, 2019 04:45
vishwakftw added a commit to vishwakftw/pytorch that referenced this pull request Jan 18, 2019
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
soumith pushed a commit that referenced this pull request Jan 18, 2019
Summary:
Fixes #15681

Changelog:
- Add hard-coded implementation of log_prob
Pull Request resolved: #15878

Differential Revision: D13613716

Pulled By: soumith

fbshipit-source-id: 2ba74e52748b6213098b167940dcc068f0c056f4
soumith pushed a commit that referenced this pull request Jan 29, 2019
Summary:
Fixes #15681

Changelog:
- Add hard-coded implementation of log_prob
Pull Request resolved: #15878

Differential Revision: D13613716

Pulled By: soumith

fbshipit-source-id: 2ba74e52748b6213098b167940dcc068f0c056f4
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.

Gumbel distribution computes log_prob incorrectly

7 participants