acltdtGetDimNumFromItem

The Atlas 200/300/500 Inference Product does not support this API.

Description

Obtains the tensor dimension count of normal data.

Prototype

size_t acltdtGetDimNumFromItem(const acltdtDataItem *dataItem)

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.

Returns

Number of obtained dimensions.