Skip to content

Commit f6585d4

Browse files
committed
Disable validate_args
1 parent 62bbc5c commit f6585d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/garage/torch/distributions/tanh_normal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class TanhNormal(torch.distributions.Distribution):
1919
""" # noqa: 501
2020

2121
def __init__(self, loc, scale):
22-
self._normal = Independent(Normal(loc, scale), 1)
22+
self._normal = Independent(Normal(loc, scale), 1, validate_args=False)
2323
super().__init__()
2424

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

0 commit comments

Comments
 (0)