Could you please confirm are you able to run successfully using ONNX runtime, and please let us know which method/source you have followed to generate ONNX model.
Regarding the Onnx runtime:
It was a good point because when I tried to load my Onnx with it I got an error:
[ONNXRuntimeError] : 1 : FAIL : Load model from OnnxMultiDynamicInputsTestStaticModel.onnx failed:Node (MaxPool_1) Op (MaxPool) [ShapeInferenceError] Attribute strides has incorrect size
You can see that the Onnx model includes MaxPool layer which is actually a torch NaxPool3D layer which means the strides has 3 dimensions.
I changed a little bit the model and replace th MaxPool3D with a MaxPool2D and now all works fine the Onnx Runtime and the TensorRT onnx parse operation.