Remove note

This commit is contained in:
Antonin RAFFIN 2019-09-22 21:33:35 +02:00
parent 1bd2e42995
commit 98e9560913

View file

@ -103,8 +103,6 @@ class SquashedDiagGaussianDistribution(DiagGaussianDistribution):
# Inverse tanh
# Naive implementation (not stable): 0.5 * torch.log((1 + x ) / (1 - x))
# We use numpy to avoid numerical instability
# TODO: store the gaussian action because of the action added
# this would avoid also inverting the tanh
if gaussian_action is None:
gaussian_action = th.from_numpy(np.arctanh(action.cpu().numpy())).to(action.device)