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 2019/11/08 03:55:57 UTC

[GitHub] [incubator-tvm] DamonDeng opened a new issue #4279: Creating tvm.target twice will create empty params

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:
users@infra.apache.org


With regards,
Apache Git Services