acltdtGetDimsFromItem
Applicability
Product |
Supported |
|---|---|
Atlas 350 Accelerator Card |
√ |
√ |
|
√ |
|
x |
|
x |
|
√ |
Description
Obtains the tensor shape of normal data.
Prototype
1 | 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 |
Dimension information array. |
dimNum |
Input |
Dimension count. |
Returns
0 on success; otherwise, failure. For details, see aclError.
Parent topic: acltdtDataItem