Commit Graph

19 Commits

Author SHA1 Message Date
Irina Efode ac2fafb3c2
[TRANSFORMATIONS] Extend tests for optional input matching and provide known limitations (#24091)
### Details:
- *Separated part of
https://github.com/openvinotoolkit/openvino/pull/23651*
 - Merge after the following PR

### Registered known limitations:
- *[[ IE TRANSFORMATIONS ] `Optional` pattern should match all inputs in
case of cumulative
inputs](https://jira.devtools.intel.com/browse/CVS-139839)*
- *[[ IE TRANSFORMATIONS ] Transformation pattern matching does not
support matching operation with optional input nodes (the operation does
not create default input node in case the input was not specified in
constructor)](https://jira.devtools.intel.com/browse/CVS-139835)*
2024-04-26 15:13:49 +00:00
Oleg Pipikin a25a476db2
Remove opset usages for transformations (#24220)
### Details:
 - Remove opset usages for transformations
 - Use operation versions instead of opsets


### Tickets:
 - CVS-118087
2024-04-25 14:46:01 +00:00
Irina Efode 2d22b92abd
[ TRANSFORMATIONS ] Support of multi input nodes an optional pattern (#23651)
### Details:
 - *Support of multi-in nodes as optional*
 - *Remove supporting of operations with empty inputs*

### Tickets:
 - *[133317](https://jira.devtools.intel.com/browse/CVS-133317)*
2024-04-18 07:48:57 +00:00
Andrii Staikov 0902fe4096
[TRANSFORMATIONS] Create python binding for pattern::Optional (#23558)
[TRANSFORMATIONS] Create python binding for pattern::Optional

Expose the C++ op::pattern::Optional to Python in order to
simplify patterns creation.
Cover the functionality with the dedicated tests.

### Tickets:
CVS-133523

Signed-off-by: Andrii Staikov <andrii.staikov@intel.com>

---------

Signed-off-by: Andrii Staikov <andrii.staikov@intel.com>
2024-03-22 16:14:54 +00:00
Andrii Staikov 2cc8cb42dc
[TRANSFORMATIONS] Fix Optional to match even with no inputs (#23471)
[TRANSFORMATIONS] Fix Optional to match even with no inputs

### Details:
The Optional pattern type may create a wrong pattern to match if no
inputs are provided to the Optional node. If no inputs present to the
Optional type, it will not create an alternative branch(es) to check
against resulting in the incorrect matching.

Fix that by adding a check for the number of inputs being 0.

Do a minor refactoring/renaming for the readability purposes.

### Tickets:
 CSV-133523

Signed-off-by: Andrii Staikov <andrii.staikov@intel.com>

---------

Signed-off-by: Andrii Staikov <andrii.staikov@intel.com>
2024-03-19 07:10:37 +00:00
Tomasz Jankowski 9bdd36be9c
[Core] Remove ngraph env_util.hpp graph_util.hpp util.hpp (#22540)
* Delete env_util

* Remove ngraph graph_util (initial)

TODO: remove ngraph/graph_util.hpp and remains from graph_util.cpp

* Remove ngraph util (initial)

TODO: remove ngraph/util.hpp and remains from util.cpp

* Remove ngraph util (onnx fe not finished)

TODO: remove ngraph/util.hpp and util.cpp.

* Use OV in test helpers

* Remove ngraph graph_util

* [ONNX FE] Rename onnx_import::Node class

to ONNX_Node temporarily (to hide conflicts with missing Node from ::ngraph::)

* Remove ngraph graph_util from onnx fe

* [ONNX FE] Rename onnx_import::ONNX_Node class back to Node

* Delete ngraph util

* Update copyright notes

* Update copyright notes

* Fix style

* Fix gpu plugin

* Remove useless macros

---------

Co-authored-by: Pavel Durandin <pavel.durandin@intel.com>
2024-02-02 02:53:20 +00:00
Irina Efode 5d3a44b8f0
[TRANSFORMATIONS] Add Optional pattern (#22090)
* Start optional pattern matching

* Change to template

* Optional transformation pattern

* Fix code style

* Add Optional pattern using in transformation: MarkDivWithEps

* change algo

* code style

* remove extra changes

* smt

* fix code style

* Revert to previous version

* apply comments

* predicate test

* pply
2024-01-29 13:48:24 +00:00
Vitaliy Urusovskij 4fde957689
Additional changes in `src/` to API2.0 (#21601)
* `src/core/` to API2.0

* `src/plugins/auto/` to API2.0

* `src/plugins/hetero/` to API2.0

* ClangFormat

* Fix build
2023-12-14 14:13:18 +00:00
Ivan Tikhonov d0213301a5
Transformations: API 2.0 transition part 3 for LPT transformations (#19610)
* lpt transformations: transition to api 2.0, ngraph -> openvino

* use ov namespace for lpt transformations

* fix low_precision usings

* includes refactoring

* delete RecurrentGraphRewrite and RecurrentMatcher as unused classes

* use ov header for itt; delete the disabled test

* delete the unused function

* suppress doxygen warning

* fix link in the documentation
2023-09-13 12:30:31 +00:00
Ivan Tikhonov 38cf4764cb
Transformations: API 2.0 transition part 2 (#19475)
* Transformation component API 2.0:part 2

* Refactoring

* fix build
2023-08-30 14:28:20 +02:00
Ilya Churaev f30afa9ad3
Finalization of migration core unit tests (#19468) 2023-08-29 11:58:54 +04:00
Ilya Churaev 39b75fd213
Moved core tests from root folder to new API (#19381) 2023-08-25 15:23:41 +04:00
Oleg Pipikin b211767280
Consolidate common test utils targets (#18385)
* Consolidate test util targets

* Fix code style

* Fix 1

* Fix code style
2023-07-17 11:59:13 +00:00
Ilya Churaev ea04f8217d
Mark as deprecated nGraph API (#17647)
* Mark as deprecated nGraph API

* Fixed code style

* Added IN_OV_LIBRARY define

* Suppress warnings for log

* Suppress warning

* Updated nGraph headers

* Fixed build for macOS

* Fixed lpt and snippets

* Fixed build all on macOS

* Suppress some warnings

* Fixed some new warnings

* Fixed new warnings

* Try to fix some warnings

* More warnings

* Soome change

* Suppress more warnings

* Suppress warnings for transformations

* Suppress warnings for LPT

* One more fix

* Suppress more warnings

* Try to fix opset error

* Remove opset constructor

* Cannot fix opset warning

* Suppress warnings for offline transfromations

* Fixed some warnings for Windows

* Fixed code style

* Suppress some warnings for onnx FE

* Revert "Suppress some warnings for onnx FE"

This reverts commit 75d23b64fc.

* Revert "Fixed code style"

This reverts commit c6eba63116.

* Revert "Fixed some warnings for Windows"

This reverts commit 23d7ed88b6.

* Revert "Suppress warnings for offline transfromations"

This reverts commit 0b9f6317bf.

* Revert "Cannot fix opset warning"

This reverts commit 19ea658639.

* Revert "Remove opset constructor"

This reverts commit 06afb1bc20.

* Revert "Suppress warnings for LPT"

This reverts commit 58b1c0f5a0.

* Revert "Suppress warnings for transformations"

This reverts commit f8bb9814a1.

* Revert "Suppress more warnings"

This reverts commit f9f0da9acb.

* Revert "Soome change"

This reverts commit e545d4984e.

* Remove deprecation for ngraph::OpSet and FactoryRegistry
2023-06-01 12:44:28 +04:00
Xuejun Zhai a9bd5f741d
Xuejun/remove api model (#15924)
* [Remove APIs] remove api m_transformation_callback

Signed-off-by: Zhai, Xuejun <xuejun.zhai@intel.com>

* [Remove APIs] remove api run_on_function(), replaced by run_on_model()

Signed-off-by: Zhai, Xuejun <xuejun.zhai@intel.com>

* [Remove APIs] remove set_callback(), use get_pass_config() to configure transformation pipeline

Signed-off-by: Zhai, Xuejun <xuejun.zhai@intel.com>

* [Remove APIs] remove api add_matcher()

Signed-off-by: Zhai, Xuejun <xuejun.zhai@intel.com>

* Fix format issue

Signed-off-by: Zhai, Xuejun <xuejun.zhai@intel.com>

* [Remove APIs] Fix review comments

Signed-off-by: Zhai, Xuejun <xuejun.zhai@intel.com>

* Fix formast issue

Signed-off-by: Zhai, Xuejun <xuejun.zhai@intel.com>

* Fix merge master error

Signed-off-by: Zhai, Xuejun <xuejun.zhai@intel.com>

* Fix CI compiler error

Signed-off-by: Zhai, Xuejun <xuejun.zhai@intel.com>

* Update ONNX Runtime from rel-1.8.1 to rel-1.14.0

Signed-off-by: Zhai, Xuejun <xuejun.zhai@intel.com>

* Revert "Update ONNX Runtime from rel-1.8.1 to rel-1.14.0"

This reverts commit e31a9e04b7.

---------

Signed-off-by: Zhai, Xuejun <xuejun.zhai@intel.com>
2023-03-17 10:44:28 +04:00
Ilya Churaev 0c9abf43a9
Updated copyright headers (#15124)
* Updated copyright headers

* Revert "Fixed linker warnings in docs snippets on Windows (#15119)"

This reverts commit 372699ec49.
2023-01-16 11:02:17 +04:00
Gleb Kazantaev 5b0a1fe7bb
Move FunctionsComparator to common utils (#11277)
* Move FunctionsComparator to common utils

* Fix includes
2022-03-29 14:51:17 +03:00
Alexey Suhov a79830cb55
Update year to 2022 in copyright notice (#9755) 2022-01-19 01:07:49 +03:00
Ilya Churaev 77f6a0076b
Move core components (#8869)
* Moved openvino to src

* Moved ngraph and frontends to src

* Fixed cmake generation

* Moved inference_engine libs to src

* Moved C API to src

* Fixed CMake generation

* Moved readers to tests, snippets and preprocessing to common

* Fixed CMake

* Moved transformations and lp_transformations

* Fixed transformations cmake

* Fixed build

* Fixed unit-tests and ci paths

* Fixed docs

* Fixed C API build

* Try to fix static build

* More clear order

* Renamed inference_engine_legacy_api to legacy

* Fixed some cmake scripts

* Fixed path to legacy

* Fixed Myriad plugin

* Fixed v7 reader

* Fixed plugin.hpp

* Fixed developer config

* Fixed ie_parallel
2021-11-27 18:53:12 +03:00