Class HardSigmoid
Represents an element-wise HardSigmoid
activation layer: f(x) = clamp(alpha * x + beta, 0, 1).
Inherited Members
Namespace: Unity.Sentis.Layers
Assembly: solution.dll
Syntax
[Serializable]
public class HardSigmoid : Activation
Constructors
Name | Description |
---|---|
HardSigmoid(string, string, float, float) | Initializes and returns an instance of |
Fields
Name | Description |
---|---|
alpha | The alpha value to use for the |
beta | The beta value to use for the |
Methods
Name | Description |
---|---|
Execute(Tensor[], ExecutionContext) | Executes the layer using the operations and variables from the If the layer has more than one output, output tensors are saved to variables. |
ToString() | Returns a string that represents the |