Cannot reshape array error on the last Dense Layer #1074
-
Hi to everyone, In this one the code i used to built the bitfile doesn't work anymore, This is the code I'm using:
and this is my folding_dsp.json:
in the step_hw_ipgen [12/19] i get:
my net is structured as follows:
I also tried the method in the cnv_end2end_example.ipynb following the transformations and adapting it to my code. Here i managed to get to the following dense layer, the one with dimension 72 but i get almost the same error:
In this code a brief debug snippet was added to try to understand what is happening but the results are confusing, it gives me this output/error:
It seems that the last layer is trying to use a wrong SIMD, i tried also using 1 and 12 but nothing changes, I can't understand what is happening and the reason why the same identical process mentioned above following the simple end2end flow worked about 10 month ago and now it is completely different. Thanks in advance to everyone that can help me and thanks for the beautiful work you have done with FINN! Matteo |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi, it looks like your folding config has no effect because it refers to the old node names (e.g. "MatrixVectorActivation_0"). FINN recently underwent major refactoring for release v0.10, which introduces "specialization" of layers into See this guide for further information on how to update your build flow: #1020 |
Beta Was this translation helpful? Give feedback.
-
Thanks a lot! |
Beta Was this translation helpful? Give feedback.
Hi,
it looks like your folding config has no effect because it refers to the old node names (e.g. "MatrixVectorActivation_0"). FINN recently underwent major refactoring for release v0.10, which introduces "specialization" of layers into
_hls
and_rtl
variants to target different back-end implementations (e.g. "MVAU_hls_0" or "MVAU_rtl_0", depending on which back-end was selected by you (manually via aspecialize_layers_config_file
json) or the compiler (automatically)).See this guide for further information on how to update your build flow: #1020