ClikaRT::ops::elu
function
elu()
Exponential linear unit.
Elementwise; input_scale feeds only the exponential's argument.
Parameters
x: the input tensor.alpha: the negative-side saturation value. Default1.0.scale: multiplies the whole result. Default1.0.input_scale: scales the exponent on the negative side. Default1.0.
Throws
ClikaRT::Error: when the input's dtype is not served for this operation (the machine-readable reason ridescode_name()).
Returns: a new tensor, same shape and dtype as x.
auto y = ClikaRT::ops::elu(x); // standard ELU
auto s = ClikaRT::ops::elu(x, 1.67, 1.05); // SELU-shaped constants
Declared in ClikaRT/compute/ops.h, line 692