Skip to content

Commit 298b587

Browse files
committed
Update
1 parent 5489669 commit 298b587

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nncf/quantization/algorithms/weight_compression/algorithm.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -789,13 +789,13 @@ def get_statistic_points(
789789
statistic_container = StatisticPointsContainer()
790790
# Statistics for data aware algorithms
791791
if self._data_aware_compression:
792-
for node, output_port_id, channel_axis in nodes_and_port_ids:
792+
for node, output_port_id, input_channel_axis in nodes_and_port_ids:
793793
statistic_point = self._backend_entity.target_point(
794794
TargetType.POST_LAYER_OPERATION, node.node_name, port_id=output_port_id
795795
)
796796
# Reduce activations across all but the hidden dimension.
797797
n_dims = len(graph.get_output_edges_by_port_id(node, output_port_id)[0].tensor_shape)
798-
reduction_axes = tuple(set(range(n_dims)) - {channel_axis % n_dims})
798+
reduction_axes = tuple(set(range(n_dims)) - {input_channel_axis % n_dims})
799799
stat_collector = self._backend_entity.mean_statistic_collector(
800800
reduction_axes=reduction_axes, subset_size=self._subset_size
801801
)

0 commit comments

Comments
 (0)