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 2020/09/24 03:08:39 UTC

[GitHub] [incubator-tvm] 12101111 opened a new pull request #6544: [Rust] Allow convert Context to ArgValue

12101111 opened a new pull request #6544:
URL: https://github.com/apache/incubator-tvm/pull/6544


   This PR allow to use the new module interface:
   
   ```python
   with tvm.transform.PassContext(opt_level=3):
       lib = relay.build(mod, target=target, target_host=target_host, params=params)
   
   lib.export_library('deploy_lib.so')
   ```
   
   ```rust
   use tvm::*;
   
   let lib = Module::load(&Path::new("deploy_lib.so")).unwrap();
   let default = lib.get_function("default", false).unwrap();
   let ctx = Context::gpu(0);
   let ret = default.invoke(vec![ctx.into()]);
   let gmod: Module = ret.unwrap().try_into().unwrap();
   ```


----------------------------------------------------------------
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] [incubator-tvm] tqchen commented on pull request #6544: [Rust] Allow convert Context to ArgValue

Posted by GitBox <gi...@apache.org>.
tqchen commented on pull request #6544:
URL: https://github.com/apache/incubator-tvm/pull/6544#issuecomment-698431320


   Thanks @12101111 !


----------------------------------------------------------------
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] [incubator-tvm] tqchen commented on pull request #6544: [Rust] Allow convert Context to ArgValue

Posted by GitBox <gi...@apache.org>.
tqchen commented on pull request #6544:
URL: https://github.com/apache/incubator-tvm/pull/6544#issuecomment-698431320


   Thanks @12101111 !


----------------------------------------------------------------
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] [incubator-tvm] tqchen merged pull request #6544: [Rust] Allow convert Context to ArgValue

Posted by GitBox <gi...@apache.org>.
tqchen merged pull request #6544:
URL: https://github.com/apache/incubator-tvm/pull/6544


   


----------------------------------------------------------------
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] [incubator-tvm] tqchen merged pull request #6544: [Rust] Allow convert Context to ArgValue

Posted by GitBox <gi...@apache.org>.
tqchen merged pull request #6544:
URL: https://github.com/apache/incubator-tvm/pull/6544


   


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