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

Support more batch distributions in HaarReparam #2731

Merged
merged 7 commits into from
Jan 6, 2021

Conversation

fritzo
Copy link
Member

@fritzo fritzo commented Jan 4, 2021

This adds support for more uses of HaarTransform, motivated by batched epidemiological models.

  1. Documents the experimental_enable_batch kwarg (as suggested by @martinjankowiak)
  2. Mentions the experimental_enable_batch kwarg in the relevant error message.
  3. Adds reshape_batch() support for TransformedDistribution, ComposeTransform, and _InverseTransform, which are needed by HaarReparam in my model.
  4. Relaxes checking in block_plate to not error if no matching plate is found.
  5. Adds support for dist.Uniform
  6. Works around a new error in torch.view_as_complex()

Tested

@martinjankowiak martinjankowiak merged commit e173956 into dev Jan 6, 2021
@fritzo
Copy link
Member Author

fritzo commented Jan 6, 2021

Thanks for reviewing!

@fritzo fritzo mentioned this pull request Jan 29, 2021
@fritzo fritzo deleted the more-enable-batch branch September 27, 2021 14:47
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.

2 participants