Method PRelu
PRelu(TensorFloat, TensorFloat)
Computes an output tensor by applying the element-wise PRelu
activation function: f(x) = x if x >= 0, otherwise f(x) = slope * x.
Declaration
public TensorFloat PRelu(TensorFloat X, TensorFloat slope)
Parameters
Type | Name | Description |
---|---|---|
TensorFloat | X | The input tensor. |
TensorFloat | slope | The slope tensor, must be unidirectional broadcastable to x. |
Returns
Type | Description |
---|---|
TensorFloat | The computed output tensor. |