From aced89a6551c1fc9ede0debcb97978923bd8f3ee Mon Sep 17 00:00:00 2001 From: Indira Salyahova Date: Tue, 22 Feb 2022 16:53:53 +0300 Subject: [PATCH] fix: don't pass parametr inplace_statistic for weights (#10593) --- tools/pot/openvino/tools/pot/algorithms/quantization/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/pot/openvino/tools/pot/algorithms/quantization/utils.py b/tools/pot/openvino/tools/pot/algorithms/quantization/utils.py index 365dc814347..94bf92e6009 100644 --- a/tools/pot/openvino/tools/pot/algorithms/quantization/utils.py +++ b/tools/pot/openvino/tools/pot/algorithms/quantization/utils.py @@ -293,7 +293,8 @@ def get_tensor_statistics(range_estimator_config, for_weights, **kwargs): stat_mod_name = get_stat_name_by_config(range_estimator_config, stats_name) if fn_type in ['quantile', 'abs_quantile']: q_value = range_estimator_config[stats_name]['outlier_prob'] - ts_args['inplace_statistics'] = False + if not for_weights: + ts_args['inplace_statistics'] = False if stats_name == 'max': q_value = 1 - q_value ts_args.update({'q': q_value})