Function: get_tensor_desc_type

C Prototype

aclDataType aclGetTensorDescType(const aclTensorDesc *desc)

Python Function

type = acl.get_tensor_desc_type(desc)

Function Usage

Obtains the data type 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

Type: int, data type of the specified tensor description.

Restrictions

None