acltdtGetDimsFromItem
The
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
The value 0 indicates success, and other values indicate failure. For details, see aclError.
Parent topic: acltdtDataItem