parameters: (dali_type)
return_statement: return _numpy_types[dali_type]
docstring: Converts DALIDataType to NumPy type
  
      Args
      ----
      dali_type: DALIDataType
                 Input type to convert
docstring_summary: Converts DALIDataType to NumPy type
docstring_tokens: Converts DALIDataType to NumPy type
function: def to_numpy_type(dali_type):
      """
      Converts DALIDataType to NumPy type
  
      Args
      ----
      dali_type: DALIDataType
                 Input type to convert
      """
      import numpy as np
      global _numpy_types
      if _numpy_types is None:
          _numpy_types = {
              DALIDataType.UINT8   : np.uint8,
              DALIDataType.UINT16  : np.uint16,
              DALIDataType.UINT32  : np.uint32,
              DALIDataType.UINT64  : np.uint64,
              DALIDataType.INT8    : np.int8,
              DALIDataType.INT16   : np.int16,
              DALIDataType.INT32   : np.int32,
              DALIDataType.INT64   : np.int64,
              DALIDataType.FLOAT16 : np.float16,
              DALIDataType.FLOAT   : np.float32,
              DALIDataType.FLOAT64 : np.float64,
              DALIDataType.BOOL    : np.bool_
          }
  
      return _numpy_types[dali_type]
function_tokens: def to_numpy_type ( dali_type ) : import numpy as np global _numpy_types if _numpy_types is None : _numpy_types = { DALIDataType . UINT8 : np . uint8 , DALIDataType . UINT16 : np . uint16 , DALIDataType . UINT32 : np . uint32 , DALIDataType . UINT64 : np . uint64 , DALIDataType . INT8 : np . int8 , DALIDataType . INT16 : np . int16 , DALIDataType . INT32 : np . int32 , DALIDataType . INT64 : np . int64 , DALIDataType . FLOAT16 : np . float16 , DALIDataType . FLOAT : np . float32 , DALIDataType . FLOAT64 : np . float64 , DALIDataType . BOOL : np . bool_ } return _numpy_types [ dali_type ]