Method Neg
Neg(TensorFloat, TensorFloat)
Computes an output tensor by applying the element-wise Neg
math function: f(x) = -x.
Declaration
public override void Neg(TensorFloat X, TensorFloat O)
Parameters
Type | Name | Description |
---|---|---|
TensorFloat | X | The input tensor. |
TensorFloat | O | The output tensor to be computed and filled. |
Overrides
Neg(TensorInt, TensorInt)
Computes an output tensor by applying the element-wise Neg
math function: f(x) = -x.
Declaration
public override void Neg(TensorInt X, TensorInt O)
Parameters
Type | Name | Description |
---|---|---|
TensorInt | X | The input tensor. |
TensorInt | O | The output tensor to be computed and filled. |