@require_context
def device_array(shape, dtype=np.float, strides=None, order='C', stream=0):
 (shape, strides, dtype) = _prepare_shape_strides_dtype(shape, strides, dtype, order)
 return devicearray.DeviceNDArray(shape=shape, strides=strides, dtype=dtype, stream=stream)

@ require_context def device_array ( shape , dtype = np . float , strides = None , order = 'C' , stream = 0 ) : ( shape , strides , dtype ) = _prepare_shape_strides_dtype ( shape , strides , dtype , order ) return devicearray . DeviceNDArray ( shape = shape , strides = strides , dtype = dtype , stream = stream )
device_array allocate an empty device ndarray .