Function: get_op_name_len
Applicability
|
Product |
Supported (√/x) |
|---|---|
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
Function Usage
Obtains the string length of the operator name for memory allocation.
As a best practice, the user can create a thread and call this API in the new thread. Otherwise, this API call will block the main thread.
Prototype
- C Prototype
1aclErroraclprofGetOpNameLen(const void *opInfo, size_t opInfoLen, uint32_t index, size_t *opNameLen)
- Python Function
1opNameLen, ret = acl.prof.get_op_name_len(opInfo, opInfoLen, index)
Parameter Description
|
Parameter |
Description |
|---|---|
|
opInfo |
Int, address of the operator information. |
|
opInfoLen |
Int, length of the operator information. |
|
index |
Int, operator index. The value range is [0, Operator count – 1]. Call acl.prof.get_op_num to obtain the operator count. |
Return Value Description
|
Return Value |
Description |
|---|---|
|
opNameLen |
Int, length of the operator name memory allocation. |
|
ret |
Int, error code.
|