tvm
tvm copied to clipboard
[Bug] The quick start example fails because tvm.compile is missing
trafficstars
The quick_start example fails:
Traceback (most recent call last):
File "/usr/ports/misc/py-tvm/test-x.py", line 30, in <module>
ex = tvm.compile(mod, target)
^^^^^^^^^^^
AttributeError: module 'tvm' has no attribute 'compile'
Version: 0.19.0 Python-3.11
Thanks for pointing it out. The docs is based on the latest version (aka main branch) but not the specific version. While we are finding out why the docs for released version are missing.
I think we should replace tvm.compile with relax.build. ex = tvm.compile(mod, target) -> ex = relax.build(mod, target)