Skip to content

AttributeError: module 'tvm.runtime' has no attribute 'load' #6158

@12101111

Description

@12101111

I'm testing the rust front-end example, and got this error when running tvm/rust/tvm/examples/resnet/src/build_resnet.py:

2020-07-28 15:36:02,208 - __main__ - INFO - build was successful
2020-07-28 15:36:02,209 - __main__ - INFO - test the build artifacts
Traceback (most recent call last):
  File "./src/build_resnet.py", line 130, in <module>
    test_build(build_dir)
  File "./src/build_resnet.py", line 115, in test_build
    lib = tvm.runtime.load(osp.join(build_dir, "deploy_lib.so"))
AttributeError: module 'tvm.runtime' has no attribute 'load'

In #4837, It seems tvm.module.load is renamed to tvm.runtime.load_module in 250eb03. But in the later commit f48486c, tvm.module.load is changed to tvm.module.load.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions