Skip to content

Commit

Permalink
Fix rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
daniil-lyakhov committed Nov 14, 2023
1 parent 7744955 commit 472007d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nncf/quantization/algorithms/smooth_quant/algorithm.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,9 @@ def _process_weight_statistics(self, node: NNCFNode, weights: TTensor, port_id:
channel_axis = 0
if len(weights.shape) > 1:
channel_axis = self._backend_entity.get_weight_channel_axis(node)
return self._backend_entity.process_weight_statistics(weights, channel_axis)
reduction_shape = [i for i, _ in enumerate(weights.shape)]
reduction_shape.pop(channel_axis)
return self._backend_entity.process_weight_statistics(weights, tuple(reduction_shape))

def _create_scale_node_name(self, source_name: str, source_port_id: int) -> str:
"""
Expand Down

0 comments on commit 472007d

Please sign in to comment.