30. Neural processing unit (NPU)
30.1 Introduction
The neural processing unit (NPU) provides powerful hardware acceleration for neural network, to allow efficient artificial intelligence (AI) applications.
30.2 NPU main features
The NPU neural hardware acceleration is exposed through the following API:
- • TensorFlow Lite-API
- • Linux NN-API-Adapter
The NPU flexibility allows to optimally accelerate the following frameworks (It is a non-exhaustive list):
- • TensorFlow: non-exhaustive hardware support
- • TensorFlow Lite: full hardware support (including its SoftMax subset)
- • Caffe, Caffe2
- • CNTK, Torch, Theano, Darknet
The NPU provides the following neural theoretical performance, values for 800 MHz:
- • Integer Operations: 1.2 TOPS (integer 8 bit)
The NPU integration allows to reach the following neural benchmarked performances:
- • Inception_V1: 110 Inference/s
- • Inception_V3: 30 Inference/s
- • ResNetV1-50: 70 Inference/s
- • SqueezeNetV1.1: 480 Inference/s
- • VGG16: 48 Inference/s
To reduce the required DDR bandwidth during neural computations, the NPU embeds natively 128 Kbytes of memory. It is recommended to allocate some additional embedded memory (SRAM) to the neural acceleration: typically one or two additional 128-Kbyte buffers, if available (for instance from the disabled video encode/decode operator, VENC/VDEC).
30.3 NPU implementation
The NPU acceleration is implemented in the hardware through the neural operator inserted into the GPU. It benefits from both the efficiency of an optimized hardware (the neural operator) and the flexibility of the GPU shaders.
Refer to Section 29: Graphic processing unit (GPU) for any details on the hardware implementation.
30.4 NPU functional description
The NPU acceleration is based on the GPU hardware, refer to Section 29: Graphic processing unit (GPU) for more details about the functional descriptions of the following common items:
- • GPU / NPU block diagram
- • GPU / NPU pins and internal signals
- • GPU / NPU reset and clocks
- • GPU / NPU security
- • GPU / NPU power-on sequence
30.5 NPU low-power modes
The NPU benefits of the same low-power modes as the GPU. Refer to Section 29: Graphic processing unit (GPU) for more details.
30.6 NPU interrupts
The NPU shares its interrupts with the GPU. Refer to Section 29: Graphic processing unit (GPU) for more details.
30.7 NPU registers
The NPU shares its registers with the GPU. Refer to Section 29: Graphic processing unit (GPU) for more details.