File tree 1 file changed +2
-2
lines changed
nncf/quantization/algorithms/weight_compression
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -789,13 +789,13 @@ def get_statistic_points(
789
789
statistic_container = StatisticPointsContainer ()
790
790
# Statistics for data aware algorithms
791
791
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 :
793
793
statistic_point = self ._backend_entity .target_point (
794
794
TargetType .POST_LAYER_OPERATION , node .node_name , port_id = output_port_id
795
795
)
796
796
# Reduce activations across all but the hidden dimension.
797
797
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 })
799
799
stat_collector = self ._backend_entity .mean_statistic_collector (
800
800
reduction_axes = reduction_axes , subset_size = self ._subset_size
801
801
)
You can’t perform that action at this time.
0 commit comments