Method HardSigmoid
HardSigmoid(TensorFloat, TensorFloat, float, float)
Computes an output tensor by applying the element-wise HardSigmoid
activation function: f(x) = clamp(alpha * x + beta, 0, 1).
Declaration
public virtual void HardSigmoid(TensorFloat X, TensorFloat O, float alpha, float beta)
Parameters
Type | Name | Description |
---|---|---|
TensorFloat | X | The input tensor. |
TensorFloat | O | The output tensor to be computed and filled. |
float | alpha | The alpha value to use for the |
float | beta | The beta value to use for the |