def top_k(input, k = 1, sorted: true, name: nil)
      result = _op(:top_k, input, k, sorted: sorted, name: name)
      [result[0], result[1]]
    end
def top_k(input, k = 1, sorted: true, name: nil)
      result = _op(:top_k, input, k, sorted: sorted, name: name)
      [result[0], result[1]]
    end
Finds values and indices of the `k` largest entries for the last dimension.


 @param input 1-D or higher `Tensor` with last dimension at least `k`.
 @param k 0-D `int32` `Tensor`.  Number of top elements to look for along the last dimension (along each row for matrices)

 Options:
 @option sorted If true the resulting `k` elements will be sorted by the values in descending order. default (true)
 @option name Optional name
 @return Tensor