Returns the maximum value of the tensor.