Class HardSwish
Represents an element-wise HardSwish activation layer: f(x) = x * max(0, min(1, alpha * x + beta)) = x * HardSigmoid(x, alpha, beta), where alpha = 1/6 and beta = 0.5.
Inherited Members
Namespace: Unity.Sentis.Layers
Assembly: solution.dll
Syntax
[Serializable]
public class HardSwish : Activation
Constructors
| Name | Description |
|---|---|
| HardSwish(string, string) | Initializes and returns an instance of |
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. |