I am going step-by-step through the TVM User Tutorial using my Ubuntu Linux VM to get started with TVM, but I want to see if the TVM is going to work with our pre-trained TensorFlow Lite model as opposed to ONNX (we are not interested in ONNX at this point).
I used the following command to compile our mobilenet_v1 image classification TF Lite model: tvmc compile --target “llvm” --output my_tflie_model.tar --model-format tflite my_tflite_model.tflite
This command seems to have worked, except that it gave a bunch of “NHWC layout is not optimized for x86 with autotvm” messages and it did not add the “-net” suffix to the output .tar filename (should it?).
Then I tried to run the compiled model with this command: tvmc run --inputs my_image.npz --output predictions_my_tflite_model.npz my_tflite_model.tar
It gives me this error: Error: the input tensor ‘data’ is not in the graph. Expected inputs: ‘dict_keys([‘input’])’
'input" is the name of the input tensor in our TF Lite model, but apparently, TVM expects the input tensor to be named ‘data’. Is that what’s going on? Can this error be fixed?
Your prompt response would be greatly appreciated.