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