I’m following the android deploy tutorial in TVM. I was able to run the application on smartphone using default libraries that get downloaded as part of compilation.
My next step is to compile the libraries for ARM architecture. When I try to generate the libraries using run_mobile.py
I’m observing the following error :
Build Graph…
[14:20:53] /local/mnt/workspace/abhikran/tvm/tvm_hexagon_2_August/tvm/nnvm/src/compiler/simplify_inference.cc:46: Check failed: dshape.ndim() != 0 (0 vs. 0) :
Stack trace:
[bt] (0) /local/mnt/workspace/abhikran/tvm/tvm_hexagon_2_August/tvm/build/libtvm.so(dmlc::LogMessageFatal::~LogMessageFatal()+0x33) [0x7fad329d2f83]
[bt] (1) /local/mnt/workspace/abhikran/tvm/tvm_hexagon_2_August/tvm/nnvm/python/nnvm/…/…/…/build/libnnvm_compiler.so(nnvm::compiler::BatchNormToInferUnpack(nnvm::NodeAttrs const&, nnvm::NodeEntry, nnvm::NodeEntry, nnvm::NodeEntry, nnvm::NodeEntry, nnvm::NodeEntry, nnvm::TShape, nnvm::TShape)+0xf4) [0x7fad1f57df04]
[bt] (2) /local/mnt/workspace/abhikran/tvm/tvm_hexagon_2_August/tvm/nnvm/python/nnvm/…/…/…/build/libnnvm_compiler.so(+0x1cdfd7) [0x7fad1f582fd7]
[bt] (3) /local/mnt/workspace/abhikran/tvm/tvm_hexagon_2_August/tvm/nnvm/python/nnvm/…/…/…/build/libnnvm_compiler.so(nnvm::compiler::SimplifyInference(nnvm::Graph)+0x9cc) [0x7fad1f581bfc]
[bt] (4) /local/mnt/workspace/abhikran/tvm/tvm_hexagon_2_August/tvm/nnvm/python/nnvm/…/…/…/build/libnnvm_compiler.so(nnvm::Graph std::__1::__invoke_void_return_wrapper < nnvm::Graph>::__call<nnvm::Graph (&)(nnvm::Graph), nnvm::Graph>(nnvm::Graph (&&&)(nnvm::Graph), nnvm::Graph&&)+0xb6) [0x7fad1f552eb6]
[bt] (5) /local/mnt/workspace/abhikran/tvm/tvm_hexagon_2_August/tvm/nnvm/python/nnvm/…/…/…/build/libnnvm_compiler.so(std::__1::__function::__func<nnvm::Graph ()(nnvm::Graph), std::__1::allocator<nnvm::Graph ()(nnvm::Graph)>, nnvm::Graph (nnvm::Graph)>::operator()(nnvm::Graph&&)+0xd) [0x7fad1f552dbd]
[bt] (6) /local/mnt/workspace/abhikran/tvm/tvm_hexagon_2_August/tvm/nnvm/python/nnvm/…/…/…/build/libnnvm_compiler.so(nnvm::ApplyPasses(nnvm::Graph, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > > > const&)+0x4c2) [0x7fad1f58d842]
[bt] (7) /local/mnt/workspace/abhikran/tvm/tvm_hexagon_2_August/tvm/nnvm/python/nnvm/…/…/…/build/libnnvm_compiler.so(NNGraphApplyPasses+0x1e8) [0x7fad1f5213a8]
[bt] (8) /local/mnt/workspace/abhikran/software/setup/python3/Python-3.5.7/install_dir/lib/python3.5/lib-dynload/_ctypes.cpython-35m-x86_64-linux-gnu.so(ffi_call_unix64+0x4c) [0x7fad3acddc6a]