class_docstr: A simple Device/CPU Array object in runtime.
class_docstr_tok: ["A","simple","Device\/CPU","Array","object","in","runtime","."]
docstr: Produce an array from a DLPack Tensor without copying memory
  
  Returns
  -------
  dlpack : DLPack tensor view of the array data
docstr_tok: ["Produce","an","array","from","a","DLPack","Tensor","without","copying","memory","Returns","--","--","--","-","dlpack",":","DLPack","tensor","view","of","the","array","data"]
code: def to_dlpack(self):
      """Produce an array from a DLPack Tensor without copying memory
  
      Returns
      -------
      dlpack : DLPack tensor view of the array data
      """
      handle = ctypes.c_void_p()
      check_call(
          _LIB.TVMArrayToDLPack(self.handle, ctypes.byref(handle))
      )
      return ctypes.pythonapi.PyCapsule_New(
          handle, _c_str_dltensor, _c_dlpack_deleter
      )
  
file_path: tvm/python/tvm/_ffi/_ctypes/ndarray.py
imports: import ctypes
  from ..base import _LIB, check_call, c_str
  from ..runtime_ctypes import TVMArrayHandle
  from .types import RETURN_SWITCH, C_TO_PY_ARG_SWITCH, _wrap_arg_func, _return_handle
label_desc: Use image node_id 6 for calling the NDArrayBase obj's underlying member method code with example usage: obj.to_dlpack() and returns: ctypes