latest (dev)
Copy
Latest development documentation · Updated 2026-10-15
tensorplay.nn.functional.silu
- tensorplay.nn.functional.silu(input: Tensor, inplace: bool = False) Tensor[source]
Apply the Sigmoid Linear Unit (SiLU) function, element-wise.
The SiLU function is also known as the swish function.
Note
See Gaussian Error Linear Units (GELUs) where the SiLU (Sigmoid Linear Unit) was originally coined, and see Sigmoid-Weighted Linear Units for Neural Network Function Approximation in Reinforcement Learning and Swish: a Self-Gated Activation Function where the SiLU was experimented with later.
See
SiLUfor more details.
Help improve this page
Found an error, an unclear step, or a missing example?
Was this page helpful?

