Closed satyajitghana closed 1 year ago
Well, wonnx doesn't support parametrized dimensions: you need to explicitly specify shapes up front. onnx-simplifier
will not do this by default, but has options to specify the missing dimension parameters, and will then fill them in for you.
Also (see README) the nnx prepare
command supports setting parametrized dimensions:
To specify dynamic dimension parameters, add e.g. --set batch_size=1.
It may or may not work in your case because not all op types are supported currently.
Issues with loading a simple FC layers Model
Attached mnist.onnx and mnist.script.pt
mnist.zip
I've tried running onnx-simplifier on it, doesn't do anything.