aclmdlGetTensorRealName

Applicability

Product

Supported

Atlas 350 Accelerator Card

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product

Atlas 200I/500 A2 inference product

Atlas inference product

Atlas training product

Function Usage

Obtains the real name of a tensor by tensor name.

Use the aclmdlGetTensorRealName API in conjunction with aclmdlGetInputDims/aclmdlGetInputDimsV2/aclmdlGetOutputDims/aclmdlGetCurOutputDims.

Prototype

1
const char *aclmdlGetTensorRealName(const aclmdlDesc *modelDesc, const char *name)

Parameters

Parameter

Input/Output

Description

modelDesc

Input

Pointer to data of the aclmdlDesc type

Call aclmdlCreateDesc to create data of the aclmdlDesc type in advance.

name

Input

Pointer to the name, which is used to obtain the actual name of the tensor

Returns

Pointer to the real name of a tensor on success. The lifetime of the pointer is the same as that of modelDesc. If modelDesc is destroyed, the content to which the pointer points is automatically destroyed.

nullptr if empty modelDesc or name is passed to the call.