Reset
Function Usage
Releases resources, initializes variables such as eventId, and restores to the initial state of Tpipe.
Prototype
1 | __aicore__ inline void Reset() |
Availability
Precautions
None
Returns
None
Example
1 2 3 4 5 6 7 8 9 | AscendC::TPipe pipe; // Pipe memory management object AscendC::TQue<AscendC::TPosition::VECOUT, 1> que; // Output the management objects of the data queue. The value of QuePosition is VECOUT. uint8_t num = 1; uint32_t len = 192 * 1024; for (int i = 0; i < 2; i++) { pipe.InitBuffer(que, num, len); ... // process pipe.Reset(); } |
Parent topic: TPipe