Skip to content

Commit

Permalink
Shorten comment
Browse files Browse the repository at this point in the history
  • Loading branch information
francois-rozet committed Dec 18, 2023
1 parent 96cfaf6 commit fc5c5c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyro/contrib/zuko.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def batch_shape(self) -> Size:
return self.dist.batch_shape

def __call__(self, shape: Size = ()) -> Tensor:
if hasattr(self.dist, "rsample_and_log_prob"): # special method for fast sampling + scoring
if hasattr(self.dist, "rsample_and_log_prob"): # fast sampling + scoring
x, self.cache[x] = self.dist.rsample_and_log_prob(shape)
elif self.has_rsample:
x = self.dist.rsample(shape)
Expand Down

0 comments on commit fc5c5c0

Please sign in to comment.