Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] How to use tvm.rpc.RPCSession.get_function? #268

Open
yohuna77777 opened this issue Jul 17, 2023 · 0 comments
Open

[Bug] How to use tvm.rpc.RPCSession.get_function? #268

yohuna77777 opened this issue Jul 17, 2023 · 0 comments

Comments

@yohuna77777
Copy link

I want to use this method to run a cpp runtime function "vm.builtin.ndarray_cache.load" on my android device by tvm rpc, my code is below:

from tvm.auto_scheduler.utils import request_remote
remote = request_remote("android", "127.0.0.1", 9190)
dev = remote.cl()
remote_load = remote.get_function("vm.builtin.ndarray_cache.load")
remote_load("/data/local/tmp/params", dev.device_type, dev.device_id)

After I run these, I got a error below:
/data/projects/relax/apps/android_rpc/app/src/main/jni/../../../../../../include/../src/runtime/c_runtime_api.cc:131: InternalError: Check failed: (allow_missing) is false: Device API rpc is not enabled.

How can I fix it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant