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