Function: get_tensor_desc_type

Applicability

Product

Supported (√/x)

Atlas A3 training products/Atlas A3 inference products

Atlas A2 training products/Atlas A2 inference products

Atlas training products

Atlas inference products

Atlas 200I/500 A2 inference products

Function Usage

Obtains the data type of a tensor description.

Prototype

  • C Prototype
    1
    aclDataType aclGetTensorDescType(const aclTensorDesc *desc)
    
  • Python Function
    1
    type = acl.get_tensor_desc_type(desc)
    

Parameter Description

Parameter

Description

desc

Int, pointer address of the aclTensorDesc type.

Call acl.create_tensor_desc to create data of the aclTensorDesc type in advance.

Return Value Description

Return Value

Description

Type

Int, data type of the specified tensor description.