EnQue

Applicability

Product

Supported

Atlas 350 Accelerator Card

Atlas A3 training product/Atlas A3 inference product

x

Atlas A2 training product/Atlas A2 inference product

x

Atlas 200I/500 A2 inference product

x

Atlas inference product AI Core

x

Atlas inference product Vector Core

x

Atlas training product

x

Function Usage

Pushes a tensor to a queue.

Prototype

template <typename T>
__aicore__ inline bool EnQue(const LocalTensor<T>& tensor)

Parameters

Table 1 Parameters

Parameter

Input/Output

Meaning

tensor

Input

Specified tensor.

Constraints

None

Returns

  • true: The tensor is successfully added to the queue.
  • false: The queue is full and the addition fails.

Example

For details, see Example.