brevitas icon indicating copy to clipboard operation
brevitas copied to clipboard

output of QuantReLU is bigger than 8

Open ardeal opened this issue 3 years ago • 1 comments

Hi,

For the following code, max_val is set to 8.0, however, I could see that the output of relu1 may be bigger than 8. why?

self.relu1 = qnn.QuantReLU(quant_type=QuantType.INT, bit_width=16,   max_val=8.0)

ardeal avatar Sep 09 '22 05:09 ardeal

Hi, That's because qnn.QuantRelU does not actually take max_val as argument, you can check the definition here

MohamedA95 avatar Sep 09 '22 06:09 MohamedA95