Commit Graph

365 Commits

Author SHA1 Message Date
Andrey Markelov
63fbe78d76 Fix tile layer test header (#2315) 2020-09-28 17:13:49 +03:00
Anton Pankratv
c8233b7b7c Fixed canStartSeveralAsyncInsideCompletionCallbackWithSafeDtor (#2404) 2020-09-28 11:08:34 +03:00
Anton Pankratv
863a7bd663 Holder test thread safe for all (#2425) 2020-09-25 21:12:24 +03:00
Andrew Bakalin
03d184726a [IE][VPU]: Supports I32 for some eltwise precisions + tests (#2364) 2020-09-25 18:29:34 +03:00
Aleksandr Korolev
eda9498b79 [IE][VPU]: Reduce tests execution time (#2378)
* [IE][VPU]: Reduce tests execution time

* [IE TESTS] Remove 'ConfigurePlugin()' from 'memory_LSTMCell.hpp'

* [IE VPU TESTS] Myriad conv layer tests was changed

Co-authored-by: Maksim Doronin <maksim.doronin@intel.com>
Co-authored-by: kora6 <kora6@github.com>
2020-09-25 14:24:12 +03:00
Gladilov, Gleb
10df5907b5 [IE][VPU]: Fixes addCopyForOutputsInsideNetwork (#2393)
* [IE][VPU]: Fixes addCopyForOutputsInsideNetwork

In case of dynamic output with consumer pass tries
to connect output's shape with new intermediate data
twice: one at the moment of duplicateData call (successful)
and once more at the end of the pass manually. The second
try leads to error since child data is already connected.

Signed-off-by: Gladilov, Gleb <gleb.gladilov@intel.com>

* [IE][VPU]: Introduces tests on addCopyForOutputsInsideNetwork

Signed-off-by: Gladilov, Gleb <gleb.gladilov@intel.com>
2020-09-24 12:40:10 +03:00
Evgenya Stepyreva
97fad1cb35 [ nG transformation ] Const -> FQ -> Reshape fuse (#2388)
* [ nG transformation ] Const -> FQ -> Reshape fuse
	Ticket: 39124

* fix dtype incompatibility: uint64 vs size_t

* Review comments adressed
2020-09-24 11:44:08 +03:00
Liubov Batanina
f8a17a1317 Changed pad data type (#2354) 2020-09-23 13:10:58 +03:00
Kamil Magierski
9fca26b21e [GNA] LSTMCell fixes (#2080) 2020-09-22 18:13:28 +03:00
Eugene Smirnov
079bf2b092 support for conversion between fp32 and fp16 types for ngraph_helpers (#2357) 2020-09-22 13:21:06 +03:00
Eugene Smirnov
f0b10bf071 [GNA] fake quantize single layer tests for GNA plugin (#2060)
* fake quantize single layer test for GNA plugin

* implemented fakequantize for fp32 case as an activation function

* added proper seed randomisation within single test run

* [GNA] [FAKEQUANTIZE] fixed ref-fp32 implementation on GNA to use nearbyint instead of roundf

* [GNA] [FAKEQUANTIZE] restored random seed

* [GNA][FAKEQUANTIZE] disabled 4d and integer tests for FakeQuantize

* [GNA][FAKEQUANTIZE]updated ngraph FakeQuantize builder to accept seed

* [GNA][FAKEQUANTIZE]aligned FP calculations order on GNA with reference ngraph - this however gives more error

* [CPU]build of FakeQuantise tests restored

* [TESTS][FAKEQUANTIZE] ignore extra inferRequests for disabled tests

* [GNA] Fixed legacy unit test failuers appeared due to extra check for possible segfault in import frames

* [GNA] adopted fuse multiple identities for FakeQunatize layer

* [GNA]fp32 runtime code review
2020-09-21 14:22:14 +03:00
Tomasz Dołbniak
dda6d9136b Backport of FQ+Mul transform to master (#2214)
* Backport of FQ+Mul transform to master

* Accept any type of input to FQ in the transformation

* Test the fusion when all FQ inputs are non-const

* Fusion test when only one output limit is const

* Test passing the output of FQ to second input of Mul
2020-09-21 13:21:27 +03:00
Alexander Perepelkin
c13ec24e1e Specify in and out precisions separately, add layouts for convolution (#2211)
* Specify in and out precisions separately, add layouts for convolution

* Align convolution layer tests instantiations with updated definition

* Align convolution layer tests instantiations with updated definition for template plugin

* net, in, out prcs

Co-authored-by: Mikhail Treskin <mikhail.treskin@intel.com>
2020-09-21 13:03:01 +03:00
Liubov Batanina
6839ef7699 Add TopK tests (#2165) 2020-09-21 11:37:22 +03: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
Mateusz Tabaka
a34b6e38f3 ConvertPrecision - saturate Constant's value to std::numeric_limits<dst… (#2206)
* ConvertPrecision - saturate Constant's value to std::numeric_limits<dst_type>::lowest() if it's below that limit.

* Remove clamping to std::numeric_limits<int32_t>::lowest() in U32/U64 case
2020-09-18 10:56:11 +03: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
Ilya Lavrenov
73a31bad15 Fixed compilation without OpenCV (#2309) 2020-09-18 06:30:29 +03:00
Maksim Doronin
b0308d91a5 [IE][VPU]: Enable some DSR+Op tests (#2118)
* Introduced a new way to test DSR+Op cases
* Enabled DSR_Reduce, DSR_VariadicSplit, DSR_TopK, DSR_Scatter, DSR_Unsqueeze tests
* Other disabled tests are still disabled until reference function is implemented. Added related comments
* Reduce DSR+Op tests execution time via reducing tensor shapes
2020-09-17 23:52:16 +03:00
Andrew Bakalin
8ebd3440c7 [IE][VPU]: Enable DTS for some eltwise operations (#2242)
* Enable DTS for Maximum, Minimum, Less, LogicalNot
2020-09-17 15:28:33 +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
Ivan Tikhonov
379158fc11 Move PriorBox to PriorBoxIE transformation from CommonOptimization pass (#2185)
* move PriorBox to PriorBoxIE transformation from CommonOptimization pass

* call initNodeInfo transformation before PriorToPriorIE

* update comments
2020-09-17 11:45:45 +03:00
Irina Efode
12abb2eb49 [IE TESTS] CoreThreading_LoadNetwork tests were disabled for GPU plugin (#2245) 2020-09-16 16:46:02 +03:00
Gorokhov Dmitriy
83e96891ca Revert "[IE TESTS] dynavic batch for mvn layer (#1010)" (#2257)
This reverts commit 2e3378c50f.
2020-09-16 14:11:48 +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
Anna Alberska
3ecee2ce49 [GNA] fix scale factor calculation for unfused bias after fc (#2097)
* [GNA] fix scale factor calculation for unfused bias after fc

* change check

* add test

* apply requested changes

* cpplint fix

* apply test changes

* modify model for test to match ::op::
2020-09-15 16:04:06 +03:00
Ilya Lavrenov
9ca5fbaf02 Reshape v7: remove (#1379)
* Removed shape inference fr IR v7 and older

* Disabled dynamic batch tests which require reshape

* Fixes tests 2

* Disabled MKLDNN tests with convolution reshape

* Fixed GPU tests

* Disable VPU tests with batch size > 1 for old IRs

* Removed most of shape infer functions for old representation

* Removed most of CNNLayer validators

* Fixed validators and keep only parseParams

* Removed tests on invalid IR v7

* Disabled more VPU tests

* Removed Backetize validator

* Disable one more Myriad tests case where reshape for old IR is needed

* Removed useless reshape

* Need to replace GRUCell with Unique

* Moved shape infer functions for experimental layers to Core IE

* Fixed shape inference functions not to depend on legacy

* Added missed SparseToDense

* Added descriptive error message

* Fixed comments
2020-09-15 15:08:17 +03:00
Roman Vyunov (Intel)
9e8b42ff95 [IE][VPU]: Workaround to support parameter Beta for layer Swish (#2205)
* Workaround to full support Swish layer. It is faster than native Swish for now.
2020-09-15 14:39:27 +03:00
Vladislav Vinogradov
a0938a92d4 [IE][TESTS] Fix compareRawBuffers and compareBlobData methods (#2222)
Use `<=` comparison instead of `<` with thresholds.
This allows to use `0` threshold for bit-exact comparison.
2020-09-15 14:04:47 +03:00
Ilya Churaev
1bae5504ca Fixed query network for networks with KSO (#2201)
* Added a test to reproduce QueryNetwork with KSO

* Fixed QueryNetwork for networks with KSO

* Added additional test
2020-09-15 14:02:15 +03:00
Ilya Churaev
baac903cdc Fixed output names for case with redundant ops before result (#2210) 2020-09-15 14:01:43 +03:00
Gladilov, Gleb
e4f0d8053a [IE][VPU][Tests]: Enables tests on MergeSubsequentDSROperations (#2149)
Signed-off-by: Gladilov, Gleb <gleb.gladilov@intel.com>
2020-09-15 10:44:25 +03:00
Ivan Tikhonov
cd722d72df TensorIterator to RNN/GRU/LSTM Sequence transformation (#2146)
* ti to sequences transformations

* fix sequences to sequences ie conversion

* resolve review marks

* resolve review remarks, fix ti to sequences transformations to support batch > 1 if slice axis == 0

* temporary enable ngraph ti transformations for cpu plugin

* fix includes

* Revert "fix includes"

This reverts commit 6cf15b97be.

* Revert "temporary enable ngraph ti transformations for cpu plugin"

This reverts commit fd528d7216.

* delete todo comments
2020-09-15 10:11:51 +03:00
Edward Shogulin
ac2370b420 [LPT] Copy constant with several outputs before blob update (cherry-pick to master) (#2198)
* [LPT] Copy constant implementation

* [LPT] the same Constant ops as FQ interval boundaries
2020-09-15 09:18:58 +03:00
Evgenya Stepyreva
75601e62ed Super smart reshape: HC Reshape to 2D followed by MatMul (#2183)
* Initial commit

* [SSR] Reshape(2D)->MatMul constrain relaxation

* Moved common pattern mechanics to the common function

* Moving SmartReshape to CNNNetworkNgraphImpl ctors

* Review comment

* Tests
2020-09-14 13:45:27 +03:00
Nikita Kudriavtsev
62c7ca9698 [IE Myriad][#38489] Reduce test scope for Swish layer (#2163) 2020-09-10 15:47:20 +03:00
Anton Dudchenko
c7633e7016 [IE][VPU]: Support ngraph::Function in VPU QueryNetwork (#1929)
* Support ngraph::Function in VPU QueryNetwork
2020-09-10 14:49:19 +03:00
Nikita Kudriavtsev
ef2581d5c6 [IE Myriad][IE Tests] Activation layer's constants parametrization. (#2071)
CI passed: https://gitlab-icv.inn.intel.com/inference-engine/product-configs/merge_requests/870
2020-09-10 12:56:21 +03:00
Anton Voronov
0e34b392ee [CPU] Supported depthwise 6d, 7d, ..., added test (#971) 2020-09-10 08:33:38 +03:00
Ilya Churaev
27ca6be728 Fixed addOutput behavior for experimental ops (#2138) 2020-09-10 06:14:11 +03:00
Bartosz Sochacki
8b87e1a477 [GNA] Fix for concat layer with >2 inputs (#1475)
* Fix for concat layer with more than 2 inputs

Signed-off-by: Bartosz Sochacki <bartosz.sochacki@intel.com>

* Fixed check if affine is used for crop layer

Signed-off-by: Bartosz Sochacki <bartosz.sochacki@intel.com>

* code cleanup for fix affine layer check

Signed-off-by: Bartosz Sochacki <bartosz.sochacki@intel.com>

* added test for concat layer with multiple inputs

* simplified test to use less number of layers

* fixed code style

* fixed coding style

* addressed review comments and one more issue that appeared during testing

* fixed code style errors

* scale factor propagation for concat layer with multiple inputs

* fix for a case when all inputs to concat are activation layers

* fix for linux compilation - C++14 is not enabled and fails on lambda with auto parameters

* corrected current year in headers in concat multi input tests

* fixes for code review issues raised by Denis Orlov

* enabled integer mode computation in GNA concat multi input test

* removed 1 space per review comment

* a fix to fail when not all scale factors are equal

* added GNA_DEVICE_MODE config to concat multi input test

* corrected searching for a next input to concat layer

* changed selection of 2nd candidate for source quant value

* code style fix - else and brackets should be in the same line

* small code improvement

* fix for mixing line endings

* addressed with endless requantization loop and fixed failing tests
2020-09-09 14:55:07 +03:00
Gladilov, Gleb
d43c9cfa0e [IE][Tests]: Fixes dangling reference access in nGraph function comparator (#2105)
Usage reference to front of the queue after pop is UB

Signed-off-by: Gladilov, Gleb <gleb.gladilov@intel.com>
2020-09-09 13:22:29 +03:00
Tomasz Dołbniak
fd02b384a7 Clang compilation error fix for Linux (#2126) 2020-09-09 13:04:33 +03:00
Alexander Peskov
ad74204402 [TEST] One more ReduceSUM func test
Special test case with input values which cannot be correctly processed via
decomposition with int AVG pool layer.

Signed-off-by: Alexander Peskov <alexander.peskov@intel.com>
2020-09-09 12:41:31 +03:00
Alexander Peskov
3dc27c8be8 [TEST] Fix blob util broadcast filler for non fp32 types
Signed-off-by: Alexander Peskov <alexander.peskov@intel.com>
2020-09-09 12:41:31 +03:00
Alexander Perepelkin
14e2b0be20 Use metadata from executable network when fetching results of the infer request; Use user provided output precision when it was supplied (#2111) 2020-09-09 11:47:40 +03:00
Anna Alberska
6357ce83c5 [GNA] add support for NCHW & NHWC layouts for exporting output (#2031)
* [GNA] add support for NCHW & NHWC ExportScores

* fix cpplint
2020-09-08 10:57:44 +03:00
Andrey Dmitriev
8e6d9470bb [GNA] Handling input orientation (#1851)
Added test

Add fix
2020-09-08 10:46:10 +03: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