GetPosition

Product Support

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

√

Atlas training products

√

Function

Obtains the logical position of TPosition where the LocalTensor is located, which can be VECIN, VECOUT, VECCALC, A1, A2, B1, B2, CO1, or CO2.

Prototype

1
__aicore__ inline int32_t GetPosition() const

Parameters

None

Returns

Logical position of TPosition where the LocalTensor is located.

Restrictions

None

Example

For details, see Example.