ModuleNotFoundError: No module named 'tvm._ffi.function'

error info:

File “mobilenet_v2.py”, line 35, in import tvm.relay as relay

File “/workspace/python/tvm/relay/ init .py”, line 26, in from . import expr_functor

File “/workspace/python/tvm/relay/expr_functor.py”, line 24, in from .op import Op

File “/workspace/python/tvm/relay/op/ init .py”, line 23, in from . import strategy

File “/workspace/python/tvm/relay/op/strategy/ init .py”, line 22, in from .generic import *

File “/workspace/python/tvm/relay/op/strategy/generic.py”, line 22, in import topi

File “/usr/tvm/topi/python/topi/ init .py”, line 16, in from . import cpp

File “/usr/tvm/topi/python/topi/cpp.py”, line 22, in from tvm._ffi.function import _init_api_prefix

ModuleNotFoundError: No module named ‘tvm._ffi.function’

I run deploy_model_on_android.py in docker and get this error. How can i fix this?

I was getting the same error when running on python 3.7, however, the error disappears when running on python 3.6.

I try python test_op_mp.py --code_dir tmp_dir/ --smem_tiling --reg_tiling --op matmul_expr --shape 4096 4096 4096 base on https://github.com/microsoft/nnfusion/blob/osdi22_artifact/artifacts/get_started_tutorial/README_GET_STARTED.md, and get the same issue