Obtains the real name of a tensor by tensor name. This API is synchronous.
Use the aclmdlGetTensorRealName API in conjunction with aclmdlGetInputDims/aclmdlGetInputDimsV2/aclmdlGetOutputDims/aclmdlGetCurOutputDims.
const char *aclmdlGetTensorRealName(const aclmdlDesc *modelDesc, const char *name)
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. |
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.