Skip to content
Snippets Groups Projects
Unverified Commit d131afa7 authored by auphelia's avatar auphelia Committed by GitHub
Browse files

Merge pull request #827 from shashwat1198/feature-folding_tutorial

Adding tutorial/jupyter notebook about folding
parents 4e85d52c 7f2c7ba1
No related branches found
No related tags found
No related merge requests found
......@@ -206,6 +206,64 @@ How to set *mem_mode*
---------------------
When the nodes in the network are converted to HLS layers, the *mem_mode* can be passed. More detailed information about the transformations that prepare the network and the transformation that performs the conversion to HLS layers can be found in chapter :ref:`nw_prep`. The *mem_mode* is passed as argument. Note that if no argument is passed, the default is *const*.
.. _folding_factors:
Constraints to folding factors per layer
=========================================
.. list-table:: Folding factor constraints
* - **Layers**
- **Parameters**
- **Constraints**
* - Addstreams_Batch
- PE
- inp_channels % PE == 0
* - ChannelwiseOp_Batch
- PE
- channels % PE == 0
* - ConvolutionInputGenerator
- SIMD
- inp_channels % SIMD == 0
* - ConvolutionInputGenerator1d
- SIMD
- inp_channels % SIMD == 0
* - Downsampler
- SIMD
- inp_channels % SIMD == 0
* - DuplicateStreams_Batch
- PE
- channels % PE == 0
* - Eltwise
- PE
- inp_channels % PE == 0
* - FMPadding_batch
- SIMD
- inp_channels % SIMD == 0
* - FMPadding_rtl
- SIMD
- inp_channels % SIMD == 0
* - Globalaccpool_Batch
- PE
- channels % PE == 0
* - Labelselect_Batch
- PE
- num_labels % PE == 0
* - MatrixVectorActivation
- PE & SIMD
- MH % PE == 0 & MW % SIMD == 0
* - Pool_Batch
- PE
- inp_channels % PE == 0
* - Thresholding_Batch
- PE
- MH % PE == 0
* - VectorVectorActivation
- PE & SIMD
- k_h * k_w % SIMD == 0 & channels % PE == 0
RTL ConvolutionInputGenerator
=============================
......
This diff is collapsed.
File added
notebooks/advanced/finn-dataflow.png

160 KiB

notebooks/advanced/finn-folding-mvau.png

29 KiB

notebooks/advanced/finn-folding.png

83 KiB

......@@ -21,6 +21,7 @@ advanced_notebooks = [
pytest.param(notebook_advanced_dir + "0_custom_analysis_pass.ipynb"),
pytest.param(notebook_advanced_dir + "1_custom_transformation_pass.ipynb"),
pytest.param(notebook_advanced_dir + "2_custom_op.ipynb"),
pytest.param(notebook_advanced_dir + "3_folding.ipynb"),
]
cyber_notebooks = [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment