Skip to content

Commit

Permalink
fix avgpool export
Browse files Browse the repository at this point in the history
  • Loading branch information
Giuseppe5 committed Dec 31, 2024
1 parent 2ec8416 commit 18fee55
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/brevitas/proxy/runtime_quant.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@ def forward(self, x: IntQuantTensor) -> Union[Tensor, IntQuantTensor]:
if self.export_mode:
out_tuple = self.export_handler(
x.value, x.scale, x.zero_point, x.bit_width, x.signed)
out_value, out_scale, out_zp, out_bit_width = out_tuple
else:
out_tuple = self.tensor_quant(x.value, x.scale, x.zero_point, x.bit_width)
out_value, out_scale, out_zp, out_bit_width = out_tuple
Expand Down

0 comments on commit 18fee55

Please sign in to comment.