tvm icon indicating copy to clipboard operation
tvm copied to clipboard

[Bug] The quick start example fails because tvm.compile is missing

Open yurivict opened this issue 8 months ago • 2 comments
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

yurivict avatar Mar 25 '25 06:03 yurivict

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.

Hzfengsy avatar Mar 26 '25 05:03 Hzfengsy

I think we should replace tvm.compile with relax.build. ex = tvm.compile(mod, target) -> ex = relax.build(mod, target)

SeongjaeP avatar Apr 18 '25 06:04 SeongjaeP