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