@denis the error message you’re seeing is often caused by using a model that has variable shape size.
Tracking down the changes on ONNX repository, there was this change which changed the models to have variable batch size: https://github.com/onnx/models/pull/537
To use models like this in TVMC both CLI and API, you’ll need to provide the input shape, as documented in the command line tutorial: Compiling and Optimizing a Model with TVMC — tvm 0.10.dev0 documentation
So your fix might be just calling model = tvmc.load('my_model.onnx', shape_dict={'data' : [1,3,224,224]})
, to give the shape information as expected (I didn’t test this suggestion, but the main idea is that a shape size will need to be provided).
The key point actually is that tutorials, as with any piece of code, might have bugs or get outdated by external changes, and are not intentionally misleading.
With that in mind, I strongly encourage you, when finding these issues, to report them using the issue reporting tool at https://github.com/apache/tvm/issues/new/choose