trtexec set input shape not working with

I’m running into some issues setting the input shape with trtexec, as shown in example 4: https://github.com/NVIDIA/TensorRT/blob/master/samples/opensource/trtexec/README.md

For example, with the ResNet 50 model from ONNX’s model zoo (https://github.com/onnx/models/tree/master/vision/classification/resnet), 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

Hi,

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.

Thanks