S100 OpenExplorer

# #hbDNNDataType

`typedef enum { HB_DNN_TENSOR_TYPE_S4, HB_DNN_TENSOR_TYPE_U4, HB_DNN_TENSOR_TYPE_S8, HB_DNN_TENSOR_TYPE_U8, HB_DNN_TENSOR_TYPE_F16, HB_DNN_TENSOR_TYPE_S16, HB_DNN_TENSOR_TYPE_U16, HB_DNN_TENSOR_TYPE_F32, HB_DNN_TENSOR_TYPE_S32, HB_DNN_TENSOR_TYPE_U32, HB_DNN_TENSOR_TYPE_F64, HB_DNN_TENSOR_TYPE_S64, HB_DNN_TENSOR_TYPE_U64, HB_DNN_TENSOR_TYPE_BOOL8, HB_DNN_TENSOR_TYPE_MAX } hbDNNDataType;`

Tensor type.

`S` stands for Signed, `U` for Unsigned, and `F` for Floating-point, followed by a number that stands for the number of bits.

- Member

Member Name | Description
--- | ---
`HB_DNN_TENSOR_TYPE_S4` | Tensor type: Signed 4 bit.
`HB_DNN_TENSOR_TYPE_U4` | Tensor type: Unsigned 4 bit.
`HB_DNN_TENSOR_TYPE_S8` | Tensor type: Signed 8 bit.
`HB_DNN_TENSOR_TYPE_U8` | Tensor type: Unsigned 8 bit.
`HB_DNN_TENSOR_TYPE_F16` | Tensor type: 16 bit floating-point.
`HB_DNN_TENSOR_TYPE_S16` | Tensor type: Signed 16 bit.
`HB_DNN_TENSOR_TYPE_U16` | Tensor type: Unsigned 16 bit.
`HB_DNN_TENSOR_TYPE_F32` | Tensor type: 32 bit floating-point.
`HB_DNN_TENSOR_TYPE_S32` | Tensor type: Signed 32 bit.
`HB_DNN_TENSOR_TYPE_U32` | Tensor type: Unsigned 32 bit.
`HB_DNN_TENSOR_TYPE_F64` | Tensor type: 64 bit floating-point.
`HB_DNN_TENSOR_TYPE_S64` | Tensor type: Signed 64 bit.
`HB_DNN_TENSOR_TYPE_U64` | Tensor type: Unsigned 64 bit.
`HB_DNN_TENSOR_TYPE_BOOL8` | Tensor type: Bool 8bit。
`HB_DNN_TENSOR_TYPE_MAX` | Maximum tensor type number.

On This Page