Xilinx / finn

Dataflow compiler for QNN inference on FPGAs
https://xilinx.github.io/finn
BSD 3-Clause "New" or "Revised" License
681 stars 218 forks source link

Read data from numpy file to hls::vector #1046

Closed vopade closed 2 months ago

vopade commented 2 months ago

Details

New behavior

Add helper function so that data from a numpy files can be read directly into an hls::vector (and vice versa) instead of packing it into a large ap_uint.

Motivation

Using hls::vector facilitates the introduction of new datatypes and also simplifies the code.

Parts of FINN affected

src/finn/qnn-data/cpp

auphelia commented 2 months ago

https://github.com/Xilinx/finn/pull/1047 merged