Skip to content

Fix DiscreteUniform.enumerate_support with non-trivial batch shape#1859

Merged
martinjankowiak merged 2 commits intopyro-ppl:masterfrom
fehiepsi:discrete-uni
Sep 16, 2024
Merged

Fix DiscreteUniform.enumerate_support with non-trivial batch shape#1859
martinjankowiak merged 2 commits intopyro-ppl:masterfrom
fehiepsi:discrete-uni

Conversation

@fehiepsi
Copy link
Member

@fehiepsi fehiepsi commented Sep 5, 2024

Currently, enumerate_support of DiscreteUniform raises an error when either low or high parameter has non-trivial shape. This fixes the issue and adds a test to cover the change.

Unblock #1835

Deathn0t added a commit to Deathn0t/numpyro that referenced this pull request Sep 5, 2024
@martinjankowiak martinjankowiak merged commit ca8fb39 into pyro-ppl:master Sep 16, 2024
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