Function: get_tensor_desc_size

C Prototype

size_t aclGetTensorDescSize(const aclTensorDesc *desc)

Python Function

size = acl.get_tensor_desc_size(desc)

Function Usage

Obtains the size 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.

Return Value

size: int, size of the space occupied by the tensor description.

Restrictions

None