docstr: Runtime for operator *TopK*.
  The implementation is not the most efficient
  as it sorts everything then extracts the top *k*
  values.
  
  .. warning::
      ONNX specifications may be imprecise in case of negative value
      for axis. The implementation follows what `onnxruntime`
      does in `top_k.cc
      <https://github.com/Microsoft/onnxruntime/blob/main/onnxruntime/core/providers/cpu/math/top_k.cc#L63>`_.
docstr_tok: ["Runtime","for","operator","*","TopK","*",".","The","implementation","is","not","the","most","efficient","as","it","sorts","everything","then","extracts","the","top","*","k","*","values",".","..","warning",":",":","ONNX","specifications","may","be","imprecise","in","case","of","negative","value","for","axis",".","The","implementation","follows","what","`","onnxruntime","`","does","in","`","top_k.cc","<","https",":","\/\/github.com\/Microsoft\/onnxruntime\/blob\/main\/onnxruntime\/core\/providers\/cpu\/math\/top_k.cc","#","L63",">","`","_","."]
code: def _run(self, data, ink, axis=None):  # type: ignore
      """Runtime for operator *TopK*.
      The implementation is not the most efficient
      as it sorts everything then extracts the top *k*
      values.
  
      .. warning::
          ONNX specifications may be imprecise in case of negative value
          for axis. The implementation follows what `onnxruntime`
          does in `top_k.cc
          <https://github.com/Microsoft/onnxruntime/blob/main/onnxruntime/core/providers/cpu/math/top_k.cc#L63>`_.
      """
      return _CommonTopK._common_run(self, data, ink, axis=axis)
  
file_path: onnx/onnx/reference/ops/op_topk.py
imports: import numpy
  from onnx.reference.op_run import OpRun
label_desc: Use image node_id 1 for calling the TopK_10 obj's underlying member method code with example usage: obj._run(data, ink, axis) and returns: _CommonTopK