TensorRT 7 Resize produce inconsistent result with PyTorch Interpolate #457
Labels
bug
Something isn't working
repro requested
Request more information about reproduction of issue
triaged
Issue has been triaged by maintainers
I have an HRNet semantic segmentation model trained with Pytorch, using interpolate bilinear align_corners=True
Then I convert it for C++ inference with align_corners=True and align_corners=False, I find that the output of the two mode are almost the same.
Using PyTorch1.5, onnx build from source (almost the latest version, showed 1.7.0), set interpolate with align_corners=False, export onnx model with opset version 10.
Then I use TensorRT 7.0.0.11 for inference in Windows. I find the output is quite different from those of PyTorch, the main problem is the result is almost a shifted and smaller version than the PyTorch version.
Is writing a plugin the only way to solve this problem?
Here are the result
torch align
torch no align
torch diff
trt no align
trt torch diff
The text was updated successfully, but these errors were encountered: