Function: get_tensor_real_name

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 real name of a tensor by tensor name.

Use acl.mdl.get_tensor_real_name with the following APIs:

Prototype

  • C Prototype
    1
    const char *aclmdlGetTensorRealName(const aclmdlDesc *modelDesc, const char *name)
    
  • Python Function
    1
    real_name = acl.mdl.get_tensor_real_name(model_desc, name)
    

Parameter Description

Parameter

Description

modelDesc

Int, pointer address of the aclmdlDesc type.

Call acl.mdl.create_desc to create data of the aclmdlDesc type in advance.

name

Str, tensor name.

Return Value Description

Return Value

Description

real_name

Str, real name of a tensor.

If model_desc or name is empty, 0 is returned.