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

Refactor validate_args method on distributions (fixes #1865). #1866

Merged
merged 1 commit into from
Sep 24, 2024

Conversation

tillahoffmann
Copy link
Contributor

This PR moves argument validation into a separate method. I've added an argument strict to the method such that an error is raised if validation is requested inside jitted code. The constructor uses strict = False to maintain backwards compatibility.

Copy link
Member

@fehiepsi fehiepsi left a comment

Choose a reason for hiding this comment

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

Thanks, @tillahoffmann!

@fehiepsi fehiepsi merged commit 8e9313f into pyro-ppl:master Sep 24, 2024
4 checks passed
@tillahoffmann tillahoffmann deleted the validate-args branch November 18, 2024 18:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants