Function: get_op_type_len
|
C Prototype |
aclError aclprofGetOpTypeLen(const void *opInfo, size_t opInfoLen, uint32_t index, size_t *opTypeLen) |
|---|---|
|
Python Function |
opTypeLen, ret = acl.prof.get_op_type_len(opInfo, opInfoLen, index) |
|
Function Usage |
Obtains the string length of the operator type for memory allocation. You are advised to create a thread and call this API in the new thread. Otherwise, this API call will block the main thread. |
|
Input Description |
opInfo: address of the operator information. opInfoLen: length of the operator information. index: index of the operator whose type is to be obtained. The value range is [0, Operator count – 1]. Call acl.prof.get_op_num to obtain the operator count. |
|
Return Value |
opTypeLen: length of opType. ret: int, error code.
|
|
Reference |