Commit Graph

308 Commits

Author SHA1 Message Date
Mateusz Bencer
7784b97bbc Relax shape inference for Split:v1 (#2444)
* Relaxed shape inference for Split

* added unit tests

* review remarks
2020-10-01 20:29:19 +03:00
Egor Churaev
a05333217c Support operation Interpolate-4 in OpenVINO (#1596)
JIRA: 26973
2020-10-01 11:41:51 +03:00
Piotr Szmelczynski
55451266c6 Host tensor 2 vector refactor (#2443) 2020-09-30 16:20:41 +02:00
Mateusz Tabaka
fd80873fca Add support for custom ONNX GroupNorm operator (#2267) 2020-09-30 16:17:15 +02:00
helmutg
f858b0c46f drop unnecessary cmake dependency on ext_gtest (#2389)
ngraph_test_util links libgtest, which depends on ext_gtest already.

Co-authored-by: Helmut Grohne <helmut.grohne@intenta.de>
2020-09-30 16:01:11 +03:00
Rafal Blaczkowski
e4875f2a6b Add MSFT models to OpenVino ONNX CI check (#2377)
* Add MSFT models to OpenVino ONNX CI and update xfails

* Update paths

* Fix typo and update xfails

* Unset xfails to check current behavior

* Update:
* add MSFT models to preprocesing script
* update xfail names

* Final update of xfail test cases

* Update xfail paths

* Update xfails

* Uncomment part of preprocesing script

* Update script

* Add cleaning support for MSFT preprocesing

* Add -e option to script help

* Initilze variables

* Update ngraph/python/tests/test_onnx/model_zoo_preprocess.sh

Fix a mistake

Co-authored-by: Tomasz Socha <tomasz.socha@intel.com>

* Update ngraph/python/tests/test_onnx/model_zoo_preprocess.sh

align spaces

Co-authored-by: Tomasz Socha <tomasz.socha@intel.com>

Co-authored-by: Tomasz Socha <tomasz.socha@intel.com>
2020-09-29 19:05:31 +03:00
Mateusz Tabaka
56a7a67dd2 Remove xfail_issue_36533 from ngraph tests (#2436) 2020-09-28 18:55:50 +03:00
Vladislav Vinogradov
d28a5d6c4f [CMAKE] Introduce FASTER_BUILD experimental feature (#2438)
It uses CMake 3.16 built-in utilities to speed up build time:

* Unity builds
* Precompiled headers

The feature is controlled via `ENABLE_FASTER_BUILD` CMake option (disabled by default).
The option avaialble only on CMake >= 3.16.
The feature is enabled per-target via `ie_faster_build` function.

Some observations:

* Don't have actual numbers for compile time, but subjectively can see
  speed up locally with VS 2019.
* Unity builds gives much more effect, but has some restriction on source files,
  so are not used everywhere.
2020-09-28 18:53:11 +03:00
Mateusz Bencer
3e2a131441 Added support of external data for ONNX Importer (#2303) 2020-09-28 11:08:36 +02:00
Piotr Szmelczynski
ac1a1e3e9f Bug fix (#2380)
* Change request.infer to use param_names instead of request._input_list because it fix the bug

* remove xfail mark

* remove xfail_issue_35893 form tests/ __init__.py

* Remove xfail_issue_35893. Add OnnxBackendNodeModelTest.test_convtranspose_3d_cpu to xfail_issue_38091

* Remove OnnxBackendNodeModelTest.test_convtranspose_3d_cpu from xfail_issue_38091 in test_backend.py
2020-09-23 17:54:59 +03:00
Katarzyna Mitrus
8f843c620a [ONNX] Update ONNX importer to use RNN/GRU Sequence ops (#2035) 2020-09-23 10:11:34 +02:00
Gleb Kazantaev
1afeb8470f Apply transformations to TI body recursively (#2114)
* Apply transformations to TI body recursively

* Add missing header
2020-09-23 09:46:28 +03:00
Bartosz Lesniewski
9af49a7f95 Reference ROIAlign-3 implementation (#2128) 2020-09-21 14:04:39 +02:00
Tomasz Socha
3f52e64c25 [nGraph] Use additional models logic to run ONNX Model Zoo (#2253) 2020-09-21 13:55:02 +02:00
Ivan Tikhonov
61a7cdde23 Introduce opset5, include GRU/RNN/LSTM Sequences to opset5 (#2265)
* introduce new opset5, include GRU/RNN/LSTM Sequences to opset5

* resolve review remarks
2020-09-18 21:26:21 +03:00
Evgeny Talanin
fe99e055f2 Bump cmake version to 3.13 (#2258) 2020-09-18 18:58:12 +03:00
Ilya Lavrenov
147a508a51 fixes for UWP (#2255)
* UWP fixes

* Commented code for compilation with UWP

* Current state: compiled for DESKTOP_APP

* Fixes

* Added toolchain

* Enabled ONNX imported for Windows Store

* Updated toolchain

* Fixes

* Disable ONNX in case of UWP

* Fix for Windows Driver

* Applied style check

* Dynamic loading of GetDLLDirectory symbols

* Clean-up in the toolchain

* Updated mkldnn plugin cmake
2020-09-18 17:13:27 +03:00
Tomasz Jankowski
8dcff4a741 fix move assignment operator of Shape class (#2280) 2020-09-18 11:19:12 +03:00
Tomasz Dołbniak
a0da3d360c Accept ONNX Constants with empty tensors (#2287) 2020-09-18 10:08:29 +02:00
Ivan Tikhonov
1b7dfc6e4c Fix bidirectional mode in reference implementations of GRU/LSTM/RNN Sequences (#2264)
* fix bidirectional case in references of sequences ops, enable decomposition of bidirectional cases in CommonOptimizations

* introduce new opset5, include GRU/RNN/LSTM Sequences to opset5

* Revert "introduce new opset5, include GRU/RNN/LSTM Sequences to opset5"

This reverts commit 73c22a11db.
2020-09-18 10:14:01 +03:00
Vladimir Gavrilov
f30656ed6d Fixing bugs in nGraph reference implementation of Interpolate-4 (#2204)
* Now coordinate_transformation_mode used for all axes in the 'nearest' mode.

* Temporarily added tests for Interpolate-4 evaluate().

* Deleted temporarily added tests.

* Fixed documentation for the 'nearest' mode.

* Small fixes.

* Disabled Interpolate-4 layer tests for CPU.

* Disabled some Interpolate-4 CPU tests.

* do not change index table when execute each time

* layout check added

* interpolate for no batch size even scale is 1

* coordinate transformation with div scale, not multiple 1/scale, for higher accuracy

* disable tests temporal

* test modification

* Some changes.

* Enabled some tests.
2020-09-17 14:15:57 +03:00
Piotr Szmelczynski
1337997134 Test refactor (#2225) 2020-09-16 15:33:02 +02:00
Ilya Churaev
ce9c171f46 Fixed KW warning and review issues (#2263) 2020-09-16 15:33:23 +03:00
Andrew Bakalin
18521f2dcb [VPU] Fix K propagation through Reshape (#2184)
* [VPU][DTS] Fix K propagation through Reshape

* [VPU] Add test cases
2020-09-16 12:41:49 +03:00
Anton Potapov
d590144545 [PP GAPI] Addded tests to cover exisiting precision conversions done by (#1976)
some plugins

- added shared parameterized tests
- instantiated for template plugin
- instantiated for cpu plugin
- fixed CPU plugin to properly handle U16 input
- fixed CPU reverse_sequence primitive to alolw input/oputput tensors to
be in FP32 only
- updated ngraph test_simple_computation_on_ndarrays to not expect
failure on U16 input
2020-09-16 12:41:14 +03:00
Mateusz Bencer
e55653b519 Fix running nG Python tests on Windows and update doc (#2162) 2020-09-15 15:02:48 +02:00
Ilya Churaev
e3174fa752 nGraph some KW fixes (#2102)
* Removed redundant methods

* Fixed KW for linux
2020-09-15 14:03:07 +03:00
Ilya Churaev
baac903cdc Fixed output names for case with redundant ops before result (#2210) 2020-09-15 14:01:43 +03:00
Rafal Blaczkowski
706d2fe7c8 Add backend tests to ONNX OpenVino CI (#1972) 2020-09-14 13:07:47 +02:00
Vladislav Volkov
ba254d7669 Fix for static PartialShape detection algorithm (#2106) 2020-09-11 06:15:24 +03:00
Mateusz Tabaka
926be83568 Add support for custom onnx operators: DetectionOutput, Normalize and… (#2064) 2020-09-10 11:27:12 +02:00
Katarzyna Mitrus
ba86f23dd6 Relaxed tolerance for fp16_inception_v1 model (#2129) 2020-09-09 15:47:53 +02:00
Ilya Churaev
135ae12b0d Fixed AddressSanitizer issue (#2122) 2020-09-09 14:31:12 +03:00
Michał Karzyński
fe4d720b69 Temporarily disable ONNX Loop operator for the 2021.1 release (#2110) 2020-09-09 12:07:02 +02:00
Katarzyna Mitrus
ddaceb047d Use element type instead of F32 for constants (#2121) 2020-09-09 09:50:27 +02:00
Mateusz Tabaka
6fb9bfac2a Update tolerance for candy model (#1967) 2020-09-08 16:04:08 +02:00
Jan Iwaszkiewicz
f4cb425396 [nGraph] Enable u1 data type in Constant PyAPI (#2084) 2020-09-08 13:11:05 +02:00
Ivan Tikhonov
063c7ef6b9 GRU/RNN/LSTM sequence ops, reference implementations, single layer tests (#1594)
* gru/rnn sequences

* update gru/rnn sequences ops, add unit tests

* enable sequence transformations for cpu plugin

* ngraph codestyle

* update tensor iterator to rnn/gru/lstm sequence transformations, add unit tests

* ngraph codestyle

* add visitors for ngraph ie ops, fix a bug with incorrect axis, fix ngraph to ngraph ie conversion

* update GRUSequence/GRUSequenceIE according to plugin format

* fix ngraph ie implementations according to plugins restricrictions

* fix naming issue

* adapt unit tests to accordance to new changes

* strict checks, additional unit tests

* add descriptions for transformations, fix unit tests

* enable ti to sequnece and unroll transformations in plugins for testing

* disable tensor iterator ngraph reader tests

* delete unnecessary cmake file

* fix includes

* clean up, resolve review comments

* move ti to sequence transformation to ti folder

* validate_and_infer_types() implementation

* input parameter validation for LSTM, GRU and RNN

* style-check applied

* Add LSTMSequence dynamic shape validation and test props for RNNCell, GRUCell, LSTMCell and LSTMSequence.

* recurrent_sequence.hpp moved to ngraph/core/include/ngraph/op/util/

* style check applied

* removed unused variable from LSTMSequence::validate_and_infer_types

* Add missing newline mark at the end of file.

* Add supression macro for FusedOp deprecation.

* Add element type initialization

* transpose,rnn cell reference implementations

* Apply PR review remarks

* reference implementations for cells op, single layer tests, align lstm cell/sequence according to the spec

* lstm/gru/rnn cell decompostion transformations

* ngraph codestyle

* clean up

* ngraph code style

* change inheritance of Cells, fix build

* fix build

* fix build again

* remove Peepholes from LSTMSeq, fix copy_runtime_info in transformations

* Rewrite tests to use gtest exception assertions.

* resolve tests issues

* ngraph codestyle

* add missed files

* fix typeprop tests

* fix lstm sequence checks

* fix arm build

* fix arm again

* delete unnecessary file

* add convert weghts format function, enable lstm test, resolve review comments

* add ngraph builders

* ngraph codestyle

* fix unit tests

* revert transpose reference implementation

* move ti to sequences transformation to another branch, resolve review comments

* resolve review comments

* revert fix in ie_layer_validators

* revert LSTM Cell v0, add LSTMCell v1, update transformation lstm_cell_to_cell_ie

* v1 version of LSTMCell op

* LSTMSequence v1 operation, exclude LSTMSeq from opset4

* fix python api tests

* resolve review comments, tests for decomposition transformations, switch lstm cell to opset4 in mo

* references impl for RNN/GRU/LSTM Sequences, single layer tests, bidirectional transformation

* fix unit tests

* process dynamic ranks of rnn/gru/lstm ops

* remove sequences specifications from opset4

* resolve review comments

* fix validate_and_infer_types of GRU/RNN sequences

Co-authored-by: Szymon Durawa <szymon.durawa@intel.com>
2020-09-08 10:31:44 +03:00
Tomasz Dołbniak
f42921ce47 ONNX Resize fix (#2103) 2020-09-08 09:51:30 +03:00
Maksim Kutakov
2c7f06e08f [IE TESTS] GatherTree single layer test has been created. (#2006)
* [IE TESTS] GatherTree op ref function has been created.

* [IE TESTS] Added GatherTree single layer test

* [IE TESTS] Fixed code styles.

* [IE TESTS] GatherTree test FP32 precion was enabled.

* [IE TESTS] Refactoring of Builder::makeConstatn procedure

The refactoring is aimed at managing the range of random data for the constants initialization procedure.

* [IE TESTS] GatherTree test was extended with constants

* [IE TESTS] GatherTree ref rewritten to non-templated function.

* [IE TESTS] GatherTree test inp shape indx enum removed.

* Revert "[IE TESTS] Refactoring of Builder::makeConstatn procedure"

This reverts commit 2648172e00ccca266d39e8775b890b8a8395f57c.

* [IE TESTS] makeConstant was augmented with random data range parameters.

* [IE TESTS] GatherTree test was rewritten using makeConstant function.

* [IE TESTS] GaterTree test call templated makeConstant

* [IE TESTS] GaterTree test code style fix
2020-09-07 17:17:14 +03:00
Tomasz Dołbniak
52ebe68cc7 v1::AvgPooling type prop unit tests (#2013) 2020-09-07 16:05:19 +02:00
Vladislav Volkov
50c6f02a2e Ngraph improvements (#2058) 2020-09-07 10:36:52 +03:00
Tomasz Dołbniak
0cd0c1a551 Handle Split axes as i64 (#2079) 2020-09-07 05:48:32 +03:00
Tomasz Dołbniak
51fa5ab8cb Make pybind more verbose in debug on windows (#2045)
* Make pybind more verbose in debug on windows

* Remove the NDEBUG flag everywhere

* Code complexity reduction...

* Missing colon

* And now the missing empty line...

* Reusable functions

* Now the mood of the sentence was wrong...

* Free functions instead of methods
2020-09-04 19:03:33 +03:00
Jozef Daniecki
8e9b733534 HostTensor2Vector (#2027)
* Add host_tesnor_2_vector() implementation and unit tests. One reference OP refactored to use it.

* Ngraph assertion message refactored.

Co-authored-by: Tomasz Dołbniak <tomasz.dolbniak@intel.com>

* Fix style.

Co-authored-by: Tomasz Dołbniak <tomasz.dolbniak@intel.com>
2020-09-04 16:02:14 +03:00
Ivan Tikhonov
2f5a28d44f LSTMCell/Sequence v1, reference implementations and decompose transformations for LSTM/GRU/RNN Cells (#2000)
* validate_and_infer_types() implementation

* input parameter validation for LSTM, GRU and RNN

* style-check applied

* Add LSTMSequence dynamic shape validation and test props for RNNCell, GRUCell, LSTMCell and LSTMSequence.

* recurrent_sequence.hpp moved to ngraph/core/include/ngraph/op/util/

* style check applied

* removed unused variable from LSTMSequence::validate_and_infer_types

* Add missing newline mark at the end of file.

* Add supression macro for FusedOp deprecation.

* Add element type initialization

* transpose,rnn cell reference implementations

* Apply PR review remarks

* reference implementations for cells op, single layer tests, align lstm cell/sequence according to the spec

* lstm/gru/rnn cell decompostion transformations

* ngraph codestyle

* clean up

* ngraph code style

* change inheritance of Cells, fix build

* fix build

* fix build again

* remove Peepholes from LSTMSeq, fix copy_runtime_info in transformations

* Rewrite tests to use gtest exception assertions.

* resolve tests issues

* ngraph codestyle

* add missed files

* fix typeprop tests

* fix lstm sequence checks

* fix arm build

* fix arm again

* delete unnecessary file

* add convert weghts format function, enable lstm test, resolve review comments

* add ngraph builders

* ngraph codestyle

* fix unit tests

* revert transpose reference implementation

* revert LSTM Cell v0, add LSTMCell v1, update transformation lstm_cell_to_cell_ie

* v1 version of LSTMCell op

* LSTMSequence v1 operation, exclude LSTMSeq from opset4

* fix python api tests

* resolve review comments, tests for decomposition transformations, switch lstm cell to opset4 in mo

Co-authored-by: Szymon Durawa <szymon.durawa@intel.com>
2020-09-04 09:04:36 +03:00
Ilya Churaev
28eed7708e Removed builders from public API (#2059)
* Removed builders from public API

* Fixed build
2020-09-04 06:06:43 +03:00
Vladimir Gavrilov
e6a36123db Reverted conversion of Resize-10 to Interpolate-4 in ONNX Importer. (#2048)
* Reverted conversion of Resize-10 to Interpolate-4. Now Resize with opset version < 11 generates Interpolate-1 again.

* Corrected tests.
2020-09-03 19:34:35 +03:00
Evgeny Lazarev
f60b46f3d4 Fixed visitor for Interpolate-1 and Interpolate-4 (#2051)
* Fixed visitor for Interpolate-1 and Interpolate-4

* Code style fix

* Remove unnecessary changes

* Fixed compilation on Linux for Atttribute visitor of vector<size_t>

* Added unit test for IE IR Reader for Interpolate-4

* Updated unit test for IR Reader for Interpolate-4

* Updated unit test
2020-09-03 16:00:46 +03:00
Ilya Churaev
6f83889886 Fixed a case with empty order in transpose op (#2043)
* Fixed a case with empty order in transpose op

* Fixed comments

* Fixed transpose tests

* Fixed tests
2020-09-03 14:50:01 +03:00