DamonDeng opened a new issue #4279: Creating tvm.target twice will create empty 
params
URL: https://github.com/apache/incubator-tvm/issues/4279
 
 
   Calling `target = tvm.target.create('llvm')` twice will create empty params.
   
   The following is the code snippet I used, which was copied from the quick 
start tutorial: <https://docs.tvm.ai/tutorials/relay_quick_start.html>
   
        opt_level = 3
        target = tvm.target.create('llvm')
        with relay.build_config(opt_level=opt_level):
            graph, lib, params = relay.build_module.build(
                mod, target, params=params)
                
   I ran it in jupyter notebook on both Mac and Linux platform.
   
   Only if I ran this segment twice, the value is `params` will be `{}`
   
   Trying to look into the code of `autotvm.task.dispatcher`, seems that there 
is somthing wrong with the context cache.
   
   

----------------------------------------------------------------
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]


With regards,
Apache Git Services

Reply via email to