MadFunMaker opened a new issue #7812:
URL: https://github.com/apache/tvm/issues/7812
I found that the most recent TVM version fails the unit test of TensorRT. I
tried the following command for that:
`TVM_FFI=ctypes python -m pytest -v tests/python/contrib/test_tensorrt.py`
From the following error message, I suspect this is because of the module
name change from GraphRuntime to GraphExecutor.
`enabled targets: cuda; llvm; nvptx; llvm -device=arm_cpu
pytest marker:
============================= test session starts
==============================
platform linux -- Python 3.8.5, pytest-6.2.2, py-1.10.0, pluggy-0.13.1 --
/opt/anaconda3/bin/python
cachedir: .pytest_cache
rootdir: /home/byungsoj/temp_local/tvm, configfile: pytest.ini
collecting ... collected 0 items / 1 error
==================================== ERRORS
====================================
____________ ERROR collecting tests/python/contrib/test_tensorrt.py
____________
ImportError while importing test module
'/home/byungsoj/temp_local/tvm/tests/python/contrib/test_tensorrt.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/opt/anaconda3/lib/python3.8/importlib/__init__.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/python/contrib/test_tensorrt.py:27: in <module>
from tvm.contrib import graph_executor, utils
E ImportError: cannot import name 'graph_executor' from 'tvm.contrib'
(/opt/tvm/python/tvm/contrib/__init__.py)
=============================== warnings summary
===============================
<frozen importlib._bootstrap>:219
<frozen importlib._bootstrap>:219: RuntimeWarning: numpy.ufunc size
changed, may indicate binary incompatibility. Expected 192 from C header, got
216 from PyObject
-- Docs: https://docs.pytest.org/en/stable/warnings.html
=========================== short test summary info
============================
ERROR tests/python/contrib/test_tensorrt.py
!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection
!!!!!!!!!!!!!!!!!!!!
========================= 1 warning, 1 error in 0.59s
==========================
`
@areusch
--
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]