From 04a4971481e3e29563ff2eb100035a843c869d3a Mon Sep 17 00:00:00 2001 From: Vitaliy Urusovskij Date: Fri, 14 Apr 2023 15:14:48 +0400 Subject: [PATCH] Small docs fixes (#16945) --- docs/ops/broadcast_rules.md | 2 +- docs/snippets/ov_auto.py | 8 ++++---- docs/snippets/ov_preprocessing.py | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/ops/broadcast_rules.md b/docs/ops/broadcast_rules.md index 3490fae3713..54d9a7ee5b9 100644 --- a/docs/ops/broadcast_rules.md +++ b/docs/ops/broadcast_rules.md @@ -36,7 +36,7 @@ Broadcast allows to perform element-wise operation for inputs of arbitrary numbe * `A: Shape(2, 3)`
`B: Shape( 1)`
- `Result: Shape(2, 3)` + `Result: Shape(2, 3)` * `A: Shape( 3)`
`B: Shape(2, 3)`
diff --git a/docs/snippets/ov_auto.py b/docs/snippets/ov_auto.py index 4f02a6f5c9a..9ad3163c4eb 100644 --- a/docs/snippets/ov_auto.py +++ b/docs/snippets/ov_auto.py @@ -49,7 +49,7 @@ def part1(): # Optional # the AUTO plugin is pre-configured (globally) with the explicit option: - ie.set_config(config={"MULTI_DEVICE_PRIORITIES":"GPU,CPU"}, device_name="AUTO"); + ie.set_config(config={"MULTI_DEVICE_PRIORITIES":"GPU,CPU"}, device_name="AUTO") #! [part1] def part3(): @@ -101,10 +101,10 @@ def part6(): # read a network in IR, PaddlePaddle, or ONNX format model = core.read_model(model_path) # compile a model on AUTO and set log level to debug - compiled_model = core.compile_model(model=model, device_name="AUTO", config={"LOG_LEVEL":"LOG_DEBUG"}); + compiled_model = core.compile_model(model=model, device_name="AUTO", config={"LOG_LEVEL":"LOG_DEBUG"}) # set log level with set_property and compile model - core.set_property(device_name="AUTO", properties={"LOG_LEVEL":"LOG_DEBUG"}); - compiled_model = core.compile_model(model=model, device_name="AUTO"); + core.set_property(device_name="AUTO", properties={"LOG_LEVEL":"LOG_DEBUG"}) + compiled_model = core.compile_model(model=model, device_name="AUTO") #! [part6] def part7(): diff --git a/docs/snippets/ov_preprocessing.py b/docs/snippets/ov_preprocessing.py index 8cfda53554c..45229d37a34 100644 --- a/docs/snippets/ov_preprocessing.py +++ b/docs/snippets/ov_preprocessing.py @@ -38,7 +38,7 @@ ppp.input(input_name).preprocess() \ .resize(ResizeAlgorithm.RESIZE_LINEAR) \ .mean([100.5, 101, 101.5]) \ .scale([50., 51., 52.]) -# .convert_layout(Layout('NCHW')); # Not needed, such conversion will be added implicitly +# .convert_layout(Layout('NCHW')) # Not needed, such conversion will be added implicitly # ! [ov:preprocess:steps] # ! [ov:preprocess:build] print(f'Dump preprocessor: {ppp}')