Method ScalarMad
ScalarMad(TensorFloat, TensorFloat, float, float)
Performs an element-wise Mad
math operation: multiplies and adds bias to a tensor: f(T, s, b) = s * T + b.
Declaration
public override void ScalarMad(TensorFloat X, TensorFloat O, float s, float b)
Parameters
Type | Name | Description |
---|---|---|
TensorFloat | X | The input tensor. |
TensorFloat | O | The output tensor to be computed and filled. |
float | s | Input scalar for multiplication. |
float | b | Input bias for addition. |