aclGetTensorDescDim (Deprecated)
This API will be deprecated in future releases. Use aclGetTensorDescDimV2 instead.
Description
Obtains the size of a tensor dimension specified in the tensor description.
Prototype
int64_t aclGetTensorDescDim(const aclTensorDesc *desc, size_t index)
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
desc |
Input |
Pointer to data of the aclTensorDesc type. Call aclCreateTensorDesc to create data of the aclTensorDesc type in advance. |
index |
Input |
Sequence number of the dimension whose size to obtain, indexed starting at 0. Must be in the range of [0, Dimension count – 1]. Call aclGetTensorDescNumDims to obtain the dimension count. |
Returns
Size of the specified tensor dimension
Parent topic: aclTensorDesc