Skip to content

Commit

Permalink
add is_binary=True (#3303)
Browse files Browse the repository at this point in the history
  • Loading branch information
ordabayevy committed Dec 6, 2023
1 parent a14fabc commit 9c4f932
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyro/distributions/zero_inflated.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ def support(self):

@lazy_property
def gate(self):
return logits_to_probs(self.gate_logits)
return logits_to_probs(self.gate_logits, is_binary=True)

@lazy_property
def gate_logits(self):
return probs_to_logits(self.gate)
return probs_to_logits(self.gate, is_binary=True)

def log_prob(self, value):
if self._validate_args:
Expand Down

0 comments on commit 9c4f932

Please sign in to comment.