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:
[email protected]


Reply via email to