Function: get_tensor_real_name
Applicability
Product |
Supported (√/x) |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
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
1const char *aclmdlGetTensorRealName(const aclmdlDesc *modelDesc, const char *name)
- Python Function
1real_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. |
Parent topic: Model Loading and Unloading