npu_data.py File Reference

npu_data.py File Reference#

SDK qb Runtime Library: npu_data.py File Reference
SDK qb Runtime Library v1.4
MCS001-EN
npu_data.py File Reference

Go to the source code of this file.

Classes

class  qbruntime.npu_data.NPUData
 A model input or output tensor that can reside on the host (CPU) or NPU. More...

Variables

 qbruntime.npu_data._Shape = Tuple[int, ...]
dict qbruntime.npu_data._DTYPE_MAP

Variable Documentation

◆ _Shape

qbruntime.npu_data._Shape = Tuple[int, ...]
protected

Definition at line 12 of file npu_data.py.

◆ _DTYPE_MAP

dict qbruntime.npu_data._DTYPE_MAP
protected
Initial value:
1= {
2 _cQbRuntime.DataType.Float32: np.float32,
3 _cQbRuntime.DataType.Float16: np.float16,
4 _cQbRuntime.DataType.Int8: np.int8,
5 _cQbRuntime.DataType.Uint8: np.uint8,
6}

Definition at line 17 of file npu_data.py.