Skip to content

[Python API] add new api #8149

Merged
akuporos merged 46 commits intoopenvinotoolkit:masterfrom
akuporos:develop/new-python-api
Nov 12, 2021
Merged

[Python API] add new api #8149
akuporos merged 46 commits intoopenvinotoolkit:masterfrom
akuporos:develop/new-python-api

Conversation

@akuporos
Copy link
Copy Markdown
Contributor

@akuporos akuporos commented Oct 21, 2021

Details:

  • bind Core class:
    • available_devices
    • query_model()
    • unload_plugin()
    • register_plugins()
    • register_plugin()
    • get_metric()
    • get_config()
    • import_model()
    • set_config()
    • compile_model()
    • get_versions()
    • read_model()
  • bind ExecutableNetwork class
    • infer_new_request()
    • get_config()
    • get_metric()
    • create_infer_request()
    • get_runtime_function()
    • export_model()
    • output()
    • outputs
    • input()
    • inputs
  • bind InferRequest class
    • input_tensors
    • output_tensors
    • latency
    • profiling_info
    • set_output_tensor()
    • set_input_tensor()
    • set_tensor()
    • get_tensor()
    • set_tensors()
    • set_output_tensors()
    • set_input_tensors()
    • infer()
    • start_async()
    • wait()
    • wait_for()
    • cancel()
    • set_callback()
  • added bindging to Function class
    • reshape()
    • input()
    • inputs
    • output()
    • outputs()
  • bind const Node Outputs class
  • PR for FE: [PYTHON API] move frontend bindings to pyopenvino + move MO to use new Python API #8301

Tickets:

  • ticket-id

@akuporos akuporos requested a review from a team October 21, 2021 14:05
@akuporos akuporos changed the title Bind exec core ov (#50) [Python API] add new api + move FE Oct 21, 2021
@akuporos akuporos added category: Python API OpenVINO Python bindings do not merge labels Oct 21, 2021
@akuporos akuporos added this to the 2022.1 milestone Oct 21, 2021
@akuporos akuporos requested a review from jiwaszki October 21, 2021 14:13
@openvino-pushbot openvino-pushbot added the category: inference OpenVINO Runtime library - Inference label Oct 21, 2021
@akuporos akuporos requested review from a team and AlexeyLebedev1 October 22, 2021 10:40
@akuporos akuporos requested a review from a team as a code owner October 22, 2021 12:51
@akuporos akuporos requested a review from a team October 22, 2021 12:51
@akuporos akuporos requested review from a team as code owners October 22, 2021 12:51
@akuporos akuporos requested review from a team October 22, 2021 12:51
@akuporos akuporos requested a review from a team as a code owner October 22, 2021 12:51
@akuporos akuporos requested review from avladimi and removed request for a team and avladimi October 22, 2021 12:51
@akuporos akuporos force-pushed the develop/new-python-api branch from 0ee198a to d47f7b1 Compare October 22, 2021 12:56
@akuporos akuporos requested a review from a team October 26, 2021 11:11
@akuporos akuporos added category: CPU OpenVINO CPU plugin and removed do not merge labels Nov 8, 2021
akuporos and others added 20 commits November 8, 2021 11:49
* fix conflicts, add infer_new_request function

* remove redundant functions, fix style

* revert the unwanted changes

* revert removal of the Blob

* revert removal of isTblob
* Updated common migration pipeline

* Fixed merge issue

* Added new model and extended example

* Fixed typo

* Added v10-v11 comparison
* del MO_ROOT

* del MO_ROOT from common_utils.py

* add MO_PATH to common_utils.py

* change mo_path
* Use cmake to build samples

* Add the option to set custom build output folder
* [GPU] OneDNN gpu submodule update to version 2.5

* [GPU] Updated onednn submodule and added layout optimizer fix
* Proper cmake install for static libraries case

* Added an ability to skip template plugin

* Added install rules for VPU / GPU

* Install more libraries

* Fixed absolute TBB include paths

* Disable GNA

* Fixed issue with linker

* Some fixes

* Fixed linkage issues in tests

* Disabled some tests

* Updated CI pipelines

* Fixed Windows linkage

* Fixed custom_opset test for static casr

* Fixed CVS-70313

* Continue on error

* Fixed clanf-format

* Try to fix Windows linker

* Fixed compilation

* Disable samples

* Fixed samples build with THREADING=SEQ

* Fixed link error on Windows

* Fixed ieFuncTests

* Added static Azure CI

* Revert "Fixed link error on Windows"

This reverts commit 78cca36.

* Merge static and dynamic linux pipelines

* Fixed Azure
: MemoryDescUtils::convertToTensorDesc(desc);
const auto &tensorDesc = data->getTensorDesc();
if (expectedTensorDesc.getPrecision() != tensorDesc.getPrecision()) {
if (expectedTensorDesc.getPrecision() != normalizeToSupportedPrecision(tensorDesc.getPrecision())) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jiwaszki Could you clarify which tests or use-cases require this change?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one test fails without this change: tests/test_onnx/test_zoo_models.py::OnnxBackendModelExecutionTest::test_onnx_model_zoo_text_machine_comprehension_bert_squad_model_bertsquad_10_bertsquad_10_bertsquad10_cpu
https://dev.azure.com/openvinoci/dldt/_build/results?buildId=197937&view=logs&j=8e6fb299-7deb-52f1-2f4a-df91230aba00&t=f812e137-0344-51cb-e8b0-0ab752070263&l=6178

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

category: CPU OpenVINO CPU plugin category: inference OpenVINO Runtime library - Inference category: Python API OpenVINO Python bindings

Projects

None yet

Development

Successfully merging this pull request may close these issues.