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

Squeeze parameters over batches before log_prob #13

Merged
merged 1 commit into from
Jun 2, 2021

Conversation

atiyo
Copy link
Contributor

@atiyo atiyo commented Jun 2, 2021

Resolves #12

As mentioned in the issue, squeeze parameters over the singleton batch dimension prior to taking log_probs. This addresses the more aggressive shape validation introduced in PyTorch 1.8.0.

Signed-off-by: Atiyo Ghosh <atiyo@users.noreply.github.com>
@jan-matthis jan-matthis merged commit 325c930 into sbi-benchmark:main Jun 2, 2021
@jan-matthis
Copy link
Contributor

Cheers!

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.

Stray singleton dimension in mcabc.py?
2 participants