Commit Graph
614 Commits
Author SHA1 Message Date
Jozef Daniecki 4b1efeb858 Group convolution (#3995)
* GroupConvolution SLT style refactoring.

* Add GroupConvolution 1D SLT.

* Add GroupConvolution Serialization SLT.

* Add GroupConvolution ref impl to evaluates_map.

* Add GroupConvolution ref impl.

* Fix compilation on master.

* GroupConvolution specification update.

* Readability refactoring.

* Specification refactoring.

* Added 'output' section in GropuConvolution spec.
2021-02-03 16:07:01 +03:00
iliya mironov 1419e05032 Add python api for CTCGreedyDecoder (#3947)
* Add python api for CTCGreedyDecoder

* Fix code style

* Fix unit test

* Fix code style

* Fix unit tests

* Fix python tests

* Fix python tests

* Fix python tests

* Fix according to code review

* fix

* Fix api

* fix unit tests

* Fix unit test

* Fix python api
2021-02-03 14:53:53 +03:00
Vladimir Gavrilov 6cf8a9f935 Network reading failure in IE for operations ExperimentalDetectronPriorGridGenerator and ExperimentalDetectronROIFeatureExtractor (#4014)
* Commit.

* Small fix in validation of the nGraph operation ExperimentalDetectronPriorGridGenerator.

* Fixes in the validation of the nGraph operation ExperimentalDetectronROIFeatureExtractor.

* Added more tests for shape infer function of the nGraph operation ExperimentalDetectronPriorGridGenerator.

* Code style fix.

* Added more tests for shape infer function of the nGraph operation ExperimentalDetectronROIFeatureExtractor.

* Fixes in the test type_prop.detectron_roi_feature_extractor_intervals_1.

* Some code style fixes.

* Started to rewrite the test type_prop.detectron_roi_feature_extractor_intervals_1 as a parametrized test.

* Added some tests to parametrized test of ExperimentalDetectronROIFeatureExtractor.

* Some code style fixes.

* Small code style fix.

* The test type_prop.detectron_roi_feature_extractor_intervals_1 was rewritten as a parametrized test.

* Deleted the method run_roi_feature_test().

* All type_prop tests for ExperimentalDetectronROIFeatureExtractor are parametrized.

* Added parametrized variant of the test detectron_grid_generator_dynamic_shapes_intervals_1.

* Small fix.

* Some changes.

* Some fixes.

* Now we have two parametrized tests of ExperimentalDetectronROIFeatureExtractor shape infer, not one.

* Code style fix.

* Deleted duplicate of tests.

* Yet another test is parametrized.

* Small fix.

* Deleted some duplicates of tests.
2021-02-03 13:15:21 +03:00
Nikolay Shchegolev 4d9a030ff2 [CPU] Enable CTCGreedyDecoderSeqLen. (#3890) 2021-02-03 12:36:41 +03:00
Patryk ElszkowskiandPatryk Elszkowski 461a71b641 ngraph Constant operator - add const for c-tor input parameters (#4091)
Co-authored-by: Patryk Elszkowski <patryk.elszkowki@intel.com>
2021-02-03 07:50:50 +03:00
Maxim Vafin 0b3ff5edc2 Add MO support for MVN-6 (#3772)
* Add MO support for MVN-6

* Apply review feedback

* Apply review feedback

* Enable MVN-6 decomposition

* Fix shape_infer issue

* Fix MVN6 decomposition

* Fix build

* Fix tests

* Small fix

* Add MVN-6 reader test

* Apply feedback

* Apply review feedback

* Fix onnx test failure
2021-02-02 17:45:56 +03:00
Tomasz Jankowski cc000e57e0 Enable GatherElements tests on IE_CPU (#4044) 2021-02-02 12:59:44 +01:00
Gladilov, Gleb 1f707610d6 [IE][nGraph][VPU]: Enables DTS for Loop (#3838)
* [IE][nGraph]: Enables const overload for SubGraphOp::get_function
* [IE][nGraph]: Deletes SubGraphOp copy constructor

SubGraphOp has clone_with_new_inputs function for
deep coping, while default copy constructor does
some kind of shallow one. In order to avoid
confusion, copy constructor is deleted since it's
unused anyway.

* [IE][nGraph]: Enables protected Loop copy constructor

Additional clone method is introduced in order to reuse
Loop::clone_with_new_inputs implementation.
Loop::clone_with_new_inputs implementation at the same
time is refactored, since there were extra job that
does not needed to be done there.

* [IE][VPU][nGraph]: Introduces StaticShapeLoop

StaticShapeLoop is a class derived from Loop
to override validate_and_infer_types method
in order to propagate upper-bounds through the
function instead of dynamic tensors.

It uses maximum_value estimation to get
upper-bound for iterations count in case if
it is dynamic.

* [IE][VPU][nGraph]: Refactors function validators in DTS

The same approach (nGraph operation to functor map) as
for DTS shape functors is used since validation is
operation type specific.

* [IE][VPU][nGraph]: Enables DTS for Loop

Only loops with inputs dynamic in batch
(iterations count) and static body are supported.
2021-02-02 13:06:34 +03:00
Evgenya Stepyreva f1ffe4f9fd nGraph value propagation (#3368)
* partial value and shape propagation

* TopK k propagation

* stylish commit

* style again

* Precalc Folding and broadcasting fix

* style

* Self review

* forgetting the unused values

* deleting unused variables

* Review

* self review

* disaster mistake fixed

* tests corrected

* mod to be inferred while creation

* LPT test fix

* tests fixes

* fix

* tests

* dynamic backend fix

* comments

* disable propagation
2021-02-02 12:03:56 +03:00
Jozef Daniecki c1b0b03750 Convolution (#3922)
* Move Convolution and ConvolutionBackpropData ref impls into separate files.

* Add convolution unit tests.

* New convolution reference implementation.

* Remove unused convolution ref impl argument.

* Fix style.

* Revert "Remove unused convolution ref impl argument."

This reverts commit 739065d0d0.

* WA for arm-plugin: additional include with ConvolutionBackpropData.

* Style format in Convolution SLT CPU instantiation.

* Add 1D Convolution SLT CPU tests.

* Add Convolution Serialization SLT.

* Update source banners with 2021 date.

* Specification review.

* Readability improvement in padding detection.

* Refactoring regarding Tensor usage.

* Iteration over tensor slices made more readable.

* Code refactored to use only one convolution implementation.

3D convolution is used to compute also in 1D & 2D case (parameters,
inputs and filters shapes are adjusted accordingly).

* Removed Tensor abstraction.

* Name unnamed namespace as convolution_details.

* Refactoring: replaced std::next + negative index with std::prev.

* Specification refactoring.

* Revert "Name unnamed namespace as convolution_details."

This reverts commit cea526ec49.

* Added new convolution() overload.

* Fix legacy convolution() overload (needed for kmb-plugin).

* Reduced number of template type arguments in convolution ref impl.

* Added 'output' section in Convolution spec.

* Remove floating round type configuration.
2021-02-02 11:05:39 +03:00
Maxim Andronov 537179b235 [CPU] FakeQuantize decomposition (#3741) 2021-02-02 09:37:02 +03:00
Gleb Kazantaev cca0d568e0 WrapType Improvements (#4040)
* Extended WrapType to consume multiple types; Added variadic wrap_type support

* Updated transformations to use wrap_type

* Fix BatchNormDecomposition

* Added tests
2021-02-02 09:27:05 +03:00
Michał Karzyński 3a86b3a17e Update ONNX dependency to v 1.8.1 (#4114) 2021-02-02 07:05:26 +03:00
Nikolay TyukaevandNikolay Tyukaev 0ecc360664 fix comments ngraph api - master (#3519)
* fix comments ngraph api

* remove whitespace

* fixes

Co-authored-by: Nikolay Tyukaev <ntyukaev_lo@jenkins.inn.intel.com>
2021-02-02 07:01:58 +03:00
Chenhu Wang 4570550636 [CPU] Interpolate node: 5d support for onnx_linear mode (#3471) 2021-02-01 19:25:57 +03:00
Ewa Tusień 80781ff359 Add MVN-6 op to ONNX importer (#4012) 2021-02-01 12:39:39 +01:00
Yury Gaydaychuk 7500bbd3b1 [CPU] ROIPooling with 1x1 pooled shape in bilinear mode fixed (#4020) 2021-01-29 15:09:39 +03:00
Ilya Churaev 2ebae7cf30 Introduce the Broker API to map original framework names to OV (#3800)
* Added tests

* Fixed tests

* Added tests to check addOutput method

* Added support of port names in the IR

* Update copyrights

* Deprecate tensor name

* Fixed comments

* Enabled functional tests for GPU, GNA and Myriad

* Fixed get_tensor().get_names()

* Added unit test to check tensor names

* Fixed code style

* Skip add output test for GNA

* Added serialization support

* Added PythonAPI

* Fixed tests

* Fixed tests

* Fixed typo

* Try to disable GNA test

* Fixed tests

* Removed unused variables

* Fixed tests

* Update documentation

* Fixed comment
2021-01-29 06:28:31 +03:00
Ilya Lavrenov 117c04def1 Fixed compilation of ngraph python on some compilers (#4015)
* Fixed compilation of ngraph python on some compilers

* Fixed ONNX importer dependencies compilation for gcc 5.4.0 and 5.5.0
2021-01-28 18:58:10 +03:00
Mateusz Bencer b90f908c58 Enable Bersquad-10 in ONNX CI (#3889) 2021-01-27 10:22:16 +01:00
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
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
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
Nikolay Shchegolev 245bc33e8a [CPU] GatherElements implementation. (#3860) 2021-01-26 09:53:20 +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
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
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
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
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
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
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
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
Patryk ElszkowskiandPatryk Elszkowski 187813a3f6 [BUG]Add extra op clone to have default inputs/outputs set. (#3855)
* Add extra op clone to have default inputs/outputs set.

* Call `validate_and_infer_types` after clone for TensorIterator and Loop

* Add gtest to check if default values works with dynamic shapes

* Apply suggestions from PR.

Co-authored-by: Patryk Elszkowski <patryk.elszkowki@intel.com>
2021-01-21 13:02:21 +03:00
Mateusz Bencer d4f774f3c7 update manifest (#3939) 2021-01-21 09:06:11 +01:00
Gabriele Galiero Casay e026d54ed2 Develop ConvertLike Reference Implementation (#3857)
* ConvertLike: Develop reference implementation

* ConvertLike: Enable single layer tests for GPU plugin

* ConvertLike: Enable bf16 precision for evaluate method

* ConvertLike: Add unit tests

* ConvertLike: Add dynamic shape test case

* ConvertLike: Remove unnecessary ngraph namespace and using declaration for v1::ConvertLike

* ConvertLike: Simplified reference::convert by using std::enable_if
2021-01-21 08:31:10 +03:00
Vladislav Golubev ef72e21213 [LPT] StridedSlice Transformation (#3817)
* [nGraph] evaluate_strided_slice: replace read_vec to host_tensor_2_vec

* [LPT] StridedSliceTransformation
2021-01-21 00:15:37 +03:00
Vladimir Gavrilov 318db6eccc Implement ExperimentalDetectronROIFeatureExtractor operation as nGraph op (#3739)
* Commit.

* Written the header file of the nGraph operation ExperimentalDetectronROIFeatureExtractor.

* Started to write cpp-file for the nGraph operation ExperimentalDetectronROIFeatureExtractor.

* Deleted in_ports_count attribute for the MO operation ExperimentalDetectronROIFeatureExtractor.

* Written validate_and_infer_type() method of ngraph::op::v6::ExperimentalDetectronROIFeatureExtractor.

* Code style fixes.

* Code style fixes.

* Small fixes.

* Code style fixes.

* Now operation ExperimentalDetectronROIFeatureExtractor is read as nGraph operation ExperimentalDetectronROIFeatureExtractor.

* Implemented op::v6::ExperimentalDetectronROIFeatureExtractor::clone_with_new_inputs().

* Added macro NGRAPH_OP_SCOPE to the cpp-file of the nGraph operation ExperimentalDetectronROIFeatureExtractor.

* Fixes in some tests.

* Code style fix.

* Fixed yet another test for ExperimentalDetectronROIFeatureExtractor.

* Added tests for reading ExperimentalDetectronROIFeatureExtractor as operation from opset6.

* Added more test for reading ExperimentalDetectronROIFeatureExtractor as operation from opset6.

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

* Corrected ngraph/test/CMakeLists.txt.

* Small changes.

* Code style fix.

* Small fixes.

* Added ctor of ExperimentalDetectronROIFeatureExtractor with NodeVector as argument.

* Added setting the attribute in_ports_count when the MO operation ExperimentalDetectronROIFeatureExtractor is creating in the MO transformation ONNXMaskRCNNTransformation.

* Added shape infer for the second output of the nGraph operation ExperimentalDetectronROIFeatureExtractor.

* Written shape infer tests for nGraph operation ExperimentalDetectronROIFeatureExtractor (case when input shapes are partially dynamic).

* Small fixes.

* Code style fix.

* Deleted redundant &expected_channels.

* Code style fix.

* Small refactoring.

* Small fixes.

* Small changes.

* Small fixes.

* Deleted attribute distribute_rois_between_levels of ExperimentalDetectronROIFeatureExtractoe.

* Deleted attribute preserve_rois_order of ExperimentalDetectronROIFeatureExtractoe.

* Deleted attribute image_id of ExperimentalDetectronROIFeatureExtractoe.

* Now MO generates attribute 'aligned' of ExperimentalDetectronROIFeatureExtractor only with values 'true' or 'false'.

* Small fix.

* Fix in the conversion of the attribute 'aligned' of MO operation ExperimentalDetectronROIFeatureExtractor to string.

* Tabs were replaced by spaces in some XMLs.

* Tabs were replaced by spaces in ngraph_reshape_tests.cpp.

* Fixed copyrights.

* Applied small patch to IREngine from PR https://github.com/openvinotoolkit/openvino/pull/3814.

* Tabs were replaced by spaces in cnn_ngraph_impl_tests.cpp.

* op::v6::ExperimentalDetectronROIFeatureExtractor::validate_and_infer_types() was rewritten using operator & for channels.

* Added tests for input shapes of op::v6::ExperimentalDetectronROIFeatureExtractor in the case when inputs shapes consist of intervals.

* Fixes in test type_prop.detectron_roi_feature_extractor_intervals.
2021-01-20 16:20:54 +03:00
Mateusz Bencer 4e33dac7fa Set output blobs precision for IE tests (#3905)
* Calling SetPrecission on cnn network outputs

* added tests

* get_output_name refactor

* add missing test file

* run tests on all backends (or disable if backend is not available)

* fixed tests

* fixed TestEngine
2021-01-20 10:26:41 +03:00
Tomasz Jankowski 35384a63a6 [nGraph][ONNX] Extend ONNX Importer for operation "GatherElements-6" (#3822) 2021-01-19 14:42:24 +01:00
Ilya Churaev 94b98c484c Fix nGraph doxygen for master (#3899)
* Changed style of some headers

* Fixed shared buffer

* Remove chrome_trace

* Fixed comment
2021-01-19 13:39:32 +03:00
Ilya Churaev e82018221c Added CC macro to transformations (#3795)
* Added CC macro to transformations

* Fixed typo

* Added MATCHER_SCOPE

* Fixed review comments

* Try to remove MATCHER_CALLBACK_SCOPE

* Fixed matcher name

* Fixed MATCHER_SCOPE

* Added documentation

* Fixed typo

* Fixed CC for linux

* Fixed names

* Fixed docs

* Fixed typo

* FIxed comments

* Add more CC macros
2021-01-19 10:19:25 +03:00
Mateusz Bencer 4d98d7ceee ONNX tests mismatch error (#3836) 2021-01-18 12:39:32 +01:00