Skip to content

Commit 045c5c1

Browse files
Fix DeprecationWarning: invalid escape sequence '\ ' in docstrings (#3282)
### Changes As in the title
1 parent 9b5574c commit 045c5c1

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

nncf/experimental/torch/fx/transformations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,7 @@ def fq_weights_transformation(model: torch.fx.GraphModule) -> None:
688688

689689

690690
def compress_post_quantize_transformation(model: torch.fx.GraphModule) -> None:
691-
"""
691+
r"""
692692
Applies transformation to compress the weights to Int8 after the quantization step.
693693
Starts by removing the Quantize/De-Quantize nodes for weight nodes by matching the pattern
694694
to be like follows:

nncf/openvino/graph/model_builder.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,14 @@ def _collect_graph_nodes(
5959
output_ids: List[Tuple[str, int]],
6060
node_mapping: Dict[str, ov.Node],
6161
) -> List[ov.Node]:
62-
"""
62+
r"""
6363
A method for aggregating layers to be further cloned.
6464
Aggregation is designed in such a way that layers are listed from right to left,
6565
as they pass from bottom to top. This is done in order to find all constants in the model and
6666
to start graph creation from them (as well as Parameter layers), because
6767
OpenVINO graph is created from top-down and cannot be created otherwise.
6868
69-
Legend: w - weigths, c - convert, il/ih - input low/high, ol/oh - output low/high
69+
Legend: w - weights, c - convert, il/ih - input low/high, ol/oh - output low/high
7070
(w)
7171
|
7272
(c) (il) (ih) (ol) (oh)
@@ -115,11 +115,11 @@ def build(
115115
output_ids: List[Tuple[str, int]],
116116
node_mapping: Dict[str, ov.Node],
117117
) -> ov.Model:
118-
"""
118+
r"""
119119
The basic method of the algorithm. This method uses an aggregated list of layers to be recreated.
120120
Let us take a graph of this kind as an example:
121121
122-
Legend: w - weigths, c - convert, il/ih - input low/high, ol/oh - output low/high
122+
Legend: w - weights, c - convert, il/ih - input low/high, ol/oh - output low/high
123123
(w)
124124
|
125125
(c) (il) (ih) (ol) (oh)

0 commit comments

Comments
 (0)