(self, stream=None)
return ary
Copy device array to host.

        Returns:
            numpy.ndarray: A host numpy array
Copy device array to host.
Copy device array to host .
def get(self, stream=None):
        """
        Copy device array to host.

        Returns:
            numpy.ndarray: A host numpy array
        """

        if self.is_contiguous:
            ary = np.empty(self.shape, self.dtype)
            drv.memcpy_dtoh_async(ary, self.gpudata, stream)
        else:
            # if it is not contiguous, need to copy it over to new device mem
            ary_d = self.backend.empty(self.shape, self.dtype)
            ary_d.copy(self)
            ary = np.empty(self.shape, self.dtype)
            drv.memcpy_dtoh_async(ary, ary_d.gpudata, stream)
        return ary
def get ( self , stream = None ) : if self . is_contiguous : ary = np . empty ( self . shape , self . dtype ) drv . memcpy_dtoh_async ( ary , self . gpudata , stream ) else : # if it is not contiguous, need to copy it over to new device mem ary_d = self . backend . empty ( self . shape , self . dtype ) ary_d . copy ( self ) ary = np . empty ( self . shape , self . dtype ) drv . memcpy_dtoh_async ( ary , ary_d . gpudata , stream ) return ary