You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2021/04/27 10:06:09 UTC

[GitHub] [tvm] hermosayhl opened a new issue #7931: AttributeError: module 'tvm' has no attribute 'module'

hermosayhl opened a new issue #7931:
URL: https://github.com/apache/tvm/issues/7931


   I met this mistake while loading transfered models
   ```
   Traceback (most recent call last):                                                                                                                                                                
       File "run.py", line 13, in <module>                                                                                                                                                          
           loaded_lib = tvm.module.load(test_lib)                                                                                                                                          
   AttributeError: module 'tvm' has no attribute 'module'
   ```
   
   What happened? If not avaliable, how would I load models using tvm? 
   
   Listed below are codes.
   ```
   import numpy as np
   import tvm
   import tvm.relay as relay
   from tvm.contrib import graph_runtime
   
   import cv2 as cv
    
   test_json = 'resnet18_simple.json'
   test_lib = 'resnet18_simple.so'
   test_param = 'resnet18_simple.params'
    
   loaded_json = open(test_json).read()
   loaded_lib = tvm.module.load(test_lib)
   loaded_params = bytearray(open(test_param, "rb").read())
   ```
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [tvm] hermosayhl commented on issue #7931: AttributeError: module 'tvm' has no attribute 'module'

Posted by GitBox <gi...@apache.org>.
hermosayhl commented on issue #7931:
URL: https://github.com/apache/tvm/issues/7931#issuecomment-828233351


   > Please use https://discuss.tvm.apache.org/ for related questions, you should use tvm.runtime.load_module
   
   Thanks a lot !


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [tvm] tqchen closed issue #7931: AttributeError: module 'tvm' has no attribute 'module'

Posted by GitBox <gi...@apache.org>.
tqchen closed issue #7931:
URL: https://github.com/apache/tvm/issues/7931


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [tvm] tqchen commented on issue #7931: AttributeError: module 'tvm' has no attribute 'module'

Posted by GitBox <gi...@apache.org>.
tqchen commented on issue #7931:
URL: https://github.com/apache/tvm/issues/7931#issuecomment-827557369


   Please use https://discuss.tvm.apache.org/ for related questions, you should use tvm.runtime.load_module


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org