Destroy

Function Usage

Releases resources.

Prototype

1
__aicore__ inline void Destroy()

Availability

Atlas Training Series Product

Precautions

This API is used to repeatedly apply for and release TPipe resources. After a TPipe object is created, you can call Destroy to manually release resources.

Returns

None

Example

1
2
3
4
5
6
AscendC::TPipe pipe; // Pipe memory management object
AscendC::TQue<AscendC::TPosition::VECOUT, 2> que; // Output the management objects of the data queue. The value of QuePosition is VECOUT.
uint8_t num = 2;
uint32_t len = 128;
pipe.InitBuffer(que, num, len);
pipe.Destroy();