From b8b0dee860df1eaede23cd1b5f1ffe98652e4c34 Mon Sep 17 00:00:00 2001 From: Alexander Dokuchaev Date: Fri, 8 Nov 2024 11:43:55 +0200 Subject: [PATCH] Fix deprecation warning (#3067) ### Changes Use raw string for docstring with `\` ### Reason for changes ``` nncf/quantization/algorithms/weight_compression/backend.py:165 /home/runner/work/nncf/nncf/nncf/quantization/algorithms/weight_compression/backend.py:165: DeprecationWarning: invalid escape sequence '\ ' """ ``` --- nncf/quantization/algorithms/weight_compression/backend.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nncf/quantization/algorithms/weight_compression/backend.py b/nncf/quantization/algorithms/weight_compression/backend.py index 357542be6aa..eeda65a5bd7 100644 --- a/nncf/quantization/algorithms/weight_compression/backend.py +++ b/nncf/quantization/algorithms/weight_compression/backend.py @@ -162,7 +162,7 @@ def transform_model( def insert_adapters( self, wc_params: WeightCompressionParameters, lora_A: Tensor, lora_B: Tensor, int8_lora: bool ) -> None: - """ + r""" Expands a model's execution graph following the Low-Rank Adaptation (LoRA) concept. It inserts two additional Linear layers with weight matrices of low rank that are executed in parallel to the