-
Notifications
You must be signed in to change notification settings - Fork 432
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
ValueError: Could not infer attribute explicit_paddings
type from empty iterator
#2262
Comments
I am also experiencing the same issue: (tf2onnx310) bambam@LAPTOP-I50CAR6D:/mnt/c/ASG/PersonalizedSpeechEnhancement$ python -m tf2onnx.convert --saved-model ../ModelWeights/tf2_v23_SavedModelCPU/ |
Getting the same error: Traceback (most recent call last): Is this a version issue? |
|
same issue. tried to export a image classification model on hugging face to onnx. will try tensorflow.js next. 2023-10-29 21:02:04.427028: E tensorflow/compiler/xla/stream_executor/cuda/cuda_dnn.cc:9342] Unable to register cuDNN factory: Attempting to register factory for plugin cuDNN when one has already been registered All the layers of TFViTForImageClassification were initialized from the model checkpoint at ericrong888/logo_classifier. |
Please don't use ONNX 1.15 and try a lower version. |
Please don't use ONNX 1.15 and try a lower version. |
How? Please give me the command line to install a new one. |
pip install onnx==1.14.1 worked |
Installing tf2onnx via pip will install onnx:1.15.0. You can verify that by running |
Yes, I used Tensorflow version 2.11 with tf2onnx version 1.14.0 and the export works! |
Thanks all! I did it! |
Describe the bug
Hi, I got this error when trying to convert my tensorflow model to onnx. I tried all the opset values but no one worked.
Urgent
I need this one as soon as possible, before November 8th, so please help me.
To Reproduce
I'm building a model to classify emotion with Convolution2D and Sequential api.
Here is link to the colab notebook.
https://colab.research.google.com/drive/1VdcubIhxcjQU79qFgqy8AObnp6dwZ59h?usp=sharing
Note that you need to upload kaggle.json file to download dataset and reproduce the resultls. Here:
kaggle.json
Screenshots
The text was updated successfully, but these errors were encountered: