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

Fixup for process_x in EnsemblePosterior #1148

Merged
merged 1 commit into from
Apr 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion sbi/inference/posteriors/ensemble_posterior.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,9 @@
`EnsemblePosterior` that will use a default `x` when not explicitly
passed.
"""
self._x = x.to(self._device)
self._x = process_x(

Check warning on line 245 in sbi/inference/posteriors/ensemble_posterior.py

View check run for this annotation

Codecov / codecov/patch

sbi/inference/posteriors/ensemble_posterior.py#L245

Added line #L245 was not covered by tests
x, x_event_shape=None, allow_iid_x=self.potential_fn.allow_iid_x
).to(self._device)

for posterior in self.posteriors:
posterior.set_default_x(x)
Expand Down