Swin-Transformer-TensorRT
Swin-Transformer-TensorRT copied to clipboard
Swin does not support dynamic input shape after tracing the module
hello there, I am trying to convert swin model to onnx and then tensorrt, but a problem which I face is that it does not support dynamic input resolution after tracing the model using torch.jit.trace. It seems that it is because of the mask input in window attention. Do you have any idea how I can fix this problem?
hello there, I am trying to convert swin model to onnx and then tensorrt, but a problem which I face is that it does not support dynamic input resolution after tracing the model using torch.jit.trace. It seems that it is because of the mask input in window attention. Do you have any idea how I can fix this problem?
Please refer to the export-to-onnx-and-build-tensorrt-engine session in Readme. I've done some small changes, maybe it could help you.