Skip to content

Commit

Permalink
address comment
Browse files Browse the repository at this point in the history
  • Loading branch information
eb8680 authored Mar 4, 2023
1 parent 5c5f1bb commit e74831c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyro/distributions/torch_transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ def __hash__(self):
return super(torch.nn.Module, self).__hash__()

def with_cache(self, cache_size=1):
if cache_size == 0:
if cache_size == self._cache_size:
return self
return ComposeTransformModule(self.parts, cache_size=cache_size)

0 comments on commit e74831c

Please sign in to comment.