GetShape

Applicability

Product

Supported

Atlas 350 Accelerator Card

x

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product

Atlas 200I/500 A2 inference product

x

Atlas inference product AI Core

Atlas inference product Vector Core

Atlas training product

x

Function Usage

Obtains the shape information of the corresponding dimension.

Prototype

uint64_t GetShape(uint32_t offset)

Parameters

Parameter

Input/Output

Description

offset

Input

Index value.

Returns

Returns the shape information of the corresponding dimension.

Restrictions

None

Examples

For details, see Examples.