Skip to content

Commit

Permalink
2d sampling
Browse files Browse the repository at this point in the history
  • Loading branch information
Dingel321 committed Dec 16, 2024
1 parent 9898e73 commit 0a21fe4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cryo_sbi/utils/estimator_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def sample_posterior(
samples = estimator.sample(
image_batch.to(device, non_blocking=True), shape=(num_samples,)
).cpu()
theta_samples.append(samples.reshape(-1, image_batch.shape[0]))
theta_samples.append(samples)

return torch.cat(theta_samples, dim=1)

Expand Down

0 comments on commit 0a21fe4

Please sign in to comment.