Commit d6007a24 by Tianqi Chen Committed by GitHub

[RPC] Expose module handle (#459)

* [RPC] Expose module handle

* not include handle
parent fe564d90
......@@ -182,6 +182,14 @@ TVM_REGISTER_GLOBAL("contrib.rpc._ImportRemoteModule")
cmod->module_handle());
});
TVM_REGISTER_GLOBAL("contrib.rpc._ModuleHandle")
.set_body([](TVMArgs args, TVMRetValue* rv) {
Module m = args[0];
std::string tkey = m->type_key();
CHECK_EQ(tkey, "rpc");
*rv = static_cast<RPCModuleNode*>(m.operator->())->module_handle();
});
TVM_REGISTER_GLOBAL("contrib.rpc._SessTableIndex")
.set_body([](TVMArgs args, TVMRetValue* rv) {
Module m = args[0];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment