Method Mad
Mad(TensorFloat, float, float)
Performs an element-wise Mad math operation: multiplies and adds bias to a tensor: f(A, s, b) = s * A + b.
Declaration
public TensorFloat Mad(TensorFloat A, float s, float b)
Parameters
| Type | Name | Description |
|---|---|---|
| TensorFloat | A | The argument as a tensor. |
| float | s | The value of the scale for multiplication. |
| float | b | The value of the bias for addition. |
Returns
| Type | Description |
|---|---|
| TensorFloat | The computed output tensor. |