aclmdlGetTensorRealName

Applicability

Product

Supported

Atlas A3 training products/Atlas A3 inference products

Atlas A2 training products/Atlas A2 inference products

Atlas 200I/500 A2 inference products

Atlas inference products

Atlas training products

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 the name, which is used to obtain the actual name of the tensor.

Returns

Pointer to the real name of a tensor. 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.