class_docstr: A simple Device/CPU Array object in runtime.
docstr: Convert this array to numpy array
  
  Returns
  -------
  np_arr : numpy.ndarray
      The corresponding numpy array.
docstr_tok: ["Convert","this","array","to","numpy","array","Returns","--","--","--","-","np_arr",":","numpy.ndarray","The","corresponding","numpy","array","."]
code: def asnumpy(self):
      """Convert this array to numpy array
  
      Returns
      -------
      np_arr : numpy.ndarray
          The corresponding numpy array.
      """
      t = DGLDataType(self.dtype)
      shape, dtype = self.shape, self.dtype
      if t.lanes > 1:
          shape = shape + (t.lanes,)
          t.lanes = 1
          dtype = str(t)
      np_arr = np.empty(shape, dtype=dtype)
      assert np_arr.flags["C_CONTIGUOUS"]
      data = np_arr.ctypes.data_as(ctypes.c_void_p)
      nbytes = ctypes.c_size_t(np_arr.size * np_arr.dtype.itemsize)
      check_call(_LIB.DGLArrayCopyToBytes(self.handle, data, nbytes))
      return np_arr
  
imports: from __future__ import absolute_import
  import ctypes
  import sys
  import numpy
  from .base import _FFI_MODE, _LIB, c_array, c_str, check_call, string_types
  from .runtime_ctypes import dgl_shape_index_t, DGLArray, DGLArrayHandle, DGLContext, DGLDataType, TypeCode
label_desc: Use image node_id 13 for calling the NDArrayBase obj's underlying member method code with example usage: obj.asnumpy() and returns: np_arr