It works that using “rpc.SessTableIndex” and AddRPCSessionMask, but I don't
know whether it's a correct way.
```c++
auto f_get_idx = tvm::runtime::Registry::Get("rpc.SessTableIndex");
int my_idx = (*f_get_idx)(mod);
DLDevice local_dev = {kDLCPU, 0};
DLDevice remote_dev = tvm::runtime::AddRPCSessionMask(local_dev, my_idx);
tvm::runtime::Module gmod = mod.GetFunction("default")(remote_dev);
```
---
[Visit
Topic](https://discuss.tvm.apache.org/t/c-rpc-aot-error-can-not-pass-in-local-device-when-deploying-aot-compiled-model-via-c-rpc-client/18845/2)
to respond.
You are receiving this because you enabled mailing list mode.
To unsubscribe from these emails, [click
here](https://discuss.tvm.apache.org/email/unsubscribe/1d775fe12b805907b450706ca52102b33be17aeb54881dccc275bb2279c8bbe1).