Method HardSigmoid
HardSigmoid(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 TensorFloat HardSigmoid(TensorFloat X, float alpha, float beta)
Parameters
| Type | Name | Description |
|---|---|---|
| TensorFloat | X | The input tensor. |
| float | alpha | The alpha value to use for the |
| float | beta | The beta value to use for the |
Returns
| Type | Description |
|---|---|
| TensorFloat | The computed output tensor. |