Skip to content

Commit

Permalink
dists: Fix sigmoid call
Browse files Browse the repository at this point in the history
  • Loading branch information
braun-steven authored Oct 23, 2023
1 parent 9ff96c3 commit 41c0fc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion simple_einet/layers/distributions/bernoulli.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ def __init__(self, num_features: int, num_channels: int, num_leaves: int, num_re

def _get_base_distribution(self):
# Use sigmoid to ensure, that probs are in valid range
return dist.Bernoulli(probs=self.sigmoid(self.probs))
return dist.Bernoulli(probs=torch.sigmoid(self.probs))

0 comments on commit 41c0fc2

Please sign in to comment.