SiLU
- class torch.nn.modules.activation.SiLU(inplace=False)
Applies the Sigmoid Linear Unit (SiLU) function, element-wise.
The SiLU function is also known as the swish function.
Applies the Sigmoid Linear Unit (SiLU) function, element-wise.
The SiLU function is also known as the swish function.
Input: , where means any number of dimensions.
Output: , same shape as the input.

Examples:
>>> m = nn.SiLU()
>>> input = torch.randn(2)
>>> output = m(input)
Return the extra representation of the module.
Runs the forward pass.