AttributeError: module 'tvm' has no attribute 'module'

I met this error while loading model:

Traceback (most recent call last):

  File "east_model.py", line 321, in <module>
    run_tvm()

  File "east_model.py", line 294, in run_tvm
    loaded_lib = tvm.module.load("./east.so")

AttributeError: module 'tvm' has no attribute 'module'

How could I fix it?

API changed very recently so you need to change tvm.module.load to tvm.runtime.load_module

Hope it helps!

3 Likes