-
Notifications
You must be signed in to change notification settings - Fork 299
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
NotImplementedError: BatchNormalization version 9 is not implemented. #358
Comments
I am having the same problem on |
@ikasnep are you also using PyTorch 1.0.0 ? I have the same issue having saved a model in this version of Torch with tensorflow 1.5.0 and python 2.7.5. |
Yes, PyTorch 1.0.0 |
Yes , |
Hi, I've noticed this issue and will provide a patch to resolve in either this weekend or early next week. |
@tjingrant any updates on this... |
@shridharkini6 it's in for review (#361), should be checked in soon. |
@tjingrant thank you for the fix, is it possible to fix also Cast version 9 is not implemented.? |
@davidenitti sure thing. Would you create another issue for tracking purpose? |
sure @tjingrant , I made it here #362 |
Tried the tip of master, and it works! |
hey! what did you do? I've got the same problem. |
hey! what did you do? I've got the same problem. |
I had the same problem, managed to fix it by installing from source (the fix probably isn't on pip yet). To do this:
|
Describe the bug
I got an error when converting a model to TensorFlow.
To Reproduce
What I am doing is:
A PyTorch model is converted to ONNX model (PyTorch version is 1.0.0 GPU version):
torch.onnx.export(model, img, "model.onnx", verbose=True)
Loaded the ONNX model and verified it:
onnx.checker.check_model(model)
ONNX model is converted to TensorFlow model:
onnx-tf convert -t tf -i model.onnx -o model.pb
The error message is:
NotImplementedError: BatchNormalization version 9 is not implemented.
ONNX model file
Can't share the model.
Python, ONNX, ONNX-TF, Tensorflow version
Python version:
2.7.15
ONNX version:
1.3.0, pulled today and built from source
ONNX-TF version:
1.2.1, pip install onnx-tf
Tensorflow version:
1.12.0, GPU version
The text was updated successfully, but these errors were encountered: