目录

Overview

Manages the memory occupied by some temporary variables used during Ascend C programming. The buffer occupied by these temporary variables can be managed using the TBuf data structure. The storage location is set using template parameters and can be set to different TPosition logical locations.

The storage space occupied by TBuf is managed by TPipe. You can call InitBuffer to initialize the memory for TBuf, and then call Get to obtain a tensor of a specified length for computing.

The differences between using InitBuffer to allocate memory for TBuf and allocate memory for queues are as follows: