Method Abs
Abs(TensorFloat)
Computes an output tensor by applying the element-wise Abs math function: f(x) = f(x) = |x|.
Declaration
public TensorFloat Abs(TensorFloat X)
Parameters
| Type | Name | Description |
|---|---|---|
| TensorFloat | X | The input tensor. |
Returns
| Type | Description |
|---|---|
| TensorFloat | The computed output tensor. |
Abs(TensorInt)
Computes an output tensor by applying the element-wise Abs math function: f(x) = f(x) = |x|.
Declaration
public TensorInt Abs(TensorInt X)
Parameters
| Type | Name | Description |
|---|---|---|
| TensorInt | X | The input tensor. |
Returns
| Type | Description |
|---|---|
| TensorInt | The computed output tensor. |