Commit Graph

2535 Commits

Author SHA1 Message Date
Gleb Kazantaev
b6d9dba444
Generic LoadTime Optimizations (#4011)
* Updated container passes to return false to avoid excess function validation

* Added support for nested GraphRewrite registration

* Updated passes to use MatcherPass; Reorganized CommonOptimizations pipeline

* Disable node validation when graph is not modified
2021-01-27 11:53:11 +03:00
Alexey Suhov
68f2507811
[dependencies.cmake] Add license to tbb archive (#4018) 2021-01-27 00:33:27 +03:00
Vladislav Golubev
9371393311
[IE CLDNN] StridedSliceTransformation removed from GPU plugin (#4016) 2021-01-26 18:44:29 +03:00
Bartosz Sledz
247606baf6
Add support for nonconstant optional NMS-5 inputs (#3640) 2021-01-26 14:41:28 +01:00
Gorokhov Dmitriy
d58b4c65c8
[CPU] Plugin migration on oneDNN (v1.6) (#3725) 2021-01-26 16:31:10 +03:00
Mikhail Treskin
0284cd69a8
Remove Fake Quantize OP decomposition (#3506)
* Remove Fake Quantize OP decomposition

* Fix FQ OP inheritance
2021-01-26 14:53:31 +03:00
Andrey Dmitriev
9817b22295
[GNA] Fix ParseBlobName and message for output layer names (#3527) 2021-01-26 14:23:36 +03:00
Ilya Churaev
2931cabf44
Add a target to fetch and build Intel SEAPI (#3915) 2021-01-26 13:16:51 +03:00
Andrew Bakalin
0772bbd302
[IE COMMON] Fixes for EliminateUnsqueezeGather transformation (#4013) 2021-01-26 12:42:36 +03:00
Michał Karzyński
f76e1d9d56
Update ONNX build dependency to v 1.8 (#3716) 2021-01-26 10:37:06 +01:00
dependabot[bot]
c203e7e95f
Bump tox from 3.20.1 to 3.21.2 in /ngraph/python (#4003) 2021-01-26 10:25:35 +01:00
Szymon Durawa
0791987491
Add Loop serialization, SLT and regular test. (#3980)
* Add Loop serialization, SLT and regular test.

* Remove loop test from SerializationTensorIteratorTest, add bin for test loop xml.

* Remove metadata section from loop xml file.

* Remove m_num_iterations initialization, it is done during validate_and_infer_types().
2021-01-26 12:25:06 +03:00
Nikolay Shchegolev
245bc33e8a
[CPU] GatherElements implementation. (#3860) 2021-01-26 09:53:20 +03:00
Mateusz Tabaka
d5aa6d4fa1
Move ClampFusion before HSwishFusion and HSigmoidFusion (#3994)
HSwishFusion and HSigmoidFusion use Clamp in their patterns,
so that change allows for even more fusions.
2021-01-25 22:36:47 +03:00
Andrew Bakalin
09e2231720
[IE Common][VPU]: Fix small input size inference for dynamic model (#3847)
* eliminate Unsqueeze+Gather pair, when Gather gathers data by 1 dimension which was previously added by Unsqueeze which is actually doing nothing.
* calculate K only once in StaticShapeTopK. The problem happens when we have ShapeOf->Concat->ReduceMin subgraph for K evaluation. If we have a pretty small input size, the value that we received from ShapeOf may be less than one that it is concatenated with (e.g. ShapeOf 283 vs const 300), so ReduceMin returns 283. After ShapeOf elimination we don't have a chance to propagate 283 so we get 300 as a result and shape inference fail then. There are no problems with bigger input sizes just because ShapeOf always propagates value >300 and there are no such mismatch.
2021-01-25 19:17:32 +03:00
Sergey Lyubimtsev
ce0537bd1f
[CMake] Fixes for TBB tmp location (#3997)
* fixes for TBB tmp location:

- DL_SDK_TEMP path is not normalized, that leads to paths check mismatch in CMake conditions
- TBB is not downloaded again in a case tmp location is cleaned up and build restarted (TBB_DIR and TBBROOT are cache variables)

* use reset_deps_cache & update_deps_cache for TBB_DIR var.

* single  reset_deps_cache call
2021-01-25 19:06:12 +03:00
Edward Shogulin
cb266db570
[LPT] Disabling failed on GPU LPT StridedSlice plugin tests (#4001) 2021-01-25 18:13:42 +03:00
Szymon Durawa
0157800887
Remove layerCreator for logical ops. (#3970)
* Remove layerCreator for logical ops.

* Remove visit_attributes() for LogicalOr op.
2021-01-25 15:17:56 +03:00
Pavel Esir
efa5b6063a
[nGraph] Fix bound check for reference GatherElements (#3981)
* fix bound check for reference GatherElements

* apply review comments
2021-01-25 15:10:52 +03:00
Jan Iwaszkiewicz
647104f602
[nGraph][ONNX] WA for currently unsupported precisions (#3964) 2021-01-25 13:08:15 +01:00
Irina Efode
aa775cc0a1
[IE TESTS] Remove TEST_P(Range... from lib with shared_classes (#3999) 2021-01-25 14:45:05 +03:00
Anton Chetverikov
a4f28ffe3e
Fix restoring constant ops with old numbering (#3951)
* Add check to correct restoring constant ops with old numbering

* Resolve comments

* Update comment
2021-01-25 14:41:30 +03:00
Piotr Szmelczynski
96b2ffa9ab
Revise topk (#3819)
* Add visit_attribute and node validation check

* add type_prop test for default values

* style-apply

* Update node validation check for index_element_type

* Update type_prop test for default index_element_type

* Add index_element_type attribute to TopK_1 spec
2021-01-25 14:19:59 +03:00
Irina Efode
d3f0242f58
[IE TESTS] Remove random weights generation of blobs (#3998) 2021-01-25 14:09:45 +03:00
Ilya Lavrenov
8311b98222
Pre-deprecation of ICNNNetwork (#3887)
* Deprecated ICNNNetwork

* MKLDNN plugin: partially

* MYRIAD plugin: partially

* Fixed Myriad Plugin

* Improved GNA; fixed MKLDNN

* Fixed tests

* Fixed GNA

* Fixed unit tests linkage

* Removed ICNNNetwork from tests

* Removed obsolete tests
2021-01-25 14:09:03 +03:00
Sergey Lyubimtsev
298506fb14
Demo scripts improvements. (#3954)
* Demo script improvements.

 - Detect Visual Studio version installed into not-default location
 - Fix change directory for a case VS and OpenVINO resideds on different disks
 - Align indents

* fix indents
2021-01-25 12:23:07 +03:00
Bartosz Lesniewski
a7de2e7214
Remove ops from Layer Creator/ Node Converter - part 8 (#3979)
* remove equal op from layer creator

* remove greaterequal op from layer creator

* remove lstmcell op from layer creator

* remove psroipooling op from layer creator

* add missing newline

* alignment
2021-01-25 11:55:47 +03:00
Vladimir Paramuzov
a161ac35a0
[IE CLDNN] Disabled eltwise fusion to const node when second input is in data flow (#3993) 2021-01-25 10:34:18 +03:00
Vladimir Paramuzov
32ee3b9ac5
[IE CLDNN] Disabled v3 -> v1 conversion for Broadcast (#3991) 2021-01-25 10:24:53 +03:00
Bartek Szmelczynski
cdb9edddfc
Missing attr seriazliation (#3920)
* add override method for int since attribute keep_top_k from detection_output requires it

* remove if statement to prevent gtest tests duplicate names for avg_pool

* add single layer tests for seriazliation for AvgPool, PriorBoxClustered and DetectionOutput operators

* add apropiate styling of the code
2021-01-25 08:42:22 +03:00
iliya mironov
c083e7fb63
Imironov/ref ngraph ctc gready decoder (#3867)
* Add ctc gready decoder sec len op to ngraph

* Remove some comments

* Add second constructor

* Fix code style

* Fix code style

* Add unit tests

* Add tests to cmake

* Fix according to review

* Fix code style

* fix

* Change input layoyt

* Fix code style

* Add unit tests

* Add 3 input tensor check

* Update shell impl

* Fix code style

* Fix code style

* Add doxy gen

* Fix code style

* Update doxigen

* Update constructor description

* Fix code style

* Refactoring code

* fix code style

* Optimize op constructor

* Add macros. Optimize code for validate_and_infer_types

* Refactoring code

* Fix code style

* Fix code style

* Fix check blanck_index shape

* Fix code style

* Add ref impl

* Fix unit test for dynemic case

* Fix code style

* Fix copyryting

* reverse changes

* Update copyrite

* Add ref implemintation

* rollback

* Fix code style

* Fix code style

* Fix

* Add unit tests

* Refactoring ref impl

* Refactoring code style

* Fix code style

* Fix code style

* fix unit tests

* Refactoring code

* Refactoring code

* Fix code style

* Refactoring unit tests

* Fix style

* Fix style
2021-01-25 08:19:03 +03:00
Gleb Kazantaev
94b2cc1dad
Python API For compare_functions (#3938)
* Added python API for compare_functions

* Fixed compare_funcion constant comparision, graph traversal

* Add tests for python API functions

* Move CompareNetworks to separate python module

* Update python API tests

* Added dev package support

* ENABLE_TESTS

* Update constant comparator

* Fix merge conflict
2021-01-22 23:37:50 +03:00
Vladislav Golubev
2d39555191
ConcatTransformation naming fix (#3965)
* concat naming fix

* [LPT] concat with child and output plugin tests
2021-01-22 23:02:16 +03:00
Nikolay Tyukaev
c3347e1788
delete unwanted doc script (#3960) 2021-01-22 22:17:17 +03:00
Ilya Lavrenov
9cfe909e1e
Unused variables (#3963)
* Added -Wused-variable flag

* Fixes for clang compiler

* Removed wrong -Wno-error from protobuf compilation

* More fixes
2021-01-22 17:41:15 +03:00
Jozef Daniecki
86bf2c2bba
Add missing types in convertIE2nGraphPrc() test util function. (#3957) 2021-01-22 16:29:09 +03:00
Szymon Durawa
49cd55a5cc
Visitor api loop deserialization (#3894)
* Add on_adpater() implementation for special body parts.

* Remove NodeConverter and LayerCreator for Loop. Add WA for different number of inputs during Loop init by constructor and visit_attributes().

* Format files.

* Implement use case external_port_id=-1 for output port_map,change API for map_type_in_function.

* Replace GetStrAttr() with GetInt64Attr().

* Correct WA for input_offset when using visitorAPI. It shall search all input descriptions for duplicated indexes.

* Apply proper file format.

* Throw exception when input_offset < 0.

* Add more detailed description for input_offset WA.
2021-01-22 14:39:38 +03:00
Piotr Szmelczynski
d2ef8bf2f9
Revise reduce mean (#3786)
* Update spec

* create type_prop tests

* add reduce_mean type_prop tests to CMakeList

* Update spec

* fix typo

* Add dynamic type_prop tests

* style fix
2021-01-22 14:21:39 +03:00
Piotr Szmelczynski
e346bdde14
Maxpool fix bug (#3718)
* style-apply

* Update spec

* Remove maxpool back_prop method

* style-apply
2021-01-22 14:19:34 +03:00
Ilya Lavrenov
1044ed4352
Added export / import for Template and Hetero plugins (#3940)
* Added export / import for Template and Hetero plugins

* Added WA for Apple RTTI
2021-01-22 14:17:44 +03:00
Patryk Elszkowski
cce0328947
Cleanup in ngraph_test_utils.hpp/cpp (#3959)
Co-authored-by: Patryk Elszkowski <patryk.elszkowki@intel.com>
2021-01-22 13:02:33 +03:00
Patryk Elszkowski
5993383e31
[BUG] Serialize loses runtime info (#3903)
* rt_info serialization for ngraph::Node

* add test for it info serialization

* try to fix centos build

Co-authored-by: Patryk Elszkowski <patryk.elszkowki@intel.com>
2021-01-22 10:58:51 +03:00
Bartosz Lesniewski
9a5267f47b
Remove ops from Layer Creator/ Node Converter - part 7 (#3961)
* remove result op from layer creator

* remove squareddifference op from layer creator

* remove regionyolo op from layer creator

* fix indentation
2021-01-22 06:15:33 +03:00
Maxim Vafin
71253153ac
Add MVN-6 reference implementation and tests (#3896)
* Add MVN-6 reference implementation and tests

* Return old version reference

* Apply feedback

* Fix build
2021-01-21 21:08:32 +03:00
Ilya Lavrenov
4f932ade9d
Fixed CVS-47220 (#3958) 2021-01-21 20:44:12 +03:00
Piotr Szmelczynski
9857f6368d
Revise abs (#3931)
* remove type_prop test file for abs operator

* add abs operator to unary_ops

* remove abs type_prop from CMakeList
2021-01-21 18:58:21 +03:00
Vladimir Gavrilov
31dec9addf
Implement ExperimentalDetectronTopKROIs and ExperimentalDetectronGenerateProposalsSingleImage operations as nGraph operations (#3680)
* Commit.

* Written the header file for the nGraph operation ExperimentalDetectronTopKROIs.

* Written an implementation file of the nGraph operation ExperimentalDetectronTopKROIs.

* Small fix.

* Added the nGraph operation ExperimentalDetectronTopKROIs into the table of ops of opset6.

* Written the header file for the nGraph operation ExperimentalDetectronGenerateProposalsSingleImage.

* Code style fix.

* Written cpp-file of the nGraph operation ExperimentalDetectronGenerateProposalsSingleImage.

* Now the operation ExperimentalDetectronGenerateProposalsSingleImage is read as nGraph operation.

* Code style fix.

* Fix in ngraph/ops.hpp

* Added NGRAPH_OP_SCOPE to the nGraph class ExperimentalDetectronGenerateProposalsSingleImage.

* Added NGRAPH_OP_SCOPE to the nGraph class ExperimentalDetectronTopKROIs.

* Code style fix.

* Small fix.

* Added NGraphReshapeTests of ExperimentalDetectronGenerateProposalsSingleImage when ExperimentalDetectronGenerateProposalsSingleImage is considered as opset6 operation.

* Changed copyright year to 2021.

* Deleted the method ExperimentalDetectronTopKROIs::set_max_rois.

* Deleted redundant virtual.

* Now ExperimentalDetectronTopKROIs::validate_and_infer_types() handles all cases when input 0 and input 1 have static/dynamic rank independently.

* Code style fix.

* Small fix.

* Started to write shape infer tests for the nGraph operation ExperimentalDetectronTopKROIs.

* Written shape infer tests for the nGraph operation ExperimentalDetectronTopKROIs.

* Code style fix.

* Added checks of input shapes into ExperimentalDetectronGenerateProposalsSingleImage::validate_and_infer_types(). Started to write tests for ExperimentalDetectronGenerateProposalsSingleImage::validate_and_infer_types().

* Small fix.

* Fixes in ExperimentalDetectronGenerateProposalsSingleImage::validate_and_infer_types(). Written draft tests for ExperimentalDetectronGenerateProposalsSingleImage::validate_and_infer_types().

* Code style fix.

* Fixes in reshape tests for ExperimentalDetectronGenerateProposalsSingleImage.

* Added Doxygen documentation to the nGraph operation class ExperimentalDetectronGenerateProposalsSingleImage.

* Deleted methods validate_scores_shape and validate_deltas_shape of op::v6::ExperimentalDetectronGenerateProposalsSingleImage.

* Deleted methods validate_input_rois_shape and validate_rois_probs_shape of op::v6::ExperimentalDetectronTopKROIs.

* Added class descriftion for nGraph operations ExperimentalDetectronTopKROIs and ExperimentalDetectronGenerateProposalsSingleImage.
2021-01-21 18:55:29 +03:00
Roman Kazantsev
bacb8420f0
[MO] Implement TensorFlow 2 While and Keras RNN support in MO (#3573)
* [MO] Implement TensorFlow 2 While support in MO

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

* Add extractors for both While and StatelessWhile and do minor changes

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

* Improve update_body_graph function and manage graph names properly

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

* Fix a map for original name of parameters from body and cond

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

* Implement draft version of support of TF2 Keras RNN

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

* Implement Keras LSTM and GRU support in MO

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

* Improve code for Keras RNN support

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

* Finalize implementation of TF2 Keras RNN support in MO

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

* Apply the first part of the comments after review #1

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

* Avoid use of explicit values of port indices in the transformation

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

* Finalize code after the first-round review

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

* Apply comments after the second-round review

Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
2021-01-21 17:39:57 +03:00
Ilya Lavrenov
61ccde700f
Refactored VPU tests not to use old interfaces (#3888)
* Refactored VPU tests not to use old interfaces

* Added except of exceptions

* Commented failing part of HDDL tests
2021-01-21 15:05:12 +03:00
Svetlana Dolinina
05d97fa24a
Fixed issue with run stateful network with several infer requests on MKLDNNPlugin (#3711) 2021-01-21 15:01:03 +03:00