Reset

Applicability

Product

Supported

Atlas A3 training products/Atlas A3 inference products

Atlas A2 training products/Atlas A2 inference products

Atlas 200I/500 A2 inference products

Atlas inference product's AI Core

Atlas inference product's Vector Core

x

Atlas training products

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();
}