Function: get_tensor_desc_address

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 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)
    

Parameters

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.

Returns

Return Value

Description

addr

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