Reset
Applicability
Product |
Supported |
|---|---|
Atlas 350 Accelerator Card |
√ |
√ |
|
√ |
|
√ |
|
√ |
|
x |
|
√ |
Function Usage
Releases resources and initializes variables such as eventId to restore Tpipe to its initial state.
Prototype
1 | __aicore__ inline void Reset() |
Constraints
None
Returns
None
Example
1 2 3 4 5 6 7 8 9 | AscendC::TPipe pipe; // TPipe object AscendC::TQue<AscendC::TPosition::VECOUT, 1> que; // Output 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