y,i=lab.min(x) returns a tensor y of the smallest element in each column of x, and a tensor i of their corresponding indices in x.

y,i=lab.min(x,2) performs the min operation for each row and y,i=lab.min(x,n) performs the min operation over the dimension n.