Xilinx / QNN-MO-PYNQ

BSD 3-Clause "New" or "Revised" License
241 stars 114 forks source link

Question on the output activation #47

Closed toannv123 closed 5 years ago

toannv123 commented 5 years ago

Hello,

I don't understand why for the network W1A3, the output activation is 3-bit wide, the accumulated value (stored in the macRegisters) is compared with 5 (=3*2-1) thresholds read from the threshold memory. Can you explain me this case?

Many thanks!

giuliogamba commented 5 years ago

Hi,

it's actually 2^3-1=7 thresholds. That's the amount of thresholds you need to allow 8 output possible values (represented in 3 bit). Hope this clarifies your doubt.

toannv123 commented 5 years ago

Ok, thank you so much.