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

No default validation of prior args #31

Merged
merged 1 commit into from
Nov 12, 2021
Merged

No default validation of prior args #31

merged 1 commit into from
Nov 12, 2021

Conversation

jan-matthis
Copy link
Contributor

In recent versions of PyTorch, default behavior for distributions changed to validate args by default. As consequence of this, evaluating an distribution out of its support throws an error rather than returning torch(-inf). This PR restores the old behavior by disabling validation for the prior distributions. In the future, we might change the rejection sampling algorithms instead, by using within_support from sbi.

@jan-matthis jan-matthis merged commit e8f9d2b into main Nov 12, 2021
@jan-matthis jan-matthis deleted the torch_18_fixes branch November 15, 2021 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant