torch.mode
- torch.mode(input, dim=-1, keepdim=False, *, out=None)
Returns a namedtuple
(values, indices)whereis the mode value of each row of the tensor in the given dimension , i.e. a value which appears most often in that row, and is the index location of each mode value found.