DataType
========

DataType枚举值定义如下。

enum DataType {
  DT\_FLOAT = 0, // float type
  DT\_FLOAT16 = 1, // fp16 type
  DT\_INT8 = 2, // int8 type
  DT\_INT32 = 3, // int32 type
  DT\_UINT8 = 4, // uint8 type
                           // reserved
  DT\_INT16 = 6, // int16 type
  DT\_UINT16 = 7, // uint16 type
  DT\_UINT32 = 8, // unsigned int32
  DT\_INT64 = 9, // int64 type
  DT\_UINT64 = 10, // unsigned int64
  DT\_DOUBLE = 11, // double type
  DT\_BOOL = 12, // bool type
  DT\_STRING = 13, // string type
  DT\_DUAL\_SUB\_INT8 = 14, // dual output int8 type
  DT\_DUAL\_SUB\_UINT8 = 15, // dual output uint8 type
  DT\_COMPLEX64 = 16, // complex64 type
  DT\_COMPLEX128 = 17, // complex128 type
  DT\_QINT8 = 18, // qint8 type
  DT\_QINT16 = 19, // qint16 type
  DT\_QINT32 = 20, // qint32 type
  DT\_QUINT8 = 21, // quint8 type
  DT\_QUINT16 = 22, // quint16 type
  DT\_RESOURCE = 23, // resource type
  DT\_STRING\_REF = 24, // string ref type
  DT\_DUAL = 25, // dual output type
  DT\_VARIANT = 26, // dt\_variant type
  DT\_BF16 = 27, // bf16 type
  DT\_UNDEFINED = 28, // Used to indicate a DataType field has not been set.
  DT\_INT4 = 29, // int4 type
  DT\_UINT1 = 30, // uint1 type
  DT\_INT2 = 31, // int2 type
  DT\_UINT2 = 32, // uint2 type
  DT\_COMPLEX32 = 33, // complex32 type
  DT\_MAX // Mark the boundaries of data types
};