Function: get_tensor_desc_dim
This API will be deprecated in future releases. Use acl.get_tensor_desc_dim_v2 instead.
C Prototype |
int64_t aclGetTensorDescDim(const aclTensorDesc *desc, size_t index) |
|---|---|
Python Function |
num = acl.get_tensor_desc_dim(desc, index) |
Function Usage |
Obtains the size of a specified dimension of a tensor description. |
Input Description |
desc: int, pointer address of aclTensorDesc. Call acl.create_tensor_desc to create data of the aclTensorDesc type in advance. index: int, sequence number of the dimension whose size is to be obtained, starting from 0. Value range: [0, Dimension count – 1]. Call acl.get_tensor_desc_dim to obtain the dimension count. |
Return Value |
num: int, size of a specified dimension of a tensor description. |
Restrictions |
None |
Parent topic: Common APIs