AI Engine-ML Intrinsics User Guide (v2025.2)
Loading...
Searching...
No Matches
Sparse Vector Types

Overview

Sparse vector data-types are stored in the vector registers within the AIE-ML. They can be used as the second argument to mac operations.

Sparse Data Format

The supported sparse data layout requires a minimum of 50% sparsity.
Specifically, two zero values within each group of four consecutive values.
This 50% is a lower bound on the sparsity, meaning that further compression is possible if more zeroes are present.

Loading sparse data from memory will interpret the first 64 bits as a mask:

Hence, masks describe the layout of 512 bits after decompression.
Each mask must be aligned to a 32-bit boundary. Failure to meet this requirement will result in incorrect parsing.

When loading sparse data, a partial decompression is carried out to reconstruct the data such that:

Sparse partial decompression

Mask bits Partially decompressed data
00000 , 0
00010 , A
00100 , B
0011B , A
0100C , 0
0101C , A
0110C , B
0111C , B
1000D , 0
1001D , A
1010D , B
1100D , C

Topics

 Sparse floating-point vector types
 
 Sparse integer vector types