We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 367445a commit ce1d853Copy full SHA for ce1d853
torch/nn/functional.py
@@ -1009,7 +1009,7 @@ def tanh(input):
1009
1010
See :class:`~torch.nn.Tanh` for more details.
1011
"""
1012
- warnings.warn("nn.functional.tanh is deprecated. Use nn.Tanh or torch.tanh instead.")
+ warnings.warn("nn.functional.tanh is deprecated. Use torch.tanh instead.")
1013
return input.tanh()
1014
1015
@@ -1020,7 +1020,7 @@ def sigmoid(input):
1020
1021
See :class:`~torch.nn.Sigmoid` for more details.
1022
1023
- warnings.warn("nn.functional.sigmoid is deprecated. Use nn.Sigmoid or torch.sigmoid instead.")
+ warnings.warn("nn.functional.sigmoid is deprecated. Use torch.sigmoid instead.")
1024
return input.sigmoid()
1025
1026
0 commit comments