Commit Graph
165 Commits
Author SHA1 Message Date
Oleg PipikinandIlya Churaev 6b4b01aecf Move transformation and lp transformations tests from IeFuncTests and IeUnitTests (#14096)
* Move transformation and lp transformations tests from IeFuncTests and IeUnitTests

* Enable tests in Azure CI

Co-authored-by: Ilya Churaev <ilya.churaev@intel.com>
2022-11-22 07:46:19 +04:00
Evgeny Kotov 0846bdb67e Transpose sinking on passes for Concat, Split and binary eltwise operations (#13718)
* initial

* clang cleanup fixes

* remove TrasposeAxis function; cleanup namespaces

* fix TransposeInputsInfo spell

* one_input_transpose spell

* cleanup speel

* spell

* decompose forward sinking

* decompose backward sink

* use NodeVector

* clang cleanup

* decomposite transformations into different files

* decompose unit tests

* clang cleanup

* azure build fixes

* code review fixes

* clang cleanup fixes
2022-11-21 16:24:26 +04:00
2a7dc5404b [Core/CC]Verify add_matcher scope for Conditinal Compilation. (#13148)
* My verification:
libopenvino.so original size: 10799560
After adding this patch, new size: 10684744

Reduce: (10799560 - 10684744)/1024.0 = 112.125K.

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* try to fix clang issue

* Merge xuejun/cc_test

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* Test

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

* TEST1

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

* TEST2

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

* Complete Add_matcher wraper.

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* register_pass rebase

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* fix clang issue.

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* fix some replace error.

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* 1: Rename ADD_MATCHER_SCOPE_WITH_OBJ -> ADD_MATCHER_SCOPE;
2: Remove debug info;
3: Fix bug: REGISTER_PASS_WITH_FALSE_

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* Add ADD_MATCHER_SCOPE_WITHOUT_NSPACE macro

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* fix macro define issue.

* Add register_pass for cnn_network_ngraph_impl.cpp

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* Try to fix vpux plugin fail issue.

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* Fix clang issue

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* Merge macro "REGISTER_PASS_MODEL_SCOPE" and "REGISTER_PASS_FUNCTION_SCOPE" to "REGISTER_PASS_SCOPE"

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* Rename "REGISTER_PASS_SCOPE_WITH_FALSE" to "REGISTER_DISABLED_PASS_SCOPE_WITH"

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* Rename ADD_MATCHER_SCOPE_WITHOUT_OBJ to ADD_MATCHER_SCOPE_FOR_THIS
ADD_MATCHER_SCOPE_WITHOUT_NSPACE to ADD_MATCHER_SCOPE_FOR_THIS_WITHOUT_NSPACE

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* In order to implement CC, I have to move "StridesOptimization()" constructor to cpp file.

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* Remove "SCOPE" in macro.

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* Recover changes to fix clang issue.

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* Remove "REGISTER_PASS_MODEL_IF"

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* 1: Remove "ADD_MATCHER_FOR_THIS_WITHOUT_NSPACE";
2: Remove param "nspace" in Macro, replace with "using namespace " in local.

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* fix missing update.

* For MACRO REGISTER_PASS:
1: Only keep a external macro define;
2: Judge 3 possibilities, if one of them is true, it will be disable;

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* Optimize ADD_MATCHER_FOR_THIS.
-#    define ADD_MATCHER_FOR_THIS(region, ...)        add_matcher<region>(__VA_ARGS__);
+#    define ADD_MATCHER_FOR_THIS(region, ...)        ADD_MATCHER(this, region, __VA_ARGS__)

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* Update src/common/conditional_compilation/include/openvino/cc/pass/itt.hpp

Co-authored-by: Ilya Churaev <ilyachur@gmail.com>

* Update src/common/conditional_compilation/include/openvino/cc/pass/itt.hpp

Co-authored-by: Ilya Churaev <ilyachur@gmail.com>

* Update src/common/conditional_compilation/include/openvino/cc/pass/itt.hpp

Co-authored-by: Ilya Churaev <ilyachur@gmail.com>

* Update src/common/conditional_compilation/include/openvino/cc/pass/itt.hpp

Co-authored-by: Ilya Churaev <ilyachur@gmail.com>

* clang format

* Update OR defiation in MACRO, increasing code scalability.

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* Fix window compiles error.

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>
Signed-off-by: xuejun <Xuejun.Zhai@intel.com>
Co-authored-by: xuejun <Xuejun.Zhai@intel.com>
Co-authored-by: Ilya Churaev <ilyachur@gmail.com>
2022-11-20 19:02:42 +03:00
Ivan TikhonovandAndrei Kochin 68e7f062c5 LowLatency v2 tests + resolving the review comments from PR 93758 (#14084)
* Enable SequenceFusion, TensorIteratorToSequence, GRUCellFusion transformation in MOC, the transformations have been deleted from plugin pipelines

* clean-up: delete augru transformation header

* Temporary disabled TensorIterator IR reader tests

* temporary disable tests, it's not TI issue, usqueeze doesn't have reference impl for fp64 and bf16

* Update ConvertTensorItearatorToSequence transformations: add Unsqueeze to pattern

* Codestyle

* Specify negative values for LSTM/GRU/RNN Sequence ops

* fix conflicts with master branch

* Insert ShapeOf subgraph in ConvertSequencesToTensorIterator transformation in case of dynamic input shape

* codestyle

* fix conflict with master branch

* fix onednn version

* Update low latency v2 to support GRU/RNN/LSTM Sequence ops, fix accuracy issue

* fix tensor names

* fix tensor name issue on gna

* fix transformation tests, fix copying rt_info in the transformation

* fix warning, enable bf16, f64 ti tests

* codestyle

* fix functional tests

* EliminateDuplicateTIInputs transformation, fix copy_with_new_inputs method of TI op

* move EliminateDuplicateTIInputs transformation

* codestyle

* add LLTv2 tests, resolve review comments

* resolve conflicts with master

Co-authored-by: Andrei Kochin <andrei.kochin@intel.com>
2022-11-19 10:57:44 +03:00
Ivan Tikhonov 5c0225d358 Enable conversions to LSTM/GRU/RNN Sequence in MOC (#13470)
* Enable SequenceFusion, TensorIteratorToSequence, GRUCellFusion transformation in MOC, the transformations have been deleted from plugin pipelines

* clean-up: delete augru transformation header

* Temporary disabled TensorIterator IR reader tests

* temporary disable tests, it's not TI issue, usqueeze doesn't have reference impl for fp64 and bf16

* Update ConvertTensorItearatorToSequence transformations: add Unsqueeze to pattern

* Codestyle

* Specify negative values for LSTM/GRU/RNN Sequence ops

* fix conflicts with master branch

* Insert ShapeOf subgraph in ConvertSequencesToTensorIterator transformation in case of dynamic input shape

* codestyle

* fix conflict with master branch

* fix onednn version

* Update low latency v2 to support GRU/RNN/LSTM Sequence ops, fix accuracy issue

* fix tensor names

* fix tensor name issue on gna

* fix transformation tests, fix copying rt_info in the transformation

* fix warning, enable bf16, f64 ti tests

* codestyle

* fix functional tests

* EliminateDuplicateTIInputs transformation, fix copy_with_new_inputs method of TI op

* move EliminateDuplicateTIInputs transformation

* codestyle
2022-11-17 13:27:20 +04:00
Mateusz TabakaandMichal Lukaszewski e752ff753b Simplify dequantization sub-graph detection (#13906)
DisableConvertConstantFoldingOnConstPath was renamed to MarkDequantizationSubgraph
and modified such that it also marks Subtract and Multiply from dequantization subgraph
with 'DequantizationNode' attribute.

Ticket: 65489

Co-authored-by: Michal Lukaszewski <michal.lukaszewski@intel.com>
2022-11-16 14:30:24 +04:00
Mateusz Tabaka 985bdc1138 Enable SmartReshape in offline transformations (#13510)
Ticket: 79534
2022-11-16 07:37:15 +01:00
Tomasz Jankowski c5eb25d3ea Transformation component transition to OV namespace (phase 2) (#13557) 2022-11-15 04:40:48 +03:00
5eef0298d9 Transformation component transition to OV namespace (phase 1) (#13469)
* Move GeluFusion into ov namespace

It required to move utils as well.

* Move AddFakeQuantizeFusion into ov namespace

* Move AlignEltwiseInputRanks into ov namespace

* Move BatchToSpaceFusion into ov namespace

* Move BinarizeWeights into ov namespace

* Move BroadcastElementwiseFusion into ov namespace

* Move ClampFusion into ov namespace

* Move Concats and Eliminations into ov namespace

* Move many passes and such  into ov namespace

* Move many passes and such into ov namespace

ngraph_ops
op_conversions

* Move control_flow into ov namespace

* Apply style

* Move smart_reshape into ov namespace

* Move opset_conversions into ov namespace

* Move low_precision into ov namespace

* Apply style

* Move fused_names into ov namespace

* Add missing aliases

* Move few passes into ov namespace

ConvertPrecision
FixRtInfo
InitNodeInfo

* Move CommonOptimizations into ov namespace

* Fix convert_precision conflicting namespaces

* Apply code style

* ov-nize Type Relaxed definitions

* Remove useless aliases

bulkly added by script

* Revert opsets

* Address review comments

* Remove NGRAPH_RTTI

* Clean up remains of yet another implicit inclusion

Co-authored-by: Andrei Kochin <andrei.kochin@intel.com>
Co-authored-by: Ivan Tikhonov <ivan.tikhonov@intel.com>
2022-11-11 02:52:19 +03:00
Oleksii KhovanandMykhailo Hnap cf34d48e53 [GPU] MulticlassNMS (#13370)
* Single-layer test:
  - support both v8 and v9 in shared test;
  - add test for GPU.

* Transformation:
  - convert both v8 and v9 to internal operation;
  - add transformation to GPU pipeline.

* GPU primitive and CreateOp() for MulticlassNMS operation

* kernel stuff

* add unittests

* Added bs_fs_yx_bsv16_fsv32 format

* add int64 support

Co-authored-by: Mykhailo Hnap <mhnap@lohika.com>
2022-11-10 23:59:13 +09:00
Roman Kazantsev aaefe0a256 [Common] Unique decomposition: fix the single element case (#13918)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-11-10 01:25:43 +03:00
cecilia peng 3bdb9cae54 [CPU] add support for internal ops augrucell and augrusequence (#12647)
* [cpu] enable augru.

* initiate opset_private_tbl.hpp for private ops.

* fix ngraph_functions target_linker.

* temporaliy disable a failure test.
2022-11-09 05:58:04 +03:00
Mateusz BencerandMichal Lukaszewski 116f294a9a Introduce PullThroughReduce and ReduceReshapeFusion transformations (#13047)
* Initial version of PullThroughReduce and ReduceReshapeFusion transformation

* remove std namespace

* headers + namespaces clean-up

* resolved problem with ambiguous namespace

* clang format applied

* tests refactor. part 1

* tests refactor. part.2

* changed includes

* review remarks

* tests refactor. part.3

* review remarks

* fix build problem

* remarks

* fix reserving memory

* review remarks

* styles applied

* handle axes in the middle in try_get_unsqueeze_axes_from_reshape

* handle case of scalar input shape

Co-authored-by: Michal Lukaszewski <michal.lukaszewski@intel.com>
2022-11-08 17:33:04 +03:00
Roman Kazantsev 57eddaa239 [TF FE][Common] Use opset Unique in TF FE and move Unique decomposition to common (#13818)
* [TF FE][Common] Move TF FE to opset Unique and add Unique decomposing to common

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Add Unique decomposition transformation into the common part

* Add transformation tests for UniqueDecomposition

* Fix unique_decomposition_test

* Simplify condition of transformation applicability

* Clarify the comment when the transformation is applicable

* Fix transformation test

* Fix transformation test

* Add support of opset10 in IR Reader

* Mark the single element case as xfail

* Fix tensor names in the transformation

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-11-07 01:24:23 +03:00
Katarzyna Mitrus c953186ff0 GRU/AUGRUCell shape inference function (#13708)
* Add shape_infer function for GRUCell op

* Add shape_infer function for AUGRUCell

* Consts refactor

* Add batch_size check

* Enable GRUCell shape_infer for CPU

* Style apply

* Use OV_EXPECT_THROW in tests

* Use helper for input shapes

* Use .back() instead of index

* Change rnn_seq namespace to rnn

* Fix win warnings

* Enable AUGRUCell/Sequence shape_infer on CPU

* Fix warn

* Fix warn
2022-11-04 23:31:58 +03:00
Konstantin Beluchenko c6528ee4ea [GPU] Matrix NMS (#13137) 2022-11-02 18:16:57 +04:00
Ivan Tikhonov 8714cf643e Fix UnrollIf transformation to support nested If (#13654)
* Added a recursive call into UnrollIf transformation to support nested If unrolling
2022-10-28 03:49:52 +03:00
4ec5499c5d [FrontEnd] add control flow, basic tensor array support for paddle faster_rcnn model (#10684)
* support control flow, tensor array

* fix clang error

* support ppdet2.3 model

* 1. code clean; 2. more comments inlined.

* fix after clone ov::Model no more in need.

* support dynamic shape; more comments

* only process same rank

* remove unused function

* simplify the loop logic

* fix review comments

* support shape{1} {}

* disable FoldSubgraphEmptyInputs because loop in loop

* fix review comments

* remove scalar{}->shape{1} testcase

* allow re-infer shape when backedge changes input shape

* fix condition shape to {1}

* support output rank is not same or dynamic

* fix refactor error

* apply review comments

* fix win warnings

* remove TransformEliminateConvert

Co-authored-by: jialipen <cecilia.peng@intel.com>
Co-authored-by: Evgenya Stepyreva <evgenya.stepyreva@intel.com>
2022-10-27 18:36:24 +03:00
Mateusz Tabaka 154850e8ca Eliminate dequantization shift when zero point == 0 (#13353)
Ticket: 91111
2022-10-27 01:37:13 +02:00
Ilya Churaev 2a344b66cb Update to the latest cmake for Windows (#13604)
* Update to the latest cmake for Windows

* Skip new warnings

* Added compiler flags for old cmake

* Disabled some warnings

* Suppress new warnings

* Fixed some errors

* Disable some warning for lpt

* Fix some warnings

* Disable new warnings

* Fix some warnings

* Disabled Was error for arm

* Fixed some errors

* Fixed some new warnings

* Fixed auto plugin

* Fixed Windows warning

* Fixed Windows

* Disable some warnings

* Some changes

* Small test fixes

* Fixed python build

* Added skip warnings for legacy python API
2022-10-25 18:11:46 +04:00
Evgeny KotovandNadezhda Ageeva bea82ec92b TransposeSinking for unary backward and forward propagation (#13263)
* move transformation to common; use opset9; fix Gelu and Softsign operations; misc fixes

* cpplint fixes

* rename DoTransformation; use TransformationTestsF for testing

* test register_new_nodes working by creating multiple unary operations

* fix transformation constraints; add unit test on it

* remove unneeded headers

* remove unneeded comments

* fix tests iteration types

* rename unit test

* parametrized input shape and type

* swap nodes instead of creating new

* transpose can have not just a constant node on the 1-st input

* Update src/tests/functional/inference_engine/transformations/common_optimizations/transpose_sinking_unary.cpp

Co-authored-by: Nadezhda Ageeva <nkogteva@gmail.com>

* Update src/tests/functional/inference_engine/transformations/common_optimizations/transpose_sinking_unary.cpp

Co-authored-by: Nadezhda Ageeva <nkogteva@gmail.com>

* Update src/tests/functional/inference_engine/transformations/common_optimizations/transpose_sinking_unary.cpp

Co-authored-by: Nadezhda Ageeva <nkogteva@gmail.com>

* clang cleanup

* return back nodes swapping; wrote additional unit tests

* add unit tests

* fix unit tests namespace

* add unit tests

* remove debug

* cpplint fixes

* use 2 ways of swapping: nodes and outputs

* clang fixes

* move choise descision into separate function

Co-authored-by: Nadezhda Ageeva <nkogteva@gmail.com>
2022-10-20 13:20:35 +04:00
Artur Kulikowski e12983e82c Copy runtime info in RIC fusion transformation (#13490)
* Copy runtime info in RIC fusion transformation

* Use ov namespace

* Iterate over const refs instead of use iterator
2022-10-18 16:30:53 +02:00
Ivan TikhonovandIlya Churaev 8e130391f0 EliminateSplitConcat transformation (#13373)
* SplitConcatElimination transformation

* ov namespace

* fix: add an additional check for split

* Fix lpt tests: added unary op between Split and Concat to avoid elimination

* add additional check in SplitConcatElimination, add new tests

* apply review comments, add detailed description of the special case

* apply review comments

* clean up

* apply review comments

* Apply suggestions from code review

Co-authored-by: Ilya Churaev <ilyachur@gmail.com>

* codestyle

Co-authored-by: Ilya Churaev <ilyachur@gmail.com>
2022-10-18 11:03:52 +04:00
Katarzyna Mitrus 844b0a2682 [shape_infer] Shape inference function for GRU/AUGRUSequence operations (#12982)
* shape_infer function for gru_sequence

* Reuse gru sequence shape infer for augru shape infer

* link ov_shape_inference in transformations

* Move attention input validation to shape_infer

* Update gru_sequence type prop tests

* type prop tests update

* gru_sequence shape_infer tests

* Update merged dimensions init

* Enable GRUSequence shape_infer in cpu

* Comments update

* Align error messages

* Change constexpr int to size_t in tests

* Apply types refactor

* Remobe set_input_is_relevant_to_shape from gru/augru_sequence

* Style apply

* revert constexpr for result_et

* Uninitialize valid_num_directions variable
2022-10-12 10:35:54 +04:00
Oleksii Khovan 66b5f9acf2 [GPU] GenerateProposals-9 (#11994)
* add static_output attribute to enable GPU implementation of GenerateProposals.
This change may be reverted when dynamic shapes support will be implemented
in GPU plugin.

* - add GPU single layer test;
- add normalized attribute to SLT.

* add GPU primitive for GenerateProposals

* add kernel for GenerateProposals

* add unit test for GenerateProposals

* add blocked layouts support

* tidy up

* support blocked layouts also for 2nd and 3d outputs

* Transformation to deal with dynamic output in GPU
  - revert changes in GenerateProposals interface and shape inferenece;
  - add transformation;
  - custom compare method in single-layer test.

* address review comments

* fix after rebase

* fix after rebase

* review comment: added nms_eta to testcase name generation

* - added input types combination to functional tests;
- fix float16 comparison.

* fix after rebase

* use vector for input ids

* fix after rebase
2022-10-11 21:10:32 +09:00
Ilya Churaev 8a9c19e3eb Warning as error for Windows (#13291)
* parent 6e7016ccda
author Ilya Churaev <ilya.churaev@intel.com> 1664281499 +0400
committer Ilya Churaev <ilya.churaev@intel.com> 1664510018 +0400

Fixed warnings on local machine

* Added CMAKE_COMPILE_WARNING_AS_ERROR usage

* Fixed style

* Fixed merge conflicts

* Fixed typo

* Fixed myriad build for macOS

* Fixed warning

* Fixed tests

* Disabled incorrect test

* Try to fix linux tests

* Revert "Try to fix linux tests"

This reverts commit 29224c93ff.

* Fixed tests

* Revert logic with incorrect cast

* Fixed log softmax

* Disable warning as error for cuda

* Try to fix inference_engine_s

* Fixed cmake

* Revert "Fixed cmake"

This reverts commit 87e9e4e674.

* Revert "Try to fix inference_engine_s"

This reverts commit a1adca8b05.

* WA for static symbols in inference_engine_s test library

* Fixed code style

* Fixed static definition for master

* Revert "Fixed static definition for master"

This reverts commit 20d00d215a.

* Revert "Fixed code style"

This reverts commit 0eb2362543.

* Revert "WA for static symbols in inference_engine_s test library"

This reverts commit 75ef86a79d.

* Fixed linker issue for Windows

* Disable WaE by default

* Disable warning as error in the developer package

* Try to fix dev package

* Try to fix Windows Jenkins

* Revert old behavior for tread_warn_as_err variable
2022-10-06 13:44:21 +04:00
Nadezhda AgeevaandIvan Tikhonov 45052f19be [MO] cleanup fused names after all transformations (#12906)
Add test

Update src/common/transformations/include/transformations/common_optimizations/fused_names_cleanup.hpp

Co-authored-by: Ivan Tikhonov <ivan.tikhonov@intel.com>

Review comments

Cleanup test includes
2022-10-03 18:53:13 +04:00
Ivan Tikhonov 4f002c46b9 SequenceFusion transformation (#12845)
* SequenceFusion transformation and tests

* Enable SequenceFusion transformation in MOC

* add missed includes

* fix type

* fix build, apply review comments

* fix build

* fix build

* fix build again

* use ov namespace in has_result_consumers function

* fix win build

* try to fix win build

* investigate issue on win platform

* investigate issue on win platform

* investigate issue on win

* issue on win platform

* remove the transformation from MOC

* fix LSTMCell fusion, simplify transformation implementation, fix copying tensor and friendly names

* clean up

* add support for LSTMCell v0, resolve review comments, enable additional tests
2022-10-03 10:36:54 +04:00
Mateusz Tabaka 0c54905587 Use Output<Node> of If inputs to replace its body parameters in UnrollIf (#13287)
Fixes case when input node to a an If operator has multiple outputs itself.

Ticket: 93116
2022-10-03 08:35:43 +02:00
Roman Kazantsev 52cf4eacd1 [MO, Common] Fix SplitConcatPairToInterpolateFusion transformation (#13286)
* [MO, Common] Fix SplitConcatPairToInterpolateFusion transformation

It fixes a case when Split go with disconnected output port.
For this case, this transformation must not be applied.

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Fix grammar mistake in the comment

* Remove ref_function from the test

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-09-29 17:41:55 +00:00
Ivan Tikhonov 1fde27bb62 Change debug information format from Z7 to Zi for transformation library on Windows (#13250)
* Change debug informaiton format from Z7 to Zi for transformation library. Temporary workaround for LNK1248: image size (1004722F6) exceeds maximum allowable size (FFFFFFFF)

* add WIN32 check
2022-09-28 15:55:16 +04:00
Vladimir Paramuzov 5500aed209 [GPU] Additional pattern for GELU fusion (#12928) 2022-09-23 09:06:55 +04:00
Ivan TikhonovandIlya Churaev af7384f8c9 GRUCell fusion transformation (#12843)
* GRUCell fusion transformation and tests

* Enable GRUCell fusion transformation in MOC

* add missed include

* add missed include again

* fix warning in the tests

* Apply review comments

* Use NodeRegistry in GRUCellFusion transformation, apply review comments

* Add support for both formats zrh and rzh

* move additional checks to pattern, remove the transformation from MOC

* fix conflict with master branch

* apply review comments

* Update src/tests/functional/inference_engine/transformations/common_optimizations/gru_cell_fusion.cpp

Co-authored-by: Ilya Churaev <ilyachur@gmail.com>

* fix warning

Co-authored-by: Ilya Churaev <ilyachur@gmail.com>
2022-09-23 07:21:13 +04:00
Ivan Tikhonov 77ba4ab6dd AUGRUCell fusion transformation (#12844)
* AUGRUCell fusion transformation and tests

* add missed includes

* Apply review comments

* Apply review comments

* fix build

* Enable accuracy tests

* change supported  weights format from zrh to rzh

* update submodule version

* resolve review comments

* add additional checks to pattern

* fix conflict with master
2022-09-22 14:21:05 +03:00
Ivan Tikhonov f2c0e0b4d7 Upgrade broadcast from v1 to v3 in SequenceToTi transformation (#12922)
* upgrade broadcast in SequanceToTensorIterator transformation, fix broadcast serialization

* codestyle
2022-09-22 07:48:30 +04:00
Mateusz Tabaka 96fb6ba4a6 DilatedConvolutionConverter - disallow negative pads (#13055) 2022-09-16 01:02:44 +03:00
Mateusz Tabaka 101462100b StridesOptimization - remove strides property from current node's target inputs (#13054)
StridesOptimization propagates strides attributes up the graph.
This attribute is kept in Input<Node> runtime info.
There is a case in CUDA plugin, where StridesOptimization is called
twice and if strides attribute is kept in node's runtime info,
the second run of this transformation tries to propagate strides
once again which can result in shape inference failure.
2022-09-16 00:00:53 +02:00
Pawel Raasz cb4ff55d88 Lto1 internal compiler error (#12863)
* Refactor eye decomposition:
- match style of other transformations
- add NodeRegister class to make and collect created nodes
- use `NodeRegister` in transformation for copy runtime info
- use `NodeRegister` in `MatcherPass` to replace new `register_new_node`

* Fix CI LTO optimization issue for Ubuntu 20

* Move NodeRegister to dev API
To fix LTO issue for eye decomposition

* Change NodeRegister to NodeRegistry

* Move NodeRegistry to openvino/pass

* Remove NodeRegistry from public API
2022-09-15 07:27:02 +04:00
Pawel Raasz 6c4cc81465 Add decomposition transformation for eye 9 (#12806)
* Add eye decomposition transformation

* Fix EyeLike generation when diagonal shift
outside dimensions

* Add batch shape to eye decomposition

* Eye decomposition clean-up

* Remove reference part if no eye decompose in
decomposition tests

* Eye-Like use eye operator

* Disable eye decomposition for CPU plugin

* Use opset9 instead of ops in eye decomposition

* Apply transformations header style
to eye_decomposition.hpp

* Add model reference in eye decomposition tests
- use opset9 instead of ov::op:vX namespace

* Refactor eye decomposition:
- match style of other transformations
- add NodeRegister class to make and collect created nodes
- use `NodeRegister` in transformation for copy runtime info
- use `NodeRegister` in `MatcherPass` to replace new `register_new_node`

* Fix CI LTO optimization issue for Ubuntu 20

* Move NodeRegister to dev API
To fix LTO issue for eye decomposition

* Change NodeRegister to NodeRegistry
2022-09-01 09:59:37 +02:00
Alina Kladieva cbd47ca7aa Revert "Add decomposition transformation for eye 9 (#12746)" (#12804)
This reverts commit 7601400d99.
2022-08-29 20:01:45 +04:00
Evgenya Stepyreva 79f1e720e7 Resolve comments 12736 (#12778)
* Comments resolving

* Style and getting rid of asserts

* style

* Update src/common/transformations/src/transformations/smart_reshape/lstm_states_broadcast.cpp
2022-08-29 10:16:49 +04:00
Pawel Raasz 7601400d99 Add decomposition transformation for eye 9 (#12746)
* Add eye decomposition transformation

* Fix EyeLike generation when diagonal shift
outside dimensions

* Add batch shape to eye decomposition

* Eye decomposition clean-up

* Remove reference part if no eye decompose in
decomposition tests

* Eye-Like use eye operator

* Disable eye decomposition for CPU plugin

* Use opset9 instead of ops in eye decomposition

* Apply transformations header style
to eye_decomposition.hpp

* Add model reference in eye decomposition tests
- use opset9 instead of ov::op:vX namespace

* Refactor eye decomposition:
- match style of other transformations
- add NodeRegister class to make and collect created nodes
- use `NodeRegister` in transformation for copy runtime info
- use `NodeRegister` in `MatcherPass` to replace new `register_new_node`

* Fix CI LTO optimization issue for Ubuntu 20
2022-08-28 17:35:50 +02:00
Katarzyna Mitrus 67f4b8ee66 AUGRU op ov core shell and reference implementation (#12163) 2022-08-26 17:33:10 +03:00
Evgenya Stepyreva 3731913049 Make model reshape and track batch (#12736)
* CVS-89672 Make model reshape and track batch

* Minor refactoring

* Changed mechanism of constant replacement to more mature

* Update src/common/transformations/include/transformations/smart_reshape/lstm_states_broadcast.hpp

* Update src/common/transformations/src/transformations/smart_reshape/lstm_states_broadcast.cpp
2022-08-26 12:05:34 +04:00
Alina Kladieva 10bd602987 Revert "Add decomposition transformation for eye 9 (#12403)" (#12741)
This reverts commit ed7275adf0.
2022-08-24 23:23:20 +04:00
Pawel Raasz ed7275adf0 Add decomposition transformation for eye 9 (#12403)
* Add eye decomposition transformation

* Fix EyeLike generation when diagonal shift
outside dimensions

* Add batch shape to eye decomposition

* Eye decomposition clean-up

* Remove reference part if no eye decompose in
decomposition tests

* Eye-Like use eye operator

* Disable eye decomposition for CPU plugin

* Use opset9 instead of ops in eye decomposition

* Apply transformations header style
to eye_decomposition.hpp

* Add model reference in eye decomposition tests
- use opset9 instead of ov::op:vX namespace

* Refactor eye decomposition:
- match style of other transformations
- add NodeRegister class to make and collect created nodes
- use `NodeRegister` in transformation for copy runtime info
- use `NodeRegister` in `MatcherPass` to replace new `register_new_node`
2022-08-24 17:59:25 +03:00
River Li 752cce38ad [CC] enable cc in core/src/pass (#12547)
* Enable CC for src/core/src/pass

* Enable more run_on_model
2022-08-16 07:15:24 +04:00
Mateusz Tabaka c328db5aac Set dontReverseIndices to Gather if its indices come from NMS v9 (#12478)
Ticket: 86909
2022-08-10 11:31:39 +02:00
Min, Byungil f6a7d72a92 [GPU] resolve WA of using clDNN reduce (#11823)
+ Resolved layout mismatch of unreduced axes in creating onednn descriptor
+ Removed redundant reduce in ngraph

Signed-off-by: Min, Byungil <byungil.min@intel.com>
2022-08-09 09:52:30 +09:00
Mateusz Bencer 3d337ccbbb Extend RIC fusion transformation to support quantized weights (#12028) 2022-08-05 12:03:49 +02:00