Skip to content

Commit

Permalink
Trunc fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Giuseppe5 committed Dec 31, 2024
1 parent bfaad2c commit 2ec8416
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/brevitas/core/quant/int.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,6 @@ def forward(self, x: Tensor, scale: Tensor, zero_point: Tensor,
trunc_scale = 2.0 ** trunc_bit_width
y = y / trunc_scale
y = self.float_to_int_impl(y)
y = y - zero_point
y = y * scale
return y, scale, zero_point, output_bit_width


Expand Down

0 comments on commit 2ec8416

Please sign in to comment.