Skip to content

Commit

Permalink
Fix deprecation warning (#3067)
Browse files Browse the repository at this point in the history
### 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 '\ '
    """
```
  • Loading branch information
AlexanderDokuchaev authored Nov 8, 2024
1 parent 8ff96f3 commit b8b0dee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nncf/quantization/algorithms/weight_compression/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b8b0dee

Please sign in to comment.