jtuyls commented on a change in pull request #7577:
URL: https://github.com/apache/tvm/pull/7577#discussion_r588558288
##########
File path: tests/python/driver/tvmc/test_compiler.py
##########
@@ -29,6 +30,15 @@
from tvm.driver import tvmc
+def vitis_ai_available():
Review comment:
Yes, I wanted to do that but those files import the `pyxir` package,
which might already fail if the package is not installed. So, unless we put the
function before the imports, importing this function would cause failure. We
can put the function in a separate file (e.g. `vitis_ai_tools`) but that felt a
bit overkill currently as we are only using it in one place. If we start
needing it in multiple places, then I think we should definitely move it.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]