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 a LocalTensor. Note: The shape information does not have a default value. This API can be called to obtain the correct shape information only after the shape information is set by using SetShapeInfo.

Prototype

1
__aicore__ inline ShapeInfo GetShapeInfo() const

Parameters

None

Returns

Shape information of the LocalTensor, which is of the ShapeInfo structure type.

Restrictions

None

Example

For details, see Example.