GetSize

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 number of elements in the GlobalTensor.

Prototype

1
__aicore__ inline uint64_t GetSize() const

Parameters

None

Returns

Number of elements in the GlobalTensor.

Restrictions

If the SetGlobalBuffer API that transfers only the global data pointer is used to initialize the GlobalTensor, the number of elements obtained through this API is 0.