Hi, I used (https://github.com/dmlc/nnvm/blob/master/docs/how_to/deploy.md) for building an application to run on android device. I am allocating random values to the tvm array x and calling the set_input function(), but everytime I get the same output, I mean the same index for max value out of 1000 values and same values per index. The case is same with the tuned as well as untuned graph. And I get a continuous warning saying: /home/yovan/tvm_all/run_tvm_on_device/tvm/src/runtime/graph/graph_runtime.cc:65: Warning: cannot find “data” among input . Output is something like this (for tflite mobilenet_v1_224):
0.000127
0.000527
0.000987
0.000252
0.000207
0.000938
0.000505
0.000070
0.000158
0.000119
0.000649
0.000668
0.000274
0.000112
0.000165
0.000156
0.000298
0.000191
0.000221
0.000192
0.000126
0.000267
0.001076
0.001035
0.000715
0.000360…
…
Note: there should be 2 changes in the above code
Worked, thanks! but is is not just a naming convention? Like, we are providing a name ‘data’ or ‘input’ to the tensor, or the name we had provided in the python file for the graph it should match with that?
Yes, the image data for input, when I was assigning using set_input(“data”, x) x being the TVMArrayAlloc, it could’t find the name for the input tensor defined in the library right?
So, how come inference could come?