sort(tensor, axis, descending=False)¶
Return a sorted copy of an array
An N-D tensor
- axisint or None
Axis along which to sort. If None, the array is flattened before sorting. The default is -1, which sorts along the last axis.
If True, values are sorted in descending order, otherwise in ascending.
An N-D array, sorted copy of input tensor