Function: get_tensor_desc_type

Applicability

Product

Supported

Atlas 350 Accelerator Card

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product

Atlas training product

Atlas inference product

Atlas 200I/500 A2 inference product

Function Usage

Obtains the data format of a tensor description.

Prototype

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

Parameters

Parameter

Description

desc

Int, pointer address of the aclTensorDesc type.

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

Returns

Return Value

Description

Type

Int, data type of the specified tensor description.