* [GNA] Update documentation (release) (#10873)
* parent 5f755d5e4a
author Nadezhda Ageeva <nadezhda.ageeva@intel.com> 1646919359 +0300
committer Nadezhda Ageeva <nadezhda.ageeva@intel.com> 1647270928 +0300
[GNA] Updte documentation (release)
Update docs/OV_Runtime_UG/supported_plugins/GNA.md
Co-authored-by: Denis Orlov <denis.orlov@intel.com>
Update docs/OV_Runtime_UG/supported_plugins/GNA.md
Co-authored-by: Denis Orlov <denis.orlov@intel.com>
Update docs/OV_Runtime_UG/supported_plugins/GNA.md
Co-authored-by: Denis Orlov <denis.orlov@intel.com>
Update docs/OV_Runtime_UG/supported_plugins/GNA.md
Co-authored-by: Denis Orlov <denis.orlov@intel.com>
Apply comments
Move snippets to separate file
Add notes about POT and 2d convolutions
* Add lins to GNA setup
* cleanup after rebase
* [GNA] small docs fixes (#10959)
* [GNA] small docs fixes
* Update docs/OV_Runtime_UG/supported_plugins/GNA.md
Co-authored-by: Victoria Yashina <victoria.yashina@intel.com>
* Update docs/OV_Runtime_UG/supported_plugins/GNA.md
Co-authored-by: Victoria Yashina <victoria.yashina@intel.com>
* Update docs/OV_Runtime_UG/supported_plugins/GNA.md
Co-authored-by: Victoria Yashina <victoria.yashina@intel.com>
Co-authored-by: Victoria Yashina <victoria.yashina@intel.com>
Co-authored-by: Victoria Yashina <victoria.yashina@intel.com>
27 lines
650 B
Python
27 lines
650 B
Python
# Copyright (C) 2022 Intel Corporation
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
#! [import]
|
|
from openvino.runtime import Core, set_batch
|
|
from openvino.preprocess import PrePostProcessor
|
|
#! [import]
|
|
|
|
model_path = "model.xml"
|
|
batch_size = 8
|
|
|
|
#! [ov_gna_read_model]
|
|
core = Core()
|
|
model = core.read_model(model=model_path)
|
|
#! [ov_gna_read_model]
|
|
|
|
#! [ov_gna_set_nc_layout]
|
|
ppp = PrePostProcessor(model)
|
|
for i in range(len(model.inputs)):
|
|
input_name = model.input(i).get_any_name()
|
|
ppp.input(i).model().set_layout("N?")
|
|
model = ppp.build()
|
|
#! [ov_gna_set_nc_layout]
|
|
|
|
#! [ov_gna_set_batch_size]
|
|
set_batch(model, batch_size)
|
|
#! [ov_gna_set_batch_size] |