* Mk/ov pybind poc (#48)
* Move _pyngraph module to ngraph.pyngraph
* Stub for IECore and IENetwork classes
* Additional API classes
* passing test, extended functions and added blob
* worksave
* [POC Python API] Add IECore methods
* [POC Python API] Add iecore tests
* ienetwork
* ienet, input_info, dataptr
* irequest and exeecnet
* adapted benchmark
* Move _pyngraph module to ngraph.pyngraph
* Stub for IECore and IENetwork classes
* Additional API classes
* passing test, extended functions and added blob
* worksave
* [POC Python API] Add IECore methods
* [POC Python API] Add iecore tests
* ienetwork
* ienet, input_info, dataptr
* irequest and exeecnet
* adapted benchmark
* Added suport for InputInfo bindings
* Add Blob support for different types
* fix typo
* Fixed InputInfo maps
* Add keys() to inputs maps
* add uint8 blob
* return read_network as it should be
* return read_network as it should be
* fix blob buffer
* remove const input_info files and fix codestyle
* add mode parameter in benchmark app
* return _pyngraph
* delete benchmark copy
* return pyngraph as in master
* fix benchmark working
* add comment with api which need to implement
* remove unnecessary code from benchmark
* remove hardcoded path from setup.py
* Rename vars in setup.py
* working wheel
* fix wheel building
* Revert "working wheel"
This reverts commit 11d03a1833.
* fix tests
* Added async infer
* pass by ref
* add ccompiler to requirements
* fix blob creation and view
* replace abscent method with working code in benchmark
* fix building
* worksave
* worksave queue
* no-deadlock async infer
* add lock handle in waitAll
* fix building issues with includes
* update of setup and cmakelist
* fix setup.py way of building
* add new methods for ie_core
* add ienetwork methods: serizlize and getfunction
* add methods for exec net and infer request class
* remove ccompiler from requirements
* remove set from cmake
* Update Blob class with precisions
* Rewrite test_write_numpy_scalar_int64
* Generic Blob casting in infer queue
* implementation of preprocess_info
* update license
* add set_blob method
* worksave
* added template for setblob
* Added blob convert in infer request
* move blob casting to common namespace
* add_outputs method
* work with func from pyopenvino
* add user_id to callbacks
* remove hardcoded root dir
* refactor code and comments
* [Python API] use parametrize in blob tests
* move common functions to conftest file
* Add tests for blob
* Update test_blob and test_network
* add parametrize in blob tests
* blob refactoring
* Fix sync in InferQueue and add default callbacks
* patch for protobuf cmake
* blob refactoring
* rename convert_to_blob to cast_to_blob
* rename to cast_to_blob in infer queue
* add missing cast_to_blob
* remove boost
* change license
* undo in cmake
* fix building
* [IE PYTHON API POC] Add fixed InferQueue and modification in async part of benchmark
* Add read_network(model,blob)
* Add blob_from_file helper
* Add read from Path
* Add tests
* Add read_network from bytes
* Error throwing in Common IE functions
* Cleaning samples
* Changes in ConstInputInfoWrapper class
* Add StatusCode to callback function for InferRequest
* Add random image generation and model path getting
* Move example model to examples path
* Adapt sync and async examples to new helpers
* Return request info containing StatusCode and ID from InferQueue for top idle request.
* Update benchmark app to use new API with request info
* Update examples to use two different approaches to InferQueue
* reset new line
* Add is_ready() to InferQueue
* fix building
* remove benchmark
* temporary add separate flag for building poc
* refactoring
* Remove GIL acquire in default callback and latencies
* Adapt benchmark to Core()
* Codestyle
* fix building
* [Python API] Move ngraph python api to the new destination
* fix building tests
* fix code-style checks
* building in azure
* fix building wheels
* apply fixes
* new structure
* fix building
* Add support for InferRequest::Cancel in pyopenvino
* fixes
remove gil release
add async infer after cancel
* remove extra files
* remove examples and benchmark
* fix code style
* fix building
* fix tests
* merge inits from old and new api
* fix azure ci
* fix setup.py
* fix setup.py building
* try to fix mac
Co-authored-by: Michal Karzynski <michal.karzynski@intel.com>
Co-authored-by: jiwaszki <jan.iwaszkiewicz@intel.com>
Co-authored-by: anastasia.kuporosova <akuporos@akuporos.inn.intel.com>
Co-authored-by: Alexey Lebedev <alexey.lebedev@intel.com>
Co-authored-by: Mateusz Tabaka <mateusz.tabaka@intel.com>
* Fix comments
* fix comments: cmakelist
* fix building on arm
* permission for merge script
* permission for merge script
Co-authored-by: Michal Karzynski <michal.karzynski@intel.com>
Co-authored-by: jiwaszki <jan.iwaszkiewicz@intel.com>
Co-authored-by: anastasia.kuporosova <akuporos@akuporos.inn.intel.com>
Co-authored-by: Alexey Lebedev <alexey.lebedev@intel.com>
Co-authored-by: Mateusz Tabaka <mateusz.tabaka@intel.com>
78 lines
2.2 KiB
INI
78 lines
2.2 KiB
INI
[tox]
|
|
envlist = py3
|
|
|
|
[testenv]
|
|
skipdist=True
|
|
skip_install=True
|
|
deps =
|
|
-rrequirements.txt
|
|
-rrequirements_test.txt
|
|
setenv =
|
|
NGRAPH_BACKEND = {env:NGRAPH_BACKEND:"CPU"}
|
|
PYTHONPATH = {env:PYTHONPATH}
|
|
OpenVINO_DIR = {env:OpenVINO_DIR}
|
|
passenv =
|
|
http_proxy
|
|
https_proxy
|
|
commands=
|
|
{envbindir}/python setup.py bdist_wheel
|
|
{envbindir}/pip install --no-index --pre --find-links=dist/ ngraph-core
|
|
flake8 {posargs:src/ setup.py}
|
|
flake8 --ignore=D100,D101,D102,D103,D104,D105,D107,W503 tests/ # ignore lack of docs in tests
|
|
mypy --config-file=tox.ini {posargs:src/}
|
|
pytest --backend={env:NGRAPH_BACKEND} tests -v -k 'not _cuda' --ignore=tests/test_onnx/test_zoo_models.py --ignore=tests/test_inference_engine
|
|
|
|
[testenv:zoo_models]
|
|
commands=
|
|
{envbindir}/python setup.py bdist_wheel
|
|
{envbindir}/pip install --no-index --pre --find-links=dist/ ngraph-core
|
|
pytest --backend={env:NGRAPH_BACKEND} tests/test_onnx/test_zoo_models.py -v -n 4 --forked -k 'not _cuda' --model_zoo_xfail
|
|
|
|
[testenv:devenv]
|
|
envdir = devenv
|
|
usedevelop = True
|
|
deps = -rrequirements.txt
|
|
|
|
[flake8]
|
|
inline-quotes = "
|
|
max-line-length=110
|
|
max-complexity=7
|
|
# ignore:
|
|
# D100 - Missing docstring in public module
|
|
# D104 - Missing docstring in public package
|
|
# D105 - Missing docstring in magic method
|
|
# D107 - Missing docstring in __init__
|
|
# D412 - No blank lines allowed between a section header and its content
|
|
# F401 - module imported but unused
|
|
# W503 - line break before binary operator (prefer line breaks before op, not after)
|
|
ignore=D100,D104,D105,D107,D412,F401,W503
|
|
|
|
[mypy]
|
|
ignore_missing_imports=True
|
|
follow_imports=normal
|
|
disallow_untyped_defs = True
|
|
disallow_untyped_calls = True
|
|
check_untyped_defs = True
|
|
show_error_context = True
|
|
show_column_numbers = True
|
|
show_none_errors = True
|
|
|
|
# put custom per-file options here in sections that map their names into filenames, e.g. gta_workflow/filename.py is
|
|
# [mypy-ngraph/filename]
|
|
|
|
[mypy-test.*]
|
|
disallow_untyped_defs = False
|
|
|
|
[isort]
|
|
multi_line_output=3
|
|
include_trailing_comma=True
|
|
force_grid_wrap=0
|
|
use_parentheses=True
|
|
line_length=100
|
|
default_section=FIRSTPARTY
|
|
sections=FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER
|
|
known_third_party=openvino
|
|
|
|
[pytest]
|
|
addopts = --strict-markers
|