Reset
Applicability
Product |
Supported |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
x |
|
√ |
Function
Releases resources, initializes variables such as eventId, and restores to the initial state of TPipe.
Prototype
1 | __aicore__ inline void Reset() |
Restrictions
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 data queue management object, with TPosition set to 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