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 9, 2021
1 parent 62bbc5c commit 73dd20e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/garage/torch/distributions/tanh_normal.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ class TanhNormal(torch.distributions.Distribution):
""" # noqa: 501

def __init__(self, loc, scale):
self._normal = Independent(Normal(loc, scale), 1)
# pylint: disable=W0223
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 73dd20e

Please sign in to comment.