tensor_buffer_stream - 2025.1 English - XD100

Vitis Tutorials: AI Engine Development (XD100)

Document ID
XD100
Release Date
2025-08-25
Version
2025.1 English

This class takes a tensor descriptor to perform the data read. A standard C++ stream access or the pop() method can be used.

If the tensor descriptor dimension is larger than 3, it is defined recursively with 3D tensors and a last one with the remaining number of dimensions (the lower ones). In that case the N-dimension descriptor is logically understood as an outer (dimension N - (N%3)) and an inner tensor (dimension N%3). The operating stream is the inner one. You can get it by reading the overall stream using pop() which returns the inner stream that you can use to read the data from the buffer. Once finished on the sub-tensor you re-read the global stream which advances the outer-stream and returns a new inner-stream.