Skip to content
fn

elu_

→Tensor
elu_(input: Tensor, alpha: float = 1.0, scale: float = 1.0, input_scale: float = 1.0)

In-place ELU — overwrites input with ELU(input,α)\text{ELU}(\text{input}, \alpha).

Parameters

inputTensor
Input; modified in place.
alphafloat= 1.0
Negative-side scale parameter α\alpha. Default 1.0.
scalefloat= 1.0
Output scale factor. Default 1.0.
input_scalefloat= 1.0
Negative-side exponent scale factor. Default 1.0.

Returns

Tensor

The same input tensor, now holding elu(input, alpha).

Used by 1