Function: get_tensor_desc_dim
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. It is a synchronous interface. |
Input Description |
desc: int, address object of the tensor description. index: int, sequence number of the dimension whose size is to be obtained, starting from 0. |
Return Value |
num: int, size of a specified dimension of a tensor description. |
Restrictions |
None |
Precautions |
None |