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

fixed point bug fix

parent 84146563
Branches
No related tags found
No related merge requests found
No preview for this file type
...@@ -132,7 +132,7 @@ class FixedPointQuantizer(Quantizer): ...@@ -132,7 +132,7 @@ class FixedPointQuantizer(Quantizer):
if int_max>1: if int_max>1:
int_part_size = ceil(log(int_max)/log(2))+int(self.signed) int_part_size = ceil(log(int_max)/log(2))+int(self.signed)
else: else:
int_part_size = int_max int_part_size = int_max+int(self.signed)
if self.bitwidth==-1: if self.bitwidth==-1:
self.bitwidth = int_part_size+self.fixed_point 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