Method Elu
Elu(TensorFloat, float)
Computes an output tensor by applying the element-wise Elu
activation function: f(x) = x if x >= 0, otherwise f(x) = alpha * (e^x - 1).
Declaration
public TensorFloat Elu(TensorFloat X, float alpha)
Parameters
Type | Name | Description |
---|---|---|
TensorFloat | X | The input tensor. |
float | alpha | The alpha value to use for the |
Returns
Type | Description |
---|---|
TensorFloat | The computed output tensor. |