@SerenaC94 @hgt312
I just followed the steps mentioned here - Vitis-AI Integration — tvm 0.8.dev0 documentation
Tried with v0.7.0 branch too. Pops the same error.
root@pynq:/home/xilinx/tvm/python# python3 -c 'from tvm import relay'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/xilinx/tvm/python/tvm/relay/__init__.py", line 23, in <module>
from . import ty
File "/home/xilinx/tvm/python/tvm/relay/ty.py", line 26, in <module>
Any = _ffi_api.Any
AttributeError: module 'tvm.relay._ffi_api' has no attribute 'Any'
Then I noticed that “Any” variable is not used anywhere in the file (other than this creating/assigning instance) - /home/xilinx/tvm/python/tvm/relay/ty.py - Commented this line and tried to do “python3 -c ‘from tvm import relay’” but throws another error:
root@pynq:/home/xilinx/tvm/python# python3 -c 'from tvm import relay'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/xilinx/tvm/python/tvm/relay/__init__.py", line 29, in <module>
from . import prelude
File "/home/xilinx/tvm/python/tvm/relay/prelude.py", line 20, in <module>
from tvm.relay.transform import ToANormalFormExpr
File "/home/xilinx/tvm/python/tvm/relay/transform/__init__.py", line 20, in <module>
from .transform import *
File "/home/xilinx/tvm/python/tvm/relay/transform/transform.py", line 944, in <module>
@function_pass(opt_level=1)
File "/home/xilinx/tvm/python/tvm/relay/transform/transform.py", line 932, in create_function_pass
info = tvm.transform.PassInfo(opt_level, fname, required)
File "/home/xilinx/tvm/python/tvm/ir/transform.py", line 49, in __init__
self.__init_handle_by_constructor__(_ffi_transform_api.PassInfo, opt_level, name, required)
AttributeError: module 'tvm.ir._ffi_transform_api' has no attribute 'PassInfo'
Any suggestions?