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
Fix gumbel cdf #91698
Fix gumbel cdf #91698
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/91698
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 5143a0f: This comment was automatically generated by Dr. CI and updates every 15 minutes. |
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, thanks for fixing this!
@zou3519 could you merge this please? I'm unsure of the current merge process |
Looks like this PR hasn't been updated in a while so we're going to go ahead and mark this as |
Sorry, I was out of town for a while and just saw this now. Let me try to rebase (automatically first, then manually) and then I'll get this merged. |
@pytorchbot help |
❌ 🤖 pytorchbot command failed:
Try |
@pytorchbot rebase |
@pytorchbot successfully started a rebase job. Check the current status here |
…pport of underlying Uniform distribution
Successfully rebased |
5e5c017
to
5143a0f
Compare
@pytorchbot merge |
Merge failedReason: This PR needs a label If not, please add the For more information, see Details for Dev Infra teamRaised by workflow job |
@pytorchbot merge |
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
Fix `Gumbel.cdf` function. **Description** When transformed parameters is outside of the support of underlying Uniform distribution. This makes behavior of `Gumbel.cdf` consistent with other `TransformedDistribution` that pass value of validate_args to the base distribution. **Issue** running `Gumbel(0.0,1.0,validate_args=False).cdf(20.0)` would cause `ValueError` exception from `_validate_sample` **Testing** Test was added to the `test_distributions.py` to check if `Gumbel(0.0,1.0,validate_args=False).cdf(20.0)` successfully returns `1.0` This is a second attempt to push changes , after pytorch#82488 Pull Request resolved: pytorch#91698 Approved by: https://github.com/fritzo, https://github.com/zou3519
Fix `Gumbel.cdf` function. **Description** When transformed parameters is outside of the support of underlying Uniform distribution. This makes behavior of `Gumbel.cdf` consistent with other `TransformedDistribution` that pass value of validate_args to the base distribution. **Issue** running `Gumbel(0.0,1.0,validate_args=False).cdf(20.0)` would cause `ValueError` exception from `_validate_sample` **Testing** Test was added to the `test_distributions.py` to check if `Gumbel(0.0,1.0,validate_args=False).cdf(20.0)` successfully returns `1.0` This is a second attempt to push changes , after pytorch/pytorch#82488 Pull Request resolved: pytorch/pytorch#91698 Approved by: https://github.com/fritzo, https://github.com/zou3519
Fix `Gumbel.cdf` function. **Description** When transformed parameters is outside of the support of underlying Uniform distribution. This makes behavior of `Gumbel.cdf` consistent with other `TransformedDistribution` that pass value of validate_args to the base distribution. **Issue** running `Gumbel(0.0,1.0,validate_args=False).cdf(20.0)` would cause `ValueError` exception from `_validate_sample` **Testing** Test was added to the `test_distributions.py` to check if `Gumbel(0.0,1.0,validate_args=False).cdf(20.0)` successfully returns `1.0` This is a second attempt to push changes , after pytorch/pytorch#82488 Pull Request resolved: pytorch/pytorch#91698 Approved by: https://github.com/fritzo, https://github.com/zou3519
Fix `Gumbel.cdf` function. **Description** When transformed parameters is outside of the support of underlying Uniform distribution. This makes behavior of `Gumbel.cdf` consistent with other `TransformedDistribution` that pass value of validate_args to the base distribution. **Issue** running `Gumbel(0.0,1.0,validate_args=False).cdf(20.0)` would cause `ValueError` exception from `_validate_sample` **Testing** Test was added to the `test_distributions.py` to check if `Gumbel(0.0,1.0,validate_args=False).cdf(20.0)` successfully returns `1.0` This is a second attempt to push changes , after pytorch#82488 Pull Request resolved: pytorch#91698 Approved by: https://github.com/fritzo, https://github.com/zou3519
Fix
Gumbel.cdf
function.Description
When transformed parameters is outside of the support of underlying Uniform distribution. This makes behavior of
Gumbel.cdf
consistent with otherTransformedDistribution
that pass value of validate_args to the base distribution.Issue
running
Gumbel(0.0,1.0,validate_args=False).cdf(20.0)
would causeValueError
exception from_validate_sample
Testing
Test was added to the
test_distributions.py
to check ifGumbel(0.0,1.0,validate_args=False).cdf(20.0)
successfully returns1.0
This is a second attempt to push changes , after #82488
cc @fritzo @neerajprad @alicanb @nikitaved