Method Mul
Mul(TensorFloat, float)
Performs an element-wise Mul
math operation between a tensor and a float: f(a, b) = a * b.
Declaration
public TensorFloat Mul(TensorFloat A, float b)
Parameters
Type | Name | Description |
---|---|---|
TensorFloat | A | The first argument as a tensor. |
float | b | The second argument as a float. |
Returns
Type | Description |
---|---|
TensorFloat | The computed output tensor. |
Mul(float, TensorFloat)
Performs an element-wise Mul
math operation between a float and a tensor: f(a, b) = a * b.
Declaration
public TensorFloat Mul(float a, TensorFloat B)
Parameters
Type | Name | Description |
---|---|---|
float | a | The first argument as a float. |
TensorFloat | B | The second argument as a tensor. |
Returns
Type | Description |
---|---|
TensorFloat | The computed output tensor. |
Mul(TensorFloat, TensorFloat)
Performs an element-wise Mul
math operation: f(a, b) = a * b.
This supports numpy-style broadcasting of input tensors.
Declaration
public TensorFloat Mul(TensorFloat A, TensorFloat B)
Parameters
Type | Name | Description |
---|---|---|
TensorFloat | A | The first input tensor. |
TensorFloat | B | The second input tensor. |
Returns
Type | Description |
---|---|
TensorFloat | The computed output tensor. |
Mul(TensorInt, TensorInt)
Performs an element-wise Mul
math operation: f(a, b) = a * b.
This supports numpy-style broadcasting of input tensors.
Declaration
public TensorInt Mul(TensorInt A, TensorInt B)
Parameters
Type | Name | Description |
---|---|---|
TensorInt | A | The first input tensor. |
TensorInt | B | The second input tensor. |
Returns
Type | Description |
---|---|
TensorInt | The computed output tensor. |