brevitas
brevitas copied to clipboard
output of QuantReLU is bigger than 8
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)
Hi,
That's because qnn.QuantRelU does not actually take max_val as argument, you can check the definition here