Files
openvino/docs/snippets/cpu/dynamic_shape.py
Alexey Lebedev 83321da639 [docs] python snippets for devices (#11174)
* Update CPU docs

* update GPU docs

* update with sphinxtab

* Fix docs

* Add preprocessig snippet

* Fix path
2022-03-24 15:04:40 +03:00

18 lines
387 B
Python

# Copyright (C) 2022 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
from openvino.runtime import Core
#! [defined_upper_bound]
core = Core()
model = core.read_model("model.xml")
model.reshape([(1, 10), (1, 20), (1, 30), (1, 40)])
#! [defined_upper_bound]
#! [static_shape]
core = Core()
model = core.read_model("model.xml")
model.reshape([10, 20, 30, 40])
#! [static_shape]