Skip to content

Commit

Permalink
exp: move from round to truncate
Browse files Browse the repository at this point in the history
  • Loading branch information
fd0r committed Feb 6, 2024
1 parent 09ad7a6 commit 6df9a92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/concrete/ml/quantization/base_quantized_op.py
Original file line number Diff line number Diff line change
Expand Up @@ -979,6 +979,6 @@ def cnp_round(
assert isinstance(lsbs_value, int)

if lsbs_value > 0:
x = fhe.round_bit_pattern(x, lsbs_to_remove=lsbs_value)
x = fhe.truncate_bit_pattern(x, lsbs_to_remove=lsbs_value)

return x

0 comments on commit 6df9a92

Please sign in to comment.