Skip to content

Commit

Permalink
Disable validate_args
Browse files Browse the repository at this point in the history
  • Loading branch information
irisliucy committed Mar 8, 2021
1 parent 62bbc5c commit f6585d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/garage/torch/distributions/tanh_normal.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class TanhNormal(torch.distributions.Distribution):
""" # noqa: 501

def __init__(self, loc, scale):
self._normal = Independent(Normal(loc, scale), 1)
self._normal = Independent(Normal(loc, scale), 1, validate_args=False)
super().__init__()

def log_prob(self, value, pre_tanh_value=None, epsilon=1e-6):
Expand Down

0 comments on commit f6585d4

Please sign in to comment.