ClikaRT::ops::leaky_relu
function
leaky_relu()
ReLU with a small slope on the negative side.
Parameters
x: the input tensor.negative_slope: the negative-side slope. Default0.01.
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::leaky_relu(x, 0.2);
Declared in ClikaRT/compute/ops.h, line 886