Hi
I’m on Ubuntu 16.04 server, LLVM 6.0, android-ndk-r16b-linux-x86_64. As a test, I’m using nnvm to compile a simple convnet for target = 'llvm -target=arm64-linux-android'
with target_host=None
(on cpu now. Is this correct?). I want to create the shared lib, graph and params without RPC (as described http://www.tvmlang.org/2017/11/08/android-rpc-introduction.html) locally and put it in an android app.
I have already created the arm64 toolchain through ./make_standalone_toolchain.py though I exported TVM_NDK_CC=/my_toolchain/bin/aarch64-linux-android-clang
and then used tvm.contrib.ndk
for lib.export_library(path, ndk.create_shared)
. However, the build is done though I suspect since I don’t have remote ctx and using mx.cpu ctx when loading a pretrained params, the build wouldn’t be for android, am I right?
So is this possible to build for android without RPC on a server?
I’d appreciate any help on these issues
Thanks