-
Notifications
You must be signed in to change notification settings - Fork 79
Error while converting op of type: Conv. Error message: provided number axes -1 not supported
#509
Comments
Just updated the colab notebook to onnx opset 11, and Was hoping this would help. Did change the error from axes 1 to -1, but it's still there. |
Error while converting op of type: Conv. Error message: provided number axes 1 not supported
Error while converting op of type: Conv. Error message: provided number axes -1 not supported
Can reproduce |
@kossnick Can you please try converting the model using the change in PR |
The conv op in my own model is indeed converting correctly, thank you! 🙌 ❤️ I have gotten other similar axes=-1 issues elsewhere in our models (InstanceNorm2d in some scenarios and Slice in some scenarios). I've yet to find/make a simpler standalone repro for the other axis=-1 issues. Any advice on how to tackle those, or things to dig into for them? |
I Had exactly this problem with my "home made" model. Forcing the rank to be evaluated to 3 ( I tested your code and the export work perfectly, and I think it is the easiest way to handle this. @DawerG: When do you think your PR will be merged ? |
I used the change in PR #524 , now I got a new |
Yes, for Conv2D, BN and GlobalPooling, it will all get rank=-1 error. Need to modify all these 3 source code. |
related with c36bfef ? |
May be the source of the problem. But I don't know if the previous implementation ( |
Also saw this issue for |
🐞Describe the bug
In converting the PyTorch pretrained Progressive GAN model to CoreML (https://pytorch.org/hub/facebookresearch_pytorch-gan-zoo_pgan/), I am encountering a fatal error in the onnx to coreml conversion step. See below for the trace and a simple end-to-end script that goes from PyTorch to CoreML that reproduces the issue both locally and in a Google Colab notebook environment.
Trace
This is the output from my conversion script, with the final part being the CoreML crash.
To Reproduce
This below script will pull the pretrained model, convert to onnx and from onnx convert to coreml. You can also use this directly on a colab notebook that also reproduces the issue: https://colab.research.google.com/drive/126k3OL3378IiNPO8NmFHuPq2BhwKb404#scrollTo=kE8VYX3n4-14.
The onnx model correctly output from the above script is available to download here, if that helps in reproducing: https://drive.google.com/file/d/1ILLDBo2xXdsgaaf-Q_jilKFgTehNOVst/view?usp=sharing.
Here is also attached an exported environment.yml file for my conda environment which locally also has the same issue.
Diagram (too big a network to view in one frame):
System environment:
The text was updated successfully, but these errors were encountered: