Closed AnouarITI closed 1 year ago
@AnouarITI I am able to reproduce your error, but I am very confused about your model.
You seem to be treating a 1024-length time series as a 1024x1 image and applying Conv2D
, when I think you should be applying Conv1D
. Mathematically it should be equivalent, but maybe there's some issue with image widths/heights of size 1 in hls4ml.
Also, is there a reason you're doing two rounds of average pooling (to basically average over the entire time series) and then a flatten, instead of a single global average pooling?
Not sure if it works yet, but here are my suggestions: https://gist.github.com/jmduarte/122d705236844d0c40165ab278dd11a2
@AnouarITI, I see if I try the model, I get the "large loop unroll" issue which is really an HLS limitation.
So, I would try to increase the reuse factor and use "resource" strategy. So, I updated the gist: https://gist.github.com/jmduarte/122d705236844d0c40165ab278dd11a2
I am trying to create an IP for my model using hls4ml. Here is my CNN code :
However whenever I try to build the project with hls4ml I always get an error as follows: