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


Reply via email to