Closed ChristiaanBoe closed 1 year ago
Hi @ChristiaanBoe ,
FINN works on 4D tensors (N,C,H,W) or later in the flow (N,H,W,C), so when working with 1d convolutions, you need to add a dummy dimension to get it through the flow: https://github.com/fastmachinelearning/qonnx/blob/main/src/qonnx/transformation/change_3d_tensors_to_4d.py
Hello everyone I have been trying to implement a simple 3-layer neural network consisting of a quantlinear, a fully connected layer and a 1 dimensional 1-d convolutional layer as shown below: ONNX files.zip
I converted this towards a qonnx model and then using the qonnx_cleanup and the ConvertQONNXtoFINN towards a finn model as shown n the code below and in the attached onnx files. export_qonnx(fullModel_alt, torch.randn(1, 1024), export_path='Test_all_alt.onnx')
When running this through the automated buildataflow I get the following error on lower_convs_to_matmul.py
Using the following code:
What could the problem be with my model?
The first thing that comes to mind is that my convolutional layer has a kernel twice the size as the output channel.
Thank you in advance for the help