Skip to content

Commit

Permalink
Feat (mse): use grid search for scale
Browse files Browse the repository at this point in the history
  • Loading branch information
Giuseppe5 committed Dec 3, 2024
1 parent d4e001e commit 0682b94
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/brevitas/quant/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,7 @@ class MSESymmetricScaleSubInjector(ExtendedInjector):
type = (this << 1).type
permute_dims = (this << 1).permute_dims
inner_stats_input_view_shape_impl = (this << 1).inner_stats_input_view_shape_impl
mse_search_method = 'grid'


class MSEAsymmetricScaleSubInjector(ExtendedInjector):
Expand All @@ -510,6 +511,7 @@ class MSEAsymmetricScaleSubInjector(ExtendedInjector):
dtype = (this << 1).dtype
permute_dims = (this << 1).permute_dims
inner_stats_input_view_shape_impl = (this << 1).inner_stats_input_view_shape_impl
mse_search_method = 'grid'


class MSEZeroPointSubInjector(ExtendedInjector):
Expand Down

0 comments on commit 0682b94

Please sign in to comment.