Rate this Page

Softsign#

class torch.nn.modules.activation.Softsign(*args, **kwargs)[source]#

Applies the element-wise Softsign function.

SoftSign(x)=1+xx
Shape:
  • Input: (), where means any number of dimensions.

  • Output: (), same shape as the input.

../_images/Softsign.png

Examples:

>>> m = nn.Softsign()
>>> input = torch.randn(2)
>>> output = m(input)
forward(input)[source]#

Runs the forward pass.

Return type

Tensor

Docs

Access comprehensive developer documentation for PyTorch

View Docs

Tutorials

Get in-depth tutorials for beginners and advanced developers

View Tutorials

Resources

Find development resources and get your questions answered

View Resources
Morty Proxy This is a proxified and sanitized view of the page, visit original site.