trtexec set input shape not working with

I’m running into some issues setting the input shape with trtexec, as shown in example 4:

For example, with the ResNet 50 model from ONNX’s model zoo (, I can run trtexec normally. However, if I try to specify the input shape, even to match the existing input shape, the program ‘runs’, but no queries actually get processed

./trtexec --onnx=resnet50v1.onnx --shapes=data:1x3x224x224


Can you try using TRT 7, it seems to be working fine on latest TRT version:

trtexec --onnx=/test/resnet50v1.onnx --shapes=data:1x3x224x224 --explicitBatch

Also, if the model itself is static dimension, other dimensions will not work.