acltdtGetDimsFromItem

Description

Obtains the tensor shape of normal data. This API is synchronous.

The Ascend 310 AI Processor does not support this API in the current version.

The Ascend 310P AI Processor does not support this API in the current version.

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

For details, see acltdtTensorType.