Skip to content

Commit ce1d853

Browse files
committed
changed deprecated warnings
1 parent 367445a commit ce1d853

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

torch/nn/functional.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1009,7 +1009,7 @@ def tanh(input):
10091009
10101010
See :class:`~torch.nn.Tanh` for more details.
10111011
"""
1012-
warnings.warn("nn.functional.tanh is deprecated. Use nn.Tanh or torch.tanh instead.")
1012+
warnings.warn("nn.functional.tanh is deprecated. Use torch.tanh instead.")
10131013
return input.tanh()
10141014

10151015

@@ -1020,7 +1020,7 @@ def sigmoid(input):
10201020
10211021
See :class:`~torch.nn.Sigmoid` for more details.
10221022
"""
1023-
warnings.warn("nn.functional.sigmoid is deprecated. Use nn.Sigmoid or torch.sigmoid instead.")
1023+
warnings.warn("nn.functional.sigmoid is deprecated. Use torch.sigmoid instead.")
10241024
return input.sigmoid()
10251025

10261026

0 commit comments

Comments
 (0)