Skip to content

Commit

Permalink
Replaces nn.functional.tanh with torch.tanh
Browse files Browse the repository at this point in the history
  • Loading branch information
prabhatnagarajan committed Sep 4, 2020
1 parent e6c9b01 commit 08e23a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pfrl/functions/bound_by_tanh.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ def bound_by_tanh(x, low, high):
high = torch.as_tensor(high, dtype=x.dtype, device=x.device)
scale = (high - low) / 2
loc = (high + low) / 2
return nn.functional.tanh(x) * scale + loc
return torch.tanh(x) * scale + loc

0 comments on commit 08e23a4

Please sign in to comment.