Hi,
Looks like your model has static inputs and the also script has some mistakes.
We recommend you to please generate an ONNX model with a dynamic input shape. And please refer to the following sample and doc to run inference.
Thank you.