Skip to content
Snippets Groups Projects
Commit edda62f2 authored by ahoni's avatar ahoni
Browse files

fixed point bug fix

parent 84146563
No related branches found
No related tags found
No related merge requests found
No preview for this file type
......@@ -132,7 +132,7 @@ class FixedPointQuantizer(Quantizer):
if int_max>1:
int_part_size = ceil(log(int_max)/log(2))+int(self.signed)
else:
int_part_size = int_max
int_part_size = int_max+int(self.signed)
if self.bitwidth==-1:
self.bitwidth = int_part_size+self.fixed_point
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment