Function: get_tensor_desc_address

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 tensor pointer address of a specified operator input or output.

Prototype

  • C Prototype
    1
    void *aclGetTensorDescAddress(const aclTensorDesc *desc)
    
  • Python Function
    1
    addr = acl.get_tensor_desc_address(desc)
    

Parameter Description

Parameter

Description

desc

Int, pointer address of the tensor description.

Call acl.get_tensor_desc_by_index to obtain the tensor description of all inputs or all outputs of the operator as the input of this API.

Return Value Description

Return Value

Description

addr

Int, tensor pointer address of a specified operator input or output.