acltdtGetDimsFromItem

Applicability

Product

Supported

Atlas A3 training products/Atlas A3 inference products

Atlas A2 training products/Atlas A2 inference products

Atlas 200I/500 A2 inference products

x

Atlas inference products

x

Atlas training products

Description

Obtains the tensor shape of normal data.

Prototype

aclError acltdtGetDimsFromItem(const acltdtDataItem *dataItem, int64_t *dims, size_t dimNum)

Parameters

Parameter

Input/Output

Description

dataItem

Input

Pointer to data of the acltdtDataItem type.

Call acltdtCreateDataItem to create data of the acltdtDataItem type in advance.

dims

Input/Output

Shape array.

dimNum

Input

Number of dimensions.

Returns

0 on success; else, failure. For details, see aclError.