Full parallel MLP using FINN? #1190
-
Dear FINN community, I am trying to use finn for a very small MLP that would process 3 or 4 components every clock cycles. Like 20 neurons on the first layer and 8 on the second. I would like to not have the inputs given sequentially to each layer but rather have all layers pipelined and processing in parallel the inputs of the preceding layer. I am struggling to find the right configuration of FINN to reach my goal. Is it even possible? The goal would be to have a very efficient MLP in terms of throughput (1 sample per clock cycle), and reuse the great work you have been doing. Thank you for your support, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi @JCastelli326, If you are dealing with a very small MLP, LogicNets could also be an interesting project for you. |
Beta Was this translation helpful? Give feedback.
Hi @fanfeum,
We have a great tutorial on manual folding here: https://github.com/Xilinx/finn/blob/dev/notebooks/advanced/3_folding.ipynb
And you can also have a look at the advanced builder settings tutorial, which shows how to pass the folding configuration with a json file: https://github.com/Xilinx/finn/blob/dev/notebooks/advanced/4_advanced_builder_settings.ipynb