Skip to content

Commit

Permalink
Rename
Browse files Browse the repository at this point in the history
  • Loading branch information
Giuseppe5 committed Jan 22, 2024
1 parent ad73e6d commit bd93af1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/brevitas_examples/common/generative/quantizers.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def reshaped_scaling_shape(module):
block_size = None


class ActDynamicProxyMixin(ExtendedInjector):
class DynamicActProxyMixin(ExtendedInjector):
proxy_class = DynamicActQuantProxyFromInjector


Expand Down Expand Up @@ -123,7 +123,7 @@ class ShiftedUint8ActPerRowFloatMSE(ShiftedUint8ActPerTensorFloatMSE):
scaling_per_output_channel = True


class Int8ActDynamicPerTensorFloat(ActDynamicProxyMixin, Int8ActPerTensorFloat):
class Int8DynamicActPerTensorFloat(DynamicActProxyMixin, Int8ActPerTensorFloat):
"""
Symmetric quantizer with per tensor dynamic scale.
"""
Expand All @@ -133,7 +133,7 @@ class Int8ActDynamicPerTensorFloat(ActDynamicProxyMixin, Int8ActPerTensorFloat):
dynamic_scaling_broadcastable_shape = this.scaling_shape


class Int8ActDynamicPerRowFloat(ActDynamicProxyMixin, Int8ActPerRowFloat):
class Int8DynamicActPerRowFloat(DynamicActProxyMixin, Int8ActPerRowFloat):
"""
Symmetric quantizer with per row dynamic scale.
"""
Expand All @@ -142,7 +142,7 @@ class Int8ActDynamicPerRowFloat(ActDynamicProxyMixin, Int8ActPerRowFloat):
scaling_stats_op = 'min_max'


class Int8ActDynamicPerGroupFloat(ActDynamicProxyMixin, Int8ActPerRowFloat):
class Int8DynamicActPerGroupFloat(DynamicActProxyMixin, Int8ActPerRowFloat):
"""
Symmetric quantizer with per group scale.
"""
Expand All @@ -155,7 +155,7 @@ def stats_reduce_dim(group_dim):
return group_dim + 1


class ShiftedUint8ActDynamicPerTensorFloat(ActDynamicProxyMixin, ShiftedUint8ActPerTensorFloat):
class ShiftedUint8DynamicActPerTensorFloat(DynamicActProxyMixin, ShiftedUint8ActPerTensorFloat):
"""
Symmetric quantizer with per tensor dynamic scale.
"""
Expand Down

0 comments on commit bd93af1

Please sign in to comment.