Hi,
Request you to share the ONNX model and the script if not shared already so that we can assist you better.
Alongside you can try few things:
validating your model with the below snippet
check_model.py
import sys
import onnx
filename = yourONNXmodel
model = onnx.load(filename)
onnx.checker.check_model(model).
2) Try running your model with trtexec command.
In case you are still facing issue, request you to share the trtexec “”–verbose"" log for further debugging
Thanks!
In my case there was a torch.matmul usage with dimension broadcasting (other than batch dim). It caused this problem. When I removed the broadcast and handled it with transposes etc. it is resolved.
Thank you very much! I have solved this error by modifying the code related to “torch.matmul”.
For example:
Before:
C = A.view(b,m,n,c,h,w).matmul(B)
After modification:
C = A.view(b,m,n,c,h,w)
C = C.matmul(B)