Skip to content

Commit

Permalink
allow more flexible proposals in atomic snpe-c
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeldeistler committed Aug 24, 2022
1 parent 893ac43 commit ce42bad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sbi/inference/snpe/snpe_c.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,8 @@ def train(
# last proposal.
proposal = self._proposal_roundwise[-1]
self.use_non_atomic_loss = (
isinstance(proposal.posterior_estimator._distribution, mdn)
isinstance(proposal, DirectPosterior)
and isinstance(proposal.posterior_estimator._distribution, mdn)
and isinstance(self._neural_net._distribution, mdn)
and check_dist_class(
self._prior, class_to_check=(Uniform, MultivariateNormal)
Expand Down

0 comments on commit ce42bad

Please sign in to comment.