Jan Iwaszkiewicz
57b1916f8d
[PyOV] Remove restrictions on opset13.constant to align with opset1-12 ( #21674 )
2023-12-18 10:02:43 +01:00
Jan Iwaszkiewicz
eff9ba76ba
[PyOV] String type support ( #21532 )
...
* WIP working Tensor with automatic casting
* Update infer functions and minor fixes
* Impl for multi-dim arrays with fixes for strides
* Fix strides for S kind and refactor tests
* Added str_data and bytes_data to Tensor, cleaning up the solution
* Add test of warning while using data property
* Allow lists as inputs for single Tensors, refactor infer code to return OVDict with decoded strings, some refactoring, tests
* Replace string with another invalid input
* Added bytes_str and string_str properties, clean up common part of bindings, added test cases
* Improve string element type to be created from numpy/python counterparts, refactor of common code, small improvements
* Add tests for types
* Remove print
* Small fix for tensors from pointers
* Small fix for asserts
* Add tests for data dispatcher
* Fix comments
* fix tests
* Fix edge-case for scalar-like values and unlock tests for data dispatcher
2023-12-15 21:14:55 +01:00
Jan Iwaszkiewicz
bc78fd359e
[PyOV] Dynamic attributes for Python based operators ( #21256 )
2023-11-27 16:16:02 +01:00
Jan Iwaszkiewicz
0c041d7ebc
[PyOV] Adjust opset13 Constant to utilize runtime.op.Constant functionalities ( #21046 )
2023-11-20 15:29:46 +01:00
Jan Iwaszkiewicz
6650b8750a
[PyOV] Support Tensor creation from empty numpy arrays ( #20964 )
2023-11-13 11:25:58 +01:00
Jan Iwaszkiewicz
212a9bc852
[PyOV] Support Constant creation from empty numpy arrays ( #20967 )
...
* [PyOV] Support Constant creation from empty numpy arrays
* Return 0 when shape is 0
* Add missing file...
2023-11-13 10:11:12 +00:00
Jan Iwaszkiewicz and Michal Lukaszewski
6a326455b9
[PyOV] Propagate errors on imports from runtime module ( #20273 )
...
Co-authored-by: Michal Lukaszewski <michal.lukaszewski@intel.com >
2023-10-11 11:53:34 +04:00
Jan Iwaszkiewicz
baa0ce46b0
[PyOV] Accept Python functions as Extension attrs and properly capture GIL ( #18992 )
2023-08-16 14:44:48 +02:00
Jan Iwaszkiewicz
7fd6563827
[PyOV] Add Range-4 as part of opset12 ( #18884 )
2023-08-01 11:51:35 +00:00
Jan Iwaszkiewicz and Sergey Lyalin
583939b828
[PyOV] Aliases and namespace redesign ( #18157 )
...
* Remove inits, update main one
* Fix stacklevel
* Testing wrong solution
* Testing test test
* Fix test test test test
* mo modules mo problems
* Xfail test that check stdout/err?
* not so correct solution to circular imports
* Fix or not to fix
* CMake magic, co-authors: my best team
* Fix package imports
* Fix tools inits
* Fix ovc tf
* Fix Q000
* Fix F401
* Fix linters
* Add save_model
* Remove LayoutMap
* Move test_utils to 'internal modules'
* First testing
* Missing Type
* Expand main namespace
* Change some more tests
* Add OVAny to namespace
* Add Constant and Parameter to namespace
* More tests changes
* Fix inits
* Add layout_helpers to main namespace
* Revert CMake and linux.yml with ovc
* Update main inits
* Remove MO from tools inits
* changes to init files
* Fix tests
---------
Co-authored-by: Sergey Lyalin <sergey.lyalin@intel.com >
2023-07-28 11:52:21 +04:00
Jan Iwaszkiewicz
ec26537b3e
[PyOV][DOCS] Update inference documentation with shared memory flags ( #18561 )
2023-07-18 13:15:10 +02:00
Jan Iwaszkiewicz
787796d88f
[PyOV] Pin version of Cython for API 1.0 ( #18604 )
2023-07-18 11:35:03 +04:00
Jan Iwaszkiewicz
59052d846e
[PyOV] Memory flow control with share_inputs and share_outputs ( #18275 )
...
* Added ReturnPolicy and updated common array helpers
* Clean up
* Remove ReturnPolicy initial
* Add share_inputs and share_outputs
* Tests and minor fixes
* Fix docstrings
* Fix whitespace
* Fix typing
2023-07-11 21:05:22 +04:00
Jan Iwaszkiewicz
4fc0b22012
[PyOV] Force copy of not writable numpy arrays ( #18194 )
2023-06-28 07:56:29 +02:00
Jan Iwaszkiewicz
a8ce60b651
Fix flake8 warnings and ignore VNE001 for Python samples ( #18204 )
...
* Ignore VNE001 for Python samples
* Add explanation
* Fix flake8 on wheel setup.py
* Fix onnx test reporting VNE001
2023-06-23 17:06:02 +04:00
Jan Iwaszkiewicz and Ilya Churaev
a880cba9b7
[PyOV] Remove numpy strides from Tensor creation ( #17515 )
...
* [PyOV] Remove numpy strides from Tensor creation
* [PyOV] Add test for stride calculation
* [PyOV] Fix flake issue
---------
Co-authored-by: Ilya Churaev <ilya.churaev@intel.com >
2023-05-17 12:13:34 +00:00
Jan Iwaszkiewicz
076f71a4ce
[PyOV] Adjust style in dev docs ( #17440 )
2023-05-10 15:20:31 +02:00
Jan Iwaszkiewicz
ca02336c1b
[PyOV] Bump pybind to 2.10.4 ( #17251 )
2023-04-27 16:41:45 +04:00
Jan Iwaszkiewicz
512b186231
[PyOV] Enable group_convolution_backprop test ( #17186 )
2023-04-25 12:19:56 +00:00
Jan Iwaszkiewicz and Karol Blaszczak
88cb428763
[PyOV][DOCS] Added Python advanced inference documentation ( #17090 )
...
Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com >
2023-04-21 15:22:33 +02:00
Jan Iwaszkiewicz
816c0f76e2
[PyOV] Deprecate PerformanceMode.UNDEFINED and refactor deprecation ( #16965 )
2023-04-17 12:38:28 +02:00
Jan Iwaszkiewicz
63c5be3ed2
[PyOV] Fix models checking and ensure correct destructor calls in tests ( #16814 )
2023-04-13 10:37:05 +02:00
Jan Iwaszkiewicz and Michal Lukaszewski
92eb62fe63
[PyOV] Fix getting all names in OVDict ( #16665 )
...
* [PyOV] Fix getting all names in OVDict
* Add docs and adjust tests
* Fix linter issues
* Adjust typing and add test for incorrect key type
---------
Co-authored-by: Michal Lukaszewski <michal.lukaszewski@intel.com >
2023-04-06 14:44:37 +02:00
Jan Iwaszkiewicz
4561aa7109
[PyOV] OVDict class - new return value from inference ( #16370 )
2023-03-22 16:12:07 +01:00
Jan Iwaszkiewicz
0372ca929a
[PyOV] Constant/Tensor from scalars ( #16270 )
2023-03-16 11:15:19 +01:00
Jan Iwaszkiewicz
6c0e2686ad
[PyOV] Fix passing of the key in data dispatcher ( #15941 )
2023-02-24 23:07:59 +04:00
Jan Iwaszkiewicz
3373c6743f
[PyOV] Shared memory improvements for Tensor and Constant classes ( #15814 )
2023-02-23 13:46:41 +01:00
Jan Iwaszkiewicz
2769e22767
[PyOV] Adding optimizations and shared memory mode to inference calls ( #15290 )
...
* Proposal of data_dispatcher
* Fix C-style for array-like objects
* Added test cases
* Add InferRequestInternal to hold lifetime of converted data
* Change name and location of InferRequestInternal to _InferRequestWrapper
* Fixes for shared data mode to match previous tests, codestyle refactoring
* Fix annotations and style
* Add initial testing
* Fix dtype capture
* Fix set_request_tensor
* Extend doc strings
* Fix docs
* Docs fix
* Change to ndarray in docs
* Fix async case
* Fix async test 2
* Remove linter issue
2023-02-09 10:50:39 +01:00
Jan Iwaszkiewicz
b94e8c2f25
[PyOV] Add ExecutionMode enum and property ( #15497 )
2023-02-04 13:10:44 +04:00
Jan Iwaszkiewicz
37317b130d
[PyOV] Fix UserWarning in setup.py ( #15334 )
2023-01-26 22:02:17 +03:00
Jan Iwaszkiewicz
4be484574d
[PyOV] Add UUID property and correct translator ( #15110 )
2023-01-16 10:16:24 +01:00
Jan Iwaszkiewicz
8178b046f8
[PyOV] Add properties of GPU plugin to bindings ( #15089 )
2023-01-13 16:14:50 +01:00
Jan Iwaszkiewicz
45934143e5
[PyOV] Add new types to Any dispatcher ( #15052 )
2023-01-12 22:43:22 +01:00
Jan Iwaszkiewicz
2acf3e663c
Fix docs requirements versions ( #14729 )
...
* Fix docs requirements versions
* Bump jinja to fix markupsafe issues
2022-12-22 07:05:39 +01:00
Jan Iwaszkiewicz
243da9bc1d
[PyOV] Add pathlib.Path objects as arguments to serialize pass ( #14746 )
2022-12-21 21:44:20 +03:00
Jan Iwaszkiewicz
c8493bd47b
[PyOV] Update BUILDING.md and minor dev docs fixes ( #14357 )
2022-12-19 16:03:54 +01:00
Jan Iwaszkiewicz
4479585d47
[PyOV] Rewriting properties tests as hardware agnostic ( #14684 )
2022-12-16 12:29:20 +01:00
Jan Iwaszkiewicz
abdcaef36d
[PyOV] Add README.md and align structure-showing style ( #14093 )
...
* [PyOV] Add README.md and align structure-showing style
* First batch of review changes
* Remove README from compatibility files
* Add note about coding style rules
* Add note about coding style rules pt2
* Update Components
* Apply fixes
2022-11-21 16:42:36 +01:00
Jan Iwaszkiewicz
2a9ae52ec1
[PyOV] Bump pygments version ( #13947 )
2022-11-13 14:09:50 +01:00
Jan Iwaszkiewicz
b44eb83551
[PyOV] Fix typo in filename generator ( #13948 )
2022-11-11 10:11:13 +01:00
Jan Iwaszkiewicz
d6fe686237
[PyOV] Bump version of pytest for compatibility API ( #13932 )
2022-11-10 16:55:42 +03:00
Jan Iwaszkiewicz
5ae221e107
[PyOV] Fix mypy after bump, general refactor ( #13913 )
...
* Fix mypy errors after bump PEP482, reformat code in general
* Enable checks
* Fix smaller issues
* Revert typo with comments
* Fix indents
2022-11-08 19:26:39 +04:00
Jan Iwaszkiewicz
664c196a13
[PyOV] Fix wheel requirements for new package versions ( #13871 )
...
* Bump pybind11 to v2.10.1 release tag
* [PyOV] Fix wheel requirements for new package versions
2022-11-05 16:01:45 +04:00
Jan Iwaszkiewicz and Ilya Lavrenov
9f2489941f
Bump pybind11 to v2.10.1 release tag ( #13793 )
...
Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com >
2022-11-04 02:12:47 +04:00
Jan Iwaszkiewicz
0f0a08cde1
[PyOV] Refine InferRequestWrapper and AsyncInferQueue ( #13512 )
2022-10-20 21:34:03 +02:00
Jan Iwaszkiewicz
2aead0dc3f
[PyOV] Making offline_transformations a private module ( #13213 )
2022-09-28 18:38:52 +02:00
Jan Iwaszkiewicz
8fae2ddfe3
update docs ( #12974 )
2022-09-12 11:04:54 +02:00
Jan Iwaszkiewicz
7f750a4be5
Skip nogil tests ( #12658 )
2022-08-23 12:00:11 +04:00
Jan Iwaszkiewicz
65ac9b5036
[PyOV] Add missing element Type and functions ( #12614 )
2022-08-18 13:19:44 +02:00
Jan Iwaszkiewicz
97f3d84cf5
[PyOV][PyDocs] Update BUILDING.md instructions for Linux/MacOS ( #12520 )
...
* Update linux and mac part of BUILDING.md
* Fix variable names and minor other fixes
* Remove unused macos deps
* Follow up on comments including cmake instructions
* Update wheel instructions
2022-08-17 16:35:59 +00:00
Jan Iwaszkiewicz
4dc713c7eb
[SAMPLES] Fix flake issues in Python speech sample ( #12514 )
...
* Fix flake issues
* Add whitespace
* Add whitespaces in tests asserts
2022-08-11 15:00:27 +04:00
Jan Iwaszkiewicz
ed39903028
[PyOV] Fix error handling for Debug builds and extend configs for CI ( #12417 )
2022-08-11 10:53:54 +02:00
Jan Iwaszkiewicz and Karol Blaszczak
06019c442f
[PyOV][DOCS] Python API contribution and developer guide ( #12145 )
...
Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com >
2022-07-19 16:25:58 +02:00
Jan Iwaszkiewicz
e5a719480b
[PyOV] Fix bugbear's B023 ( #12040 )
2022-07-04 15:57:36 +02:00
Jan Iwaszkiewicz
c7f8112339
[ONNX] Extend ONNX FE with SoftSign-9 operation ( #11766 )
2022-06-01 13:37:17 +02:00
Jan Iwaszkiewicz
320531def0
[MO] SoftSign operator extractors ( #11726 )
2022-05-25 11:44:26 +02:00
Jan Iwaszkiewicz
d19b80a82d
[SoftSign-9][PYTHON] Python API for SoftSign ( #11677 )
2022-05-13 09:55:14 +02:00
Jan Iwaszkiewicz
62d17a070a
[SoftSign-9] Shell, reference impl and decomposition for SoftSign-9 ( #11546 )
2022-05-11 16:44:15 +02:00
Jan Iwaszkiewicz
6eb9c11d7e
[PYTHON] Infer calls improvement ( #11498 )
2022-05-06 08:58:00 +02:00
Jan Iwaszkiewicz
8d221d1e06
Add lower bound for wheel package ( #11595 )
2022-04-28 13:02:46 +02:00
Jan Iwaszkiewicz and Alexey Lebedev
8e9fb18882
[PYTHON] Properties API, improvements of OVAny ( #11389 )
...
* WIP for POC
* Bulkwork
* Clean up current solution
* Extend Core methods
* Refactor Any python converts
* add submodule to runtime
* Add initial tests
* Fix copy-paste error
* Extend test
* Improve casting options and move common parts to utils
* Add newline
* Fix properties, remove class approach, move to all string Properties API
* Fix codestyle
* Fix pystyle
* ResolveTODOs, better align and extend python api
* Add extended test cases
* Fix properties in one of compile_model overload.
Co-authored-by: Alexey Lebedev <alexey.lebedev@intel.com >
* Update src/bindings/python/tests/test_inference_engine/test_properties.py
Co-authored-by: Alexey Lebedev <alexey.lebedev@intel.com >
Co-authored-by: Alexey Lebedev <alexey.lebedev@intel.com >
2022-04-05 18:01:36 +03:00
Jan Iwaszkiewicz
660c6a3e84
[DOCS] Python Exclusives overview ( #10946 )
...
* Add python docs
* Small fix
* Apply comments
* Fix style
2022-03-15 14:26:12 +03:00
Jan Iwaszkiewicz
54f39294de
[PYTHON] Fix style in python doc strings ( #10606 )
...
* Fix style in python doc strings
* New line quotes
2022-02-25 13:02:04 +03:00
Jan Iwaszkiewicz
206442fb19
[PYTHON] Add OV Types support to parameter and constant from opsets ( #10489 )
...
* Add OV Types to parameter and constant node factory, refactor tests and error handling
* Fix name mismatch in docstring
* Fix docs and hints
2022-02-21 12:45:55 +03:00
Jan Iwaszkiewicz
e71f23fc7e
[PYTHON] Add __repr__ to main objects ( #10365 )
2022-02-15 21:30:33 +00:00
Jan Iwaszkiewicz
9e89ee2478
[PYTHON] New Python docs and refactor/improvements ( #10032 )
2022-02-14 10:24:33 +01:00
Jan Iwaszkiewicz
db334efbbd
Fix vector casting for Constants with float16 type ( #10088 )
2022-02-03 09:15:28 +01:00
Jan Iwaszkiewicz
1e58c55678
[PYTHON] Allow ports as inputs for infer methods ( #9839 )
...
* Use of ports for input values
* Refactor tests
* Fix inputs overwritting
* Fixed for review comments
* Remove unused branch and refactor ie_api.py
2022-01-25 13:19:12 +03:00
Jan Iwaszkiewicz
967fc0a756
Added callable CompiledModel ( #9812 )
2022-01-21 13:27:51 +03:00
Jan Iwaszkiewicz
e39614954b
[PYTHON] Return InferRequestWrapper as shared pointer ( #9805 )
2022-01-20 23:22:42 +03:00
Jan Iwaszkiewicz
e1696deb3a
[PYTHON] Expose If, Loop and TensorIterator API ( #9603 )
2022-01-14 14:30:30 +01:00
Jan Iwaszkiewicz
bcf0879785
Fix queue fails on callbacks ( #8809 )
2021-11-26 12:44:11 +01:00
Jan Iwaszkiewicz
7e457bfd72
Fix B006 error and Core object lifetime for compile_method on CPU plugin ( #8683 )
2021-11-19 15:56:54 +01:00
Jan Iwaszkiewicz
4247a9d6b0
[PYTHON] Improve API with compact functions and Python wrappers ( #8603 )
...
* Added new Tensor dispatch and improvements, replace injections with inheritance of pybind objects, remove Blob from public python API.
* Clean-up tests and API from unused classes
* Remove unused import
* cpp codestyle
* Update AsyncInferQueue with python wrapper
* Codestyle cpp
* Applying comments
* Common tensor setting for requests
2021-11-17 00:09:47 +03:00
Jan Iwaszkiewicz
d8f9445a96
Add new init to Tensor from array, add tests and helper methods for openvino tests ( #8306 )
2021-11-01 10:16:35 +03:00
Jan Iwaszkiewicz and dkozykowski
17914d516a
[ONNX] QLinearMatMul ( #7418 )
...
* Add qlinear_matmul files
* Extend matmul helpers
* register op in bridge
* Add test for 2d
* newlines at end of files
* Codestyle changes
* Re-use of nodes inputs
* Remove xfails
* Register as set1
* reshape inputs as scalars
* remove fixed xfail issue residues
* update changes to fit the newest master
Co-authored-by: dkozykowski <dawid.kozykowski@intel.com >
2021-10-20 11:02:14 +03:00
Jan Iwaszkiewicz
78358bacb0
[PYTHON API] Expose ngraph bindings as part of openvino API ( #8027 )
2021-10-18 21:36:48 +02:00
Jan Iwaszkiewicz
a81164e1cb
Specialized exception if ONNX model is unsupported ( #7234 )
...
* Add tests
* Add new error throw
2021-08-27 11:05:51 +03:00
Jan Iwaszkiewicz
01eebba54b
[nGraph] Return Node's operation version ( #6589 )
...
* Add python test
* expose node version to python api
2021-07-13 12:49:11 +03:00
Jan Iwaszkiewicz
c4274d4c32
Change version of pybind ( #6145 )
2021-06-16 07:36:06 +03:00
Jan Iwaszkiewicz
c3ca8d048e
[ONNX] ArgMin/ArgMax support for select_last_index ( #5661 )
...
* Add Reverse Op to opset
* Worksave with Reverse path
* Add last_index support
* refactor argminmax factory
* Remove old xfail, add new one
* Fix proto file for argmax
* Rewrite test for select_last_index
* Add CPU tests to Manifest
* Update manifest
* Remove Reverse from opset7
* Refactor arg_min_max factory
* Added example comment in arg_min_max
* Codestyle changes
2021-05-25 20:37:07 +03:00
Jan Iwaszkiewicz
511cddb87f
[nGraph] Add documentation strings ( #5418 )
2021-05-05 10:15:07 +02:00
Jan Iwaszkiewicz
7a634490dc
Add GELU fusion ( #5067 )
...
* GeLU fusion
* Fix matcher and sqrt(2) value
* Replace with math constant
* Correct comments in header file
* Add tests for transformations
* Add define of math constants in tests
* refactor code and add checks for nullptr
* Extend tests with failing examples
* change tests
2021-04-20 15:34:55 +03:00
Jan Iwaszkiewicz
8ec59ceda4
[CPU][ONNX] Convert FP64 precision to FP32 ( #4681 )
2021-03-19 19:28:55 +01:00
Jan Iwaszkiewicz
a3af43c8e4
[ONNX] Minimum op xfail updated ( #4332 )
2021-02-16 11:43:07 +01:00
Jan Iwaszkiewicz
7ff8f8eba4
WA for GCC 7.5 pybind warning ( #4277 )
...
* WA for GCC 7.5 pybind warning
* Move compiler flag to ngraph/python
2021-02-11 18:41:23 +03:00
Jan Iwaszkiewicz
63f3a5d99c
Change class member init ( #4266 )
2021-02-10 14:13:16 +01:00
Jan Iwaszkiewicz and Tomasz Dołbniak
7af2959bd0
[ONNX] Convert to integral type in OneHot op ( #4229 )
...
Co-authored-by: Tomasz Dołbniak <tomasz.dolbniak@intel.com >
2021-02-10 14:03:54 +01:00
Jan Iwaszkiewicz
647104f602
[nGraph][ONNX] WA for currently unsupported precisions ( #3964 )
2021-01-25 13:08:15 +01:00
Jan Iwaszkiewicz
e1a7f7e5af
[nGraph][IE] Enable FP64 data type in IE and review nGraph Python tests ( #2563 )
2020-12-02 12:09:28 +01:00
Jan Iwaszkiewicz
cfe143fd33
[nGraph][ONNX] Rename xfails ( #3061 )
2020-11-17 10:34:33 +01:00
Jan Iwaszkiewicz
11801eadb3
[nGraph] Add opset5 ops to Python nGraph ( #2833 )
2020-10-28 10:18:14 +01:00
Jan Iwaszkiewicz
8b6f61e688
[ONNX] Extend ONNX importer with Round-5 ( #2749 )
2020-10-27 11:01:23 +01:00
Jan Iwaszkiewicz
77794535ab
[ONNX] WA for I64 images ( #2411 )
2020-10-22 14:06:23 +02:00
Jan Iwaszkiewicz
f4cb425396
[nGraph] Enable u1 data type in Constant PyAPI ( #2084 )
2020-09-08 13:11:05 +02:00
Jan Iwaszkiewicz
757b1f0d9e
[nGraph] Python tests - move to int32 ( #1966 )
2020-09-01 15:11:58 +02:00
Jan Iwaszkiewicz
c147f03d5f
[nGraph] RTInfo refactor ( #1806 )
2020-08-27 15:41:21 +02:00
Jan Iwaszkiewicz
680cdacc11
[nGraph] Add Manager to Py API ( #1533 )
...
* Added test
* working ManagerWrapper
* Clean-up in ManagerWrapper
* worksave
* fixed building error
* Finished test of constant folding
* remove unused param
* Added get_vector function
* clean up
2020-08-13 19:56:59 +03:00
Jan Iwaszkiewicz
2b6b047b43
[nGraph] Create Python API support for rt_info ( #1696 )
2020-08-11 15:57:31 +02:00
Jan Iwaszkiewicz
2b474c8a47
Fixed access to the data of FP16 IRs with nGraph Python API ( #1707 )
2020-08-11 07:16:11 +03:00