Matlab ONNX file uses IR version 7 but i have ONNX file with IR version 8

66 views (last 30 days)
Would appreciate the help , i keep getting the following error when trying to import an ONNX model
ONNX operator set 17 is not supported.
Does anyone know when matlab will support this ? or there is a way around it ?
i am using matlab version R2022b

Accepted Answer

Sivylla Paraskevopoulou
Sivylla Paraskevopoulou on 7 Apr 2023
The ONNX importer supports ONNX operator sets 6 to 14 (same in R2023a and R2022b). For more information, see importONNXNetwork limitations.
You can try to change the ONNX version by following the instructions here.
  1 Comment
Mads
Mads on 13 Feb 2024
I'm getting the same error in R2023b (opset 17 vs 14), plus ONNX version 7 vs 6. What is the current status of updating matlab to keeping up with pytorch? I have also tried to trace and store the pytorch network as a *.pt file, only to find that matlab can't import it proper because it needs an imageinputlayer that I should add, only to find that imageinputlayer can take the input size the pytorch net used.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!