From 0c7129366fc080af801dba8b67989cf8fa753232 Mon Sep 17 00:00:00 2001 From: chenbohua3 Date: Mon, 12 Jul 2021 19:12:58 +0800 Subject: [PATCH] fix linter --- nni/algorithms/compression/pytorch/quantization/quantizers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nni/algorithms/compression/pytorch/quantization/quantizers.py b/nni/algorithms/compression/pytorch/quantization/quantizers.py index b0dc88c7eca..3b5c0ac7520 100644 --- a/nni/algorithms/compression/pytorch/quantization/quantizers.py +++ b/nni/algorithms/compression/pytorch/quantization/quantizers.py @@ -343,8 +343,8 @@ def export_model(self, model_path, calibration_path=None, onnx_path=None, input_ if hasattr(module, BN_FOLD_TAG): actual_weight = getattr(module, 'old_weight', None) if actual_weight is None: - logger.warning("Can not recover weight for layer {}. " - "This may lead to a wrong accuracy performance on the backend.".format(name)) + logger.warning("Can not recover weight for layer %s. " + "This may lead to a wrong accuracy performance on the backend.", name) delattr(module, 'weight') module.register_parameter('weight', actual_weight)