sq method
Calculates x * x
(square) for each element.
Throws ArgumentError if tensor shapes are not equal.
Implementation
Tensor<T> sq() => (toBuilder()..sq()).build();
Calculates x * x
(square) for each element.
Throws ArgumentError if tensor shapes are not equal.
Tensor<T> sq() => (toBuilder()..sq()).build();