Skip to content
fn

selu_

→Tensor
selu_(input: Tensor, inplace: bool = True)

In-place SELU — overwrites input with selu(input).

Uses the canonical SELU coefficients (Klambauer 2017); intended for use only inside Self-Normalising Networks where the input was initialised with LeCun-normal and downstream blocks expect the SELU fixed-point statistics.

Parameters

inputTensor
Input; modified in place.
inplacebool= True
False returns selu's fresh result instead. Default True.

Returns

Tensor

The same input tensor, now holding selu(input).

Used by 1