Thank you @tom . One more question about this: if I want to get both the min and the max as fast as possible which way is most efficient:

Use Tensor.min() and then Tensor.max() (separately)
Or, sort the entire tensor once to and then look at the first and last element in the result

Kind regards