tensor.neg
#tensor.neg
Computes the negation of all elements in the input tensor.
Args
self
(@Tensor<T>
) - The input tensor.
Returns
A new Tensor<T>
of the same shape as the input tensor with the negation of all elements in the input tensor.
Example
Last updated