Method Sub
Sub(TensorFloat, float)
Performs an element-wise Sub
math operation between a tensor and a float: f(a, b) = a - b.
Declaration
public TensorFloat Sub(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. |
Sub(float, TensorFloat)
Performs an element-wise Sub
math operation between a float and a tensor: f(a, b) = a - b.
Declaration
public TensorFloat Sub(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. |
Sub(TensorFloat, TensorFloat)
Performs an element-wise Sub
math operation: f(a, b) = a - b.
This supports numpy-style broadcasting of input tensors.
Declaration
public TensorFloat Sub(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. |
Sub(TensorInt, TensorInt)
Performs an element-wise Sub
math operation: f(a, b) = a - b.
This supports numpy-style broadcasting of input tensors.
Declaration
public TensorInt Sub(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. |