There are three types of torch.min operation. Don’t mix them up.
- torch.min(input) ----->tensor
return the min value of all elements in input tensor - torch.min(input, dim,keepdim=False,output=None) -->tensor,tensor
return the min value of each row of the given dimension and index. - torch.min(input, other,output=None)—>tensor
compare the each element of input and other and return the smaller one. The sizes of the input and other don’t need to be same, but they need to be broadcastable.