parameters: (np_array, device=None, read_only=False, borrow=False)
return_statement: return cntk_py.NDArrayView(np_array, device, read_only, borrow)
docstring: Create an :class:`NDArrayView` instance from a NumPy array.
  
          Args:
              np_array (numpy.ndarray): NumPy array
              device (:class:`~cntk.device.DeviceDescriptor`): device this value
               should be put on
              borrow (bool, default False): whether nd_array memory can be
               borrowed internally to speed up the data creation
              read_only (bool, optional): whether the data can be modified or
               not (default False)
  
          Returns:
              :class:`NDArrayView` instance
docstring_summary: Create an :class:`NDArrayView` instance from a NumPy array.
docstring_tokens: Create an : class : NDArrayView instance from a NumPy array .
function: def from_dense(np_array, device=None, read_only=False, borrow=False):
          '''
          Create an :class:`NDArrayView` instance from a NumPy array.
  
          Args:
              np_array (numpy.ndarray): NumPy array
              device (:class:`~cntk.device.DeviceDescriptor`): device this value
               should be put on
              borrow (bool, default False): whether nd_array memory can be
               borrowed internally to speed up the data creation
              read_only (bool, optional): whether the data can be modified or
               not (default False)
  
          Returns:
              :class:`NDArrayView` instance
          '''
          if not isinstance(np_array, np.ndarray):
              raise TypeError('data must be of type numpy.ndarray'
                              ' and not %s' % type(np_array))
  
          if not _is_c_contiguous(np_array):
              warnings.warn('data is not C contiguous; rearrange your '
                            'data/computation to avoid costly data conversions',
                            RuntimeWarning)
              np_array = np.ascontiguousarray(np_array)
              # You can not borrow a temporary array.
              borrow = False
  
          if device is None:
              device = use_default_device()
  
          return cntk_py.NDArrayView(np_array, device, read_only, borrow)
function_tokens: def from_dense ( np_array , device = None , read_only = False , borrow = False ) : if not isinstance ( np_array , np . ndarray ) : raise TypeError ( 'data must be of type numpy.ndarray' ' and not %s' % type ( np_array ) ) if not _is_c_contiguous ( np_array ) : warnings . warn ( 'data is not C contiguous; rearrange your ' 'data/computation to avoid costly data conversions' , RuntimeWarning ) np_array = np . ascontiguousarray ( np_array ) # You can not borrow a temporary array. borrow = False if device is None : device = use_default_device ( ) return cntk_py . NDArrayView ( np_array , device , read_only , borrow )