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/12/01 02:38:53 UTC

[GitHub] [tvm] philatoctoml commented on issue #9617: TVM forcing compilation with USE_MICRO ON

philatoctoml commented on issue #9617:
URL: https://github.com/apache/tvm/issues/9617#issuecomment-983229224


   @ZQPei thanks! Of course not. I just did this based on a model I had already tuned:
   
   ```
   from tvm.driver import tvmc
   
   model = tvmc.load('model.onnx')
   
   log_file = "mymodel.json"
   target = "cuda"
   
   #tvmc.tune(
   #    model,
   #    target=target,
   #    tuning_records=log_file,
   #)
   
   package = tvmc.compile(model, target=target, tuning_records=log_file)
   
   result = tvmc.run(package, device='cuda')
   print(result)
   ```


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

To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org

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