Small docs fixes (#16945)
This commit is contained in:
parent
2c7cbdb293
commit
04a4971481
@ -36,7 +36,7 @@ Broadcast allows to perform element-wise operation for inputs of arbitrary numbe
|
||||
|
||||
* `A: Shape(2, 3)` <br>
|
||||
`B: Shape( 1)` <br>
|
||||
`Result: Shape(2, 3)`
|
||||
`Result: Shape(2, 3)`
|
||||
|
||||
* `A: Shape( 3)` <br>
|
||||
`B: Shape(2, 3)` <br>
|
||||
|
@ -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():
|
||||
|
@ -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}')
|
||||
|
Loading…
Reference in New Issue
Block a user