-
Hello everyone, I trained a model through brevitas and exported the onnx file to FINN. However, when I generated the onnx file with FINN, I met the following error in the step tidy: "
The code I use to export the onnx file from brevitas is Does anyone know what this problem may relate to? Thank you in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
It seems like a version problem. If I use brevitas==0.7.1, torch==1.8.2, torchvision==0.9.2, onnx==1.11.0,onnxoptimizer==0.2.0 and use code bo.export_finn_onnx(model.module.cpu(), (1,3,224,224),'./xxx.onnx') to export and it works. I am considering it as a torch version problem. I will try whether a higher version of brevitas and onnx works or not. |
Beta Was this translation helpful? Give feedback.
It seems like a version problem. If I use brevitas==0.7.1, torch==1.8.2, torchvision==0.9.2, onnx==1.11.0,onnxoptimizer==0.2.0 and use code bo.export_finn_onnx(model.module.cpu(), (1,3,224,224),'./xxx.onnx') to export and it works. I am considering it as a torch version problem. I will try whether a higher version of brevitas and onnx works or not.