Returns a namedtuple (values, indices) where values is the maximum value of each row of the input tensor in the given dimension. And indices is the index location of each maximum value found (argmax). If keepdim is True, the output tensors are of the same size as input except in the dimension dim where they are of size 1. Otherwise, dim is squeezed (see torch.squeeze()), resulting in the output tensors having one fewer dimension than input.