

dim (int, optional) -- the dimension to find the kth
        value along

keepdim (bool) -- whether the output tensor has "dim"
    retained or not.



Keyword Arguments:
      out (tuple, optional) -- the output tuple of (Tensor,
      LongTensor) can be optionally given to be used as output buffers
Example:
  >>> x = torch.arange(1., 6.)
  >>> x
  tensor([ 1.,  2.,  3.,  4.,  5.])
  >>> torch.kthvalue(x, 4)
  torch.return_types.kthvalue(values=tensor(4.), indices=tensor(3))

  >>> x=torch.arange(1.,7.).resize_(2,3)
  >>> x
  tensor([[ 1.,  2.,  3.],
          [ 4.,  5.,  6.]])
  >>> torch.kthvalue(x, 2, 0, True)
  torch.return_types.kthvalue(values=tensor([[4., 5., 6.]]), indices=tensor([[1, 1, 1]]))
