aclmdlGetTensorRealName

Description

Obtains the real name of a tensor by tensor name.

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

Prototype

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

Returns

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

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