Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Giuseppe5 committed Jan 21, 2024
1 parent ef83ffb commit 2ce9fdf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 0 additions & 2 deletions src/brevitas_examples/common/generative/quantizers.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ class Int8ActDynamicPerTensorFloat(ActDynamicProxyMixin, Int8ActPerTensorFloat):
scaling_stats_input_view_shape_impl = OverTensorView
scaling_stats_op = 'min_max'
dynamic_scaling_broadcastable_shape = this.scaling_shape
stats_reduce_dim = 0


class Int8ActDynamicPerRowFloat(ActDynamicProxyMixin, Int8ActPerRowFloat):
Expand Down Expand Up @@ -165,4 +164,3 @@ class ShiftedUint8ActDynamicPerTensorFloat(ActDynamicProxyMixin, ShiftedUint8Act
scaling_stats_op = 'min_max'
zero_point_stats_impl = NegativeMinOrZero
dynamic_scaling_broadcastable_shape = this.scaling_shape
stats_reduce_dim = 0
4 changes: 3 additions & 1 deletion tests/brevitas_ort/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ class A2QWeightQuantizerForTests(Int8AccumulatorAwareWeightQuant):
'a2q': (A2QWeightQuantizerForTests, Int8ActPerTensorFloat),
'symmetric_per_tensor_fixed_point': (Int8WeightPerTensorFixedPoint, Int8ActPerTensorFixedPoint),
'symmetric_per_channel_fixed_point':
(Int8WeightPerChannelFixedPoint, Int8ActPerTensorFixedPoint)}
(Int8WeightPerChannelFixedPoint, Int8ActPerTensorFixedPoint),
'weight_symmetric_activation_dynamic_asymmetric_per_tensor_float':
(Int8WeightPerTensorFloat, ShiftedUint8ActDynamicPerTensorFloat)}
LSTM_QUANTIZERS = {
'asymmetric_per_tensor_float':
(ShiftedUint8WeightPerTensorFloat, ShiftedUint8ActPerTensorFloat),
Expand Down

0 comments on commit 2ce9fdf

Please sign in to comment.