ZQPei opened a new pull request #9619:
URL: https://github.com/apache/tvm/pull/9619


   As discussed in issue https://github.com/apache/tvm/issues/9617.
   
   Recently `tvm.micro` is imported by tvmc even though `USE_MICRO` macro is 
`OFF`.
   This bug was mistakenly introduced by 
https://github.com/apache/tvm/pull/9229.
   
   As we can see in
   
https://github.com/apache/tvm/blob/32e80128d195db9987e47a89755f4ef4d7cf8e8d/python/tvm/driver/tvmc/__init__.py#L22
   and
   
https://github.com/apache/tvm/blob/32e80128d195db9987e47a89755f4ef4d7cf8e8d/python/tvm/driver/tvmc/runner.py#L37-L39
   
   I tried to fix it by,
   - adding a `check_micro_support` api to `tvm.support`,
   - lazy import `tvm.micro` after `check_micro_support` to preserve tvm with 
USE_MICRO OFF.


-- 
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