A1245967 commented on code in PR #11365:
URL: https://github.com/apache/tvm/pull/11365#discussion_r876492802


##########
src/runtime/crt/aot_executor_module/aot_executor_module.c:
##########
@@ -176,7 +176,7 @@ static const TVMBackendPackedCFunc 
aot_executor_registry_funcs[] = {
 };
 
 static const TVMFuncRegistry aot_executor_registry = {
-    "\x0aget_input\0"
+    "\x0a\0get_input\0"

Review Comment:
   I think this 
[line](https://github.com/apache/tvm/blob/813136401a11a49d6c15e6013c34dd822a5c4ff6/python/tvm/micro/func_registry.py#L44)
 in `python/tvm/micro/func_registry.py` can be replaced with the following 
lines.
   
   
   ``` python
    import struct
    encoded_NumFuncs = [f"\\{v:03o}" for v in struct.pack("H", len(funcs))]
    encoded_funcs = "".join(encoded_NumFuncs) + "\\0".join(funcs)
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to