Small docs fixes (#16945)

This commit is contained in:
Vitaliy Urusovskij 2023-04-14 15:14:48 +04:00 committed by GitHub
parent 2c7cbdb293
commit 04a4971481
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View File

@ -36,7 +36,7 @@ Broadcast allows to perform element-wise operation for inputs of arbitrary numbe
* `A: Shape(2, 3)` <br> * `A: Shape(2, 3)` <br>
`B: Shape( 1)` <br> `B: Shape( 1)` <br>
`Result: Shape(2, 3)` `Result: Shape(2, 3)`
* `A: Shape( 3)` <br> * `A: Shape( 3)` <br>
`B: Shape(2, 3)` <br> `B: Shape(2, 3)` <br>

View File

@ -49,7 +49,7 @@ def part1():
# Optional # Optional
# the AUTO plugin is pre-configured (globally) with the explicit option: # 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] #! [part1]
def part3(): def part3():
@ -101,10 +101,10 @@ def part6():
# read a network in IR, PaddlePaddle, or ONNX format # read a network in IR, PaddlePaddle, or ONNX format
model = core.read_model(model_path) model = core.read_model(model_path)
# compile a model on AUTO and set log level to debug # 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 # set log level with set_property and compile model
core.set_property(device_name="AUTO", properties={"LOG_LEVEL":"LOG_DEBUG"}); core.set_property(device_name="AUTO", properties={"LOG_LEVEL":"LOG_DEBUG"})
compiled_model = core.compile_model(model=model, device_name="AUTO"); compiled_model = core.compile_model(model=model, device_name="AUTO")
#! [part6] #! [part6]
def part7(): def part7():

View File

@ -38,7 +38,7 @@ ppp.input(input_name).preprocess() \
.resize(ResizeAlgorithm.RESIZE_LINEAR) \ .resize(ResizeAlgorithm.RESIZE_LINEAR) \
.mean([100.5, 101, 101.5]) \ .mean([100.5, 101, 101.5]) \
.scale([50., 51., 52.]) .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:steps]
# ! [ov:preprocess:build] # ! [ov:preprocess:build]
print(f'Dump preprocessor: {ppp}') print(f'Dump preprocessor: {ppp}')