-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unexpected result on multi-batch gather. #2299
Comments
Tried to reproduce the issue with TRT 8.4.1.5 using polygraphy:
the accuracy is matched between TRT and ONNX. can you check whether it's matched between Torch and ONNX? |
The results matched between Torch and ONNX. |
I can reproduce this with
I've filed internal bug 3790543 to track this, thanks for reporting. |
The issue has been fixed in TRT 8.5, there will be a preview feature to fix this issue, please wait for the 8.5 release coming soon :-) |
Description
Gathering topk index on a multi-batch tensor gives unexpected results.
Note that if we replace the profile with:
Given the right result.
Please read the code below for more detail.
Environment
TensorRT Version: 8.4.1.5
NVIDIA GPU: 2060s
NVIDIA Driver Version: 510.85.02
CUDA Version: 11.3
CUDNN Version: 8.2.1
Operating System: Ubuntu18.04
Python Version (if applicable): 3.7
Tensorflow Version (if applicable):
PyTorch Version (if applicable): 1.10.0
Baremetal or Container (if so, version):
Relevant Files
Steps To Reproduce
The text was updated successfully, but these errors were encountered: