目录

ShapeInfo

Function Description

Stores the shape information of LocalTensor or GlobalTensor.

Prototype

Function Usage

Table 1 ShapeInfo structure parameters

Parameter Type Description
shapeDim uint8_t Current shape dimension.
shape uint32_t Current shape.
originalShapeDim uint8_t Original shape dimension.
originalShape uint32_t Original shape.
dataFormat DataFormat

Data layout format. The value is 0 for NCHW and 1 for NHWC.

- NCHW: Data is arranged by NCHW.

- NHWC: Data is arranged by NHWC.

Table 2 GetShapeSize parameter description

Function Name Input Parameter Description
shapeInfo Shape information of a tensor. Stores the shape information of LocalTensor or GlobalTensor.