GetShapeInfo

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 shape information of the GlobalTensor. Note: There is no default value for shapeInfo. This API can be called to obtain the correct shapeInfo only after the shape information is set by calling SetShapeInfo.

Prototype

1
__aicore__ inline ShapeInfo GetShapeInfo() const

Parameters

None

Returns

Shape information of the GlobalTensor, which is of the ShapeInfo type.

Restrictions

None