I’ve followed the deployment tutorials as well as the sample code provided at apps/howto_deploy successfully and everything works well. I develop and build on linux/x86 and deploy to aarch64/android natively as a C++ module compiled to so, with the necessary libtvm_runtime.so.
However, the example provided int apps/howto_deploy/cpp_deploy.cc does not show how to read any metadata about the neural network which I deployed. I want to check input and output shapes, data types, count the number of ops, tensors etc. This is required by the larger software context with which I want integrate TVM.
I’ve also saved the execution graph as a JSON file, but couldn’t find a hard spec for this JSON.
hi, yakovdan, i using this code, will generate this err:
Program received signal SIGSEGV, Segmentation fault.
0x0000560bfbcf1696 in tvm::runtime::MapNode::iterator::operator-> (this=0x7ffc8b595fa0)
at /workspace/guohua.zhu/gerrit/tvm/include/tvm/runtime/container/map.h:1152
1152 TVM_DISPATCH_MAP_CONST(self, p, { return p->DeRefItr(index); });