Replies: 1 comment 2 replies
-
Hi Meng, Could you send the onnx file you obtain just before you perform the transformation where you get the error? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone,
I have noticed that I get the following error when running the infer_shapes transform:
File "/workspace/qonnx/src/qonnx/transformation/infer_shapes.py", line 88, in apply model = ModelWrapper(si.infer_shapes(model.model)) File "/opt/conda/lib/python3.8/site-packages/onnx/shape_inference.py", line 41, in infer_shapes inferred_model_str = C.infer_shapes(model_str, check_type, strict_mode, data_prop) onnx.onnx_cpp2py_export.shape_inference.InferenceError: [ShapeInferenceError] (op_type:Transpose, node name: Transpose_7): [ShapeInferenceError] Inferred shape and existing shape differ in dimension 2: (64) vs (56)
Looking at my original ONNX Resnet 18 model I do not understand whether this problem lies with my ONNX model or whether there is a problem with the qonnx import.. For the sake of clarity I have attached my model.
Any help would be very much appreciated.
Kind regards,
Meng Fei
resnet18_img_t.zip
Beta Was this translation helpful? Give feedback.
All reactions