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 7, 2024
1 parent 84c4309 commit 2e273bf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/brevitas/export/common/handler/qcdq.py
Original file line number Diff line number Diff line change
Expand Up @@ -796,6 +796,7 @@ def symbolic_execution(
flat_pre_scale = to_0dim_if_scalar(pre_scale.flatten())
flat_scale = to_0dim_if_scalar(scale.flatten())
zp = to_0dim_if_scalar(zero_point.flatten()).expand_as(flat_scale)
zp = self.zero_point_with_dtype(signed, output_bit_width, zp)
x = self.quantize_fn(x, flat_pre_scale, zp, dtype, self.quant_axis(pre_scale))
clip_symbolic_kwargs = self.int_clip_symbolic_kwargs(
signed=signed, narrow=False, bit_width=output_bit_width)
Expand Down

0 comments on commit 2e273bf

Please sign in to comment.