code: def invert_permutation(data):
      """Compute definition of invert_permutation.
      For an output tensor y and an input tensor x, this operation computes the following:
  
         y[x[i]] = i for i in [0, 1, ..., len(x) - 1]
  
      Parameters
      ----------
      data : tvm.te.Tensor
          1-D tensor
  
      Returns
      -------
      out : tvm.te.Tensor
      """
      data_buf = tvm.tir.decl_buffer(
          data.shape, data.dtype, "data_buf", data_alignment=8
      )
      out_buf = tvm.tir.decl_buffer(
          data.shape, data.dtype, "out_buf", data_alignment=8
      )
  
      out = te.extern(
          [data.shape],
          [data],
          lambda ins, outs: _invert_permutation_ir(ins[0], outs[0]),
          in_buffers=[
              data_buf,
          ],
          out_buffers=[
              out_buf,
          ],
          name="invert_permutation",
          tag="invert_permutation_gpu",
      )
      return out
  
file_path: tvm/python/tvm/topi/cuda/transform.py
imports: import tvm
  from ...None import te
  from ...target import Target
  from ..utils import traverse_inline
label_desc: Use image node_id 4 for calling a global function with example usage: invert_permutation(data) and returns: out