-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Group normalization crashes tensorrt #339
Comments
Hi @axeldavy, What're your keras and keras2onnx versions? Can you just give the output of With keras==2.3.1 and tensorflow==1.15 I got:
With keras==2.1.3 and tensorflow==1.15:
So I went back to keras==2.3.1 and downgraded to tensorflow==1.14 and ONNX model was produced fine
|
Repro'd segfault with ONNX opsets 7 - 11 using |
keras2onnx.convert_tensorflow uses tf2onnx for the conversion. I think I met the same Addv2 problem with tensorflow 1.15, and that was solved by using keras2onnx with an updated ktf2onnx directory (which is a clone of tf2onnx). Unfortunately I think tf2onnx master is compatible now only with tensorflow 2. It seems you were able to reproduce with tensorflow 1.14, so I think it is fine, but if you need I can give the exact commit for tf2onnx and keras2onnx that work with tensorflow 1.15. |
I made several models (keras2onnx, tf2onnx, .pb) using tf1.14 and keras2onnx. Will look into the root cause. |
Hi @axeldavy , It seems like this was caused by some |
Description
Any keras model exported to onnx using group normalization crashes tensorrt.
Environment
TensorRT Version: 7
GPU Type: 2080TI
Nvidia Driver Version: 440.33
CUDA Version: 10.2
CUDNN Version: 7.6
Operating System + Version: Ubuntu 18.04
Python Version (if applicable): 3.6.9
TensorFlow Version (if applicable): 1.15
PyTorch Version (if applicable):
Baremetal or Container (if container which image + tag):
Relevant Files
Here is a full script to produce a minimal onnx file reproducing the issue:
The produced file ran with trtexec --verbose gives:
Steps To Reproduce
run the python script, saving to test.onnx
run trtexec --onnx=test.onnx --verbose
The text was updated successfully, but these errors were encountered: