Class ScalarMad
Represents an element-wise Mad math operation: multiplies and adds bias to a tensor: f(T, s, b) = s * T + b.
Inherited Members
Namespace: Unity.Sentis.Layers
Assembly: solution.dll
Syntax
[Serializable]
public class ScalarMad : ActivationConstructors
| Name | Description | 
|---|---|
| ScalarMad(string, string, float, float) | Initializes and returns an instance of  | 
Fields
| Name | Description | 
|---|---|
| b | Input bias for addition. | 
| s | Input scalar for multiplication. | 
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  |