Skip to content

Commit

Permalink
fix transposed
Browse files Browse the repository at this point in the history
  • Loading branch information
Giuseppe5 committed Aug 26, 2024
1 parent 8ef9010 commit b4c8cf5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/brevitas/quant/solver/parameter.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def expanded_scaling_shape(module, input_channel_dim, group_size=None):

@value
def input_channel_dim(module):
return 1 if not module.transposed else 0
return 1 if not hasattr(module, 'transposed') or not module.transposed else 0

@value
def padding(module, input_channel_dim, group_size):
Expand All @@ -151,7 +151,7 @@ def padding(module, input_channel_dim, group_size):
@value
def group_dim(module, group_size=None):
if group_size is not None:
return 1 if not module.transposed else 0
return 1 if not hasattr(module, 'transposed') or not module.transposed else 0


class SolveInputViewImpl(ExtendedInjector):
Expand Down

0 comments on commit b4c8cf5

Please sign in to comment.