math
sorix.utils.math ¶
abs ¶
Computes the absolute value of each element in input.
Source code in sorix/utils/math.py
sign ¶
Returns a new tensor with the signs of the elements of input.
Source code in sorix/utils/math.py
round ¶
Rounds elements of input to the nearest integer.
Source code in sorix/utils/math.py
floor ¶
Returns a new tensor with the floor of the elements of input.
Source code in sorix/utils/math.py
ceil ¶
Returns a new tensor with the ceil of the elements of input.
Source code in sorix/utils/math.py
mean ¶
Computes the mean value of all elements in the input tensor.
Source code in sorix/utils/math.py
sum ¶
Computes the sum of all elements in the input tensor.