Commit Graph

125 Commits

Author SHA1 Message Date
Szymon Durawa 772465da1e
Add output shape and output padding for Convolution Backprop SLTs. (#5576)
* Create output shape for Convoution Backprop SLTs.

* Add output_padding attribute to SLT scope.

* Introduce SLT for Serializaton.

* Introduce new test layer class ConvolutionBackpropLayerTest which contains output_padding attribute and output_shape input. Old one is deprecated, but cannot be removed due to kmb plugin dependency.

* Add ConvolutionBackpropDataLayerTest into TEST_P.

* ConvolutionBackpropDataLayerTest left as legacy class used by kmb_plugin.

* Remove redundant variables.

* Switch to new API for gpu SLTs.

* Remove legacy API.

* Introduce legacy API to match dependency for KMB and ARM plugins.

* Create test cases for output_padding attribute.

* Fixing smoke_Deconv tests.
2021-06-15 07:08:10 +03:00
Patryk Elszkowski 6deec50b0b
Reshape OP: add SLT for special `-1` value in new shape dimensions (#5648)
* add test for special `-1` value in new shape dimensions

* add ticket with next steps
2021-06-15 07:07:18 +03:00
Mikhail Ryzhov 1a6392eb53
[GNA] Fixed export/import functionality (#5963)
* Rebase master

* [GNA] Fixed export/import functionality

* Extended import log

* Added logs

* Fixed importing issue for the old models

* Revert "Added logs"

This reverts commit 39a3882d56.

* Revert "Extended import log"

This reverts commit 59eb9d6fba.

* Reverted precision import

* Extended tests

* Enabled skipped tests

* Included gna2-common-api header

* Replaced included header

* Centos7 build fix
2021-06-09 20:39:05 +03:00
Katarzyna Mitrus bc7f61be24
PRelu reference implementation and ReshapePRelu transformation alignment (#5915)
* Apply  ReshapePRelu transformation only to const slope input

* Remove xfail from onnx backend prelu_broadcast test

* Fix and add Prelu SLT

* Update PRelu mkldnn transformation to extend broadcast support

* Fix and update PRelu reference implementation

* ONNX Prelu tests

* Add prelu backend tests

* Update ie tests manifest

* Comments clean up

* Fix STL Fill leakyslope blob

* Code refactor

* Unify layer tests slope input values generation
2021-06-08 06:51:41 +03:00
Andrei Gorbachev 64d7a40ae4
[IE CLDNN] 54304 fix reduce ops (#5986) 2021-06-07 18:36:38 +03:00
Ivan Tikhonov c1608628d4
LowLatency v2 ngraph transformation (#5160)
* LowLatency 2.0: transformation and unit tests

* low latency 2.0: unit tests

* documentation and ngraph codestyle

* update CNN Interface of LowLatency transformation

* fix build on Windows

* fix build on Windows

* investigation of a failed build on Win OS

* ngraph codestyle

* fix build (werrors)

* New unit tests, refactoring

* update functional tests for Memory

* update LowLatency functional tests

* extend Memory tests to cover LowLatency v2 transformation

* clean up, code style

* fix unit tests

* update and fix unit tests, add feature to apply LLTv2 after LLTv1

* update docs, refactoring

* add several gna tests to skip config

* fix python api tests

* update python api, rename LowLatency_v2 to LowLatency2

* deprecate LowLatency v1

* Deprecate LowLatency v1 in IE

* fix wrong merge, codestyle

* resolve review comments

* fix python test

* update skip config

* apply online review notes, fix unit tests

* clean up, code style

* fix docs

* Use debug_messages instead of exceptions in llt v2

* fix unit tests

* Resolve review remarks
2021-06-07 15:13:41 +03:00
Nadezhda Ageeva 487faf3f29
Fix 56171: Insert AffineFilter after split when padding is needed. Fix Basic_LSTM LLT test. (#5882) 2021-06-02 16:09:56 +03:00
Xin Wang 02e92c0bd2
Add missing inputs for ActivationParamLayerTest. (#5714) 2021-06-02 15:44:42 +03:00
Elizaveta Lobanova 4b486e6223
[GNA] Fix fq weights fusion and relu scale factors calculation (#5886)
* Fix FakeQuantize weights fusion when multiple operations were using the same const

* [GNA] Fix scale factor calculation for Relu if it has source and doesn't have destination statistics

Co-authored-by: Dmitrii Khurtin <dmitrii.khurtin@intel.com>
2021-06-02 10:11:11 +03:00
Elizaveta Lobanova f450f61bc3
[GNA] Avoid integers overflow during pwl calculation for FakeQuantize (#5841)
* [GNA] Avoid integers overflow during pwl calculation for FakeQuantize

* The similar fix for Relu
2021-05-27 16:49:40 +03:00
Ilya Lavrenov 12f2bb72da
Updates on deprecated stuff (#5838)
* Removed cloneFunction from ngraph CNNNetwork impl

* Removed custom clone

* Localize deprecation suppressions

* Removed Jira tickets

* Fixed MYRIAD tests compilation on Windows
2021-05-27 16:14:07 +03:00
Egor Duplensky bae7f4b036
[CPU] Add bf16 support for ROI pooling (#5187) 2021-05-25 21:20:30 +03:00
Bartosz Lesniewski 2d0707dd1a
Revise Result Op (#5637)
* Add type prop tests for shape and type propagation

* Add visitor test

* Add SLT test class for result op

* Add SSLT for result op

* Add CPU SLT

* Add backend test

* Applying review comments - fix typo in slt, replace type info with NGRAPH_RTTI_DEFINITION

* Applying changes after review comments

* Add result to trusted ops list

* fix adding redundant nodes in slt
2021-05-25 07:06:04 +03:00
Ivan Tikhonov 0c30ccc120
Single layer tests for Assign/ReadValue ops (#5735)
* add single layer tests for Assign/ReadValue ops

* fix windows build, revert debug changes
2021-05-24 18:58:48 +03:00
Alexandra Sidorova 57d49f3215
[CPU] Added MVN fusion for case with constants inside (#5644) 2021-05-21 14:35:56 +03:00
Daria Mityagina 5ea8437c91
[VPU] Batch support for interpolate (#5520)
* batch support for interpolate

* hash update

* compilation errors solved

* changes in tests, so not to break other plugins

* changes in tests, so not to break other plugins

* Revert "changes in tests, so not to break other plugins"

This reverts commit 67e5c1e4ddba4f0cc858eb1293e50ce9d9ae0227.

* Revert "changes in tests, so not to break other plugins"

This reverts commit f6a537d2236f0b64f0ff028627af9e0e388a2d23.

* review corrections

* Firmware update
2021-05-21 12:54:58 +03:00
Yunji Kim cdc98d7286
[IE CLDNN] Fix DetectionOutput cpu implementation to be aligned with ngraph (#5544) 2021-05-20 11:04:50 +03:00
Maksim Derbasov a5ea4fefbf
Fix warnings and if condition (#5705) 2021-05-20 10:35:53 +03:00
Elizaveta Lobanova 68b94a7c9f
[GNA] Support of Matmul with const as the first input and other fixes for softmax and layer norm patterns. (#5623)
* Swap inputs pass

* [GNA] Handle case Gemm layer

* [GNA] Convert Matmul to FC

* VS tests

* Move to common optimization

* Gemm execution such as FC

* Test calc scale_factor

* Some changes

* Working version

* [GNA] Insert transpose between convolution/pooling and reshape.
Insert copy layers after concat inputs with multiple connections to the concat.
Accept networks with input connected to layers with different orientations if one of input dimensions is 1.
Fix scale factor calculation for Eltwise layer.
Fixes for Gemm quantization.

* Insert transpose after Reshape and  before Matmul

* Fix concat input alignment when it's the network input

* Comments applying

Co-authored-by: Andrey Dmitriev <andrey.dmitriev@intel.com>
2021-05-19 14:44:00 +03:00
Irina Efode 9568f8120e
[IE TESTS] Fix Comparation issue in `LayerTestCommon` class (#5624)
* [IE TESTS] Fix comparation in LayerTestUtils

* Fixes

* Small fix

* Int4 fixes

* remove extra

* Fix NMS

* Some fixes for tests

* Add small fix

* [IE TESTS] Remove const folding as a result engine

* Remove extra

* Revert remove constant folding (DSR test) & fix some cases for cpu

* Fix GNA
2021-05-19 13:14:35 +03:00
Mikhail Treskin c1a38109c7
[SubgraphsDumper] Extract statistics instead of constants with weights. (#5149)
* Store weights range in meta info instead of cloning whole constant

* Add command line option for constants size serialization threshold

* Update IR Runner to handle OP meta information

* Fix interpolate type_prop tests

* Skip new failures in SLT

* Fix models count

* Add dynamism elimination option.

* TopK shape propagation changed

* Fix type_prop tests for TopK
2021-05-17 12:13:02 +03:00
Krzysztof Bruniecki 606d0f363a
[GNA] Fix concat scale factors calculation (#5454)
* [GNA] Fix concat scale factors calculation

* Add tests with Input | Constant -> Strided Slices -> Concat

  Topology:
       Constant                Parameter
        |   |                    |   |
    +---+   +---+            +---+   +---+
    |           |            |           |
  SS_1c  ...  SS_Nc        SS_1p  ...  SS_Np
    |           |            |           |
    |           +----+  +----+           |
    |                |  |                |
    +-------------+  |  |  +-------------+
                   \ |  | /
                    Concat
  Legend:
      SS == Strided Slice

* Apply review

Co-authored-by: Elizaveta Lobanova <elizaveta.lobanova@intel.com>
2021-05-17 11:59:34 +03:00
Aleksandr Pertovsky d2fb57dfe0
[CPU] Add DFT/IDFT ops (#5383) 2021-05-17 08:45:34 +03:00
Ilya Lavrenov a3448032ca
Minimized legacy usage in tests (#5591)
* Minimized legacy usage in tests

* Use legacy only for specific files

* Fixed code style

* Fixed linkage

* Removed old CPU / GPU tests binaries

* Test

* Disabled IB console

* Disabled test for AUTO QueryNetwork from parallel threads
2021-05-14 18:47:54 +03:00
Maksim Derbasov 4d1cd0e79d
Warnings fix for tests. Spotted by cl compiler (#5616) 2021-05-14 13:08:23 +03:00
Yury Gaydaychuk 79e197218e
[CPU] Reducenode handles negative input (master) (#5494) 2021-05-14 13:05:22 +03:00
Bartosz Lesniewski 61e9d020d4
Revise Unsqueeze op - tests (#5579)
* Add visitor test, separate backend test from common fused op file

* Add SSLT, separate empty axes squeeze case in SLT

* Add unsqueeze to trusted op list

* removing trailing whitespaces

* Add missing newlines at file end

* Review comments - actually running backend tests, fixed typo in visitor test
2021-05-14 07:44:48 +03:00
Ilya Lavrenov 07a49184c0
Fixed typo in length (#5611) 2021-05-13 07:52:55 +03:00
Katarzyna Mitrus f928f7fc56
DeformablePSROIPoolig reference implementation (#5116)
* Reference implementation init

* Backend tests

* Single layer tests

* Update offset range in layer tests

* Align int types with ng op

* Update spatial bins type

* Type update

* Fix sub bin calculation in mkldnn plugin

* Update summarize py file

* Align result  type

* Refactoring

* Apply review comments

* Add serialize layar tests

* Adjust int comparison

* Adjust code style

* Use clamp reference

* Unify style

* Additional check for negative output dim

* Set tensor output shape in evaluate

* Add visit attributes test

* Small refactor

* Code style (namespace comments)

* Fix CommonTestsUtils::fill_data_roi usage.

This function was generalized in PR #5432 and its siganutre has changed.

* Update licenese header with mention about original authors.

* Replace MIT SPDX full license name with short identifier.

* Fix sub bin calculation in mkldnn plugin

Co-authored-by: jdanieck <jozef.daniecki@intel.com>
2021-05-13 07:44:57 +03:00
Alexandra Sidorova 87a94e1a49
[CPU][IE TESTS] Fixed Mish (#5462) 2021-05-12 09:57:52 +03:00
Bartosz Lesniewski 66b3efbb6c
Revise Squeeze op - tests (#5336) 2021-05-10 12:37:18 +02:00
Egor Duplensky 5bd6343ce5
Extend filling roi data for other precisions (#5432)
by making it template.
2021-05-06 14:44:01 +03:00
Aleksandr Pertovsky 5d8f209df6
[CPU] Add Roll support (#5112) 2021-05-03 15:01:05 +03:00
Vitaly Tuzov bb022e2d26
Added test for opset7::Gather (#5373) 2021-04-30 19:17:48 +03:00
Elizaveta Lobanova 22e4566faa
[GNA] Remove extra reshape before maxpool. Fix activation and maxpool reordering. (#5404)
Fix convolution input transposition for Kaldi models with FakeQuantise layers.
Fix floating point error in gnaFuncTests with debug logs.
2021-04-30 15:42:27 +03:00
Alexandra Sidorova 03ca3d1ef7
[CPU] Fixed SoftPlus for large positive values (#4932) 2021-04-30 13:34:33 +03:00
Patryk Elszkowski 5de5f4d7d1
Constant op SLT (#5349)
* add SLT for Constant OP

* add test for U4 and I4

* drop test for BIN data

Co-authored-by: Patryk Elszkowski <patryk.elszkowki@intel.com>
2021-04-27 07:09:23 +03:00
Alexandra Sidorova 5ca7cba451
[CPU] Added improvements for Mish (#5062) 2021-04-26 18:11:41 +03:00
Egor Duplensky 39e1a21c42
[CPU] Enable bf16 RNN primitives (#4942) 2021-04-25 22:18:38 +03:00
Ivan Novoselov 594c4882e6
[CPU] optimize ExtractImagePatches (#4898) 2021-04-25 19:52:07 +03:00
Elizaveta Lobanova 78cf72819b
[GNA] fix pwl for Sigmoid quantised with signed range (#5271) 2021-04-22 13:27:21 +03:00
Alexandra Sidorova 0d3baee1f3
[CPU] [IE TESTS] Added improvements for DepthToSpace and SpaceToDepth (#3897) 2021-04-21 16:45:07 +03:00
Mikhail Treskin 76fd791363
Define OP version in report by first occurrence in opset instead of type_info (#5177) 2021-04-20 22:33:52 +03:00
Szymon Irzabek a359fe9f37
[GNA] Add basic low precision support for more layer types (#5138)
* [GNA] Add basic low precision support for more layer types, add simple test

* [GNA] Fix test

* [GNA] Make divisor const, add more clarity to some conditions
2021-04-20 10:40:00 +03:00
Jozef Daniecki ef70e5187c
Deformable convolution (#4312)
* Add deformable_convolution unit tests

* add 2D unit test

* Add unit-tests for 3D deformable_convolution

* create shared test class for deformable_convolution

* create single layer test for cpu plugin

* create single layer test for serialization

* add deformable_convolution to opset1

* create empty evaluate method

* add group and deformable_group to parameters

* Create impl for generateInput method

* add deformable_val to deformable_conv paramset

* create additional unit-tests

* Remove 3D single layer tests

* Update GenerateInput and SetUp method

* Update parameters values for SLT

* Update GenerateInput method and create Validate method

* Create additional parameters set for cpu plugin SLT

* Create unit-test with padding and add it to disabled

* add interpreter unit tests to manifest

* style-apply

* create file for reference impl

* Update year of copyright and make Validate an override method

* Update parameters names for serialization single layer tests

* Update parameters names for functional single layer tests

* add failing unit tests for interpreter to manifest

* make tests parameters more readable

* style-apply

* Include deformable_convolution inside evaluates_map

* add support for groups parameter for reference impl

* style-apply

* remove DeformableConvolutionParams struct

* fix bug with filter

* fix bug with offset type

* Update interpreter manifest

* impl evalute method

* style-apply

* Update year

* Update test names

* add utils func for deformable convolution operation

* fix filter group count

* add calculation of index of offset

* Update offsets in unit test

* add support for multiple input channels

* add padding tests

* add padding support

* style apply

* update copyright year

* create validation check helper

* Update convolve function name

* update copyright year

* style-apply

* remove integer type from serialize layer tests

* add tests for deformable_groups

* fix bug with group > 1

* style-apply

* add group unit test

* create additional group tests

* fix bug with groups attribute

* Enhance dynamic shape inference of validate and infer types method

* Add type_prop unit tests

* Fix broken op create test in python api

* fix bug with shapes in group tests

* update deformable_convolution method

* add unit test with 2 groups and 2 defromable groups

* Fix code style.

* Update UT manifests with  current test status.

* Refactored backend test: names, removed duplication, add TOODs

* Add missing test cases in 'integral offsets' group.

* Fixed group attribute.

* Update interprer manifest to disable tests with integer offsets.

* Fix style.

* Remove changes in operator class.

* Revert "Enhance dynamic shape inference of validate and infer types method"

This reverts commit 2f9ce2ccd4.

* Revert "Add type_prop unit tests"

This reverts commit 944af98b8c.

* Revert "Fix broken op create test in python api"

This reverts commit 72fbfc2967.

* Fix op class.

* Convert implementation to 2D.

* Simplify implementation.

* Fix centos build.

* Reimplemented offsets handling.

* Fixed integral offsets test cases.

* Fixed deformable group attribute.

* Add bilinear interpolation.

* Refactoring regarding tolerance_bits.

* Fix groups & def_groups test case.

* Add more unit tests for group & defgroup attribute.

* Remove debug code.

* Minor refactoring.

* Add integer types to SLT.

* Revert "Add integer types to SLT."

This reverts commit 2fefe8926d.

* Add tests with real number offsets.

* Refactored bilinear_interpolation().

* Turned on SLT.

Additionally refactored and offset input set to range <0,2>.

* Update headers with short version.

* Fix SLT offests generation with int offsets.

* Add integer types to SLT.

* Fix grup + def_group test case.

* Add ticket to address IE_CPU backend test failures

* Enable real resolution for deformable values

* Add op to list of trusted operations in python script

* Fix comparison of integer expressions of different signedness compilation error

* Add comment with closing namespace and empty lines

Co-authored-by: pszmel <piotr.szmelczynski@intel.com>
Co-authored-by: ggalieroc <gabriele.galiero.casay@intel.com>
2021-04-19 14:12:09 +03:00
Nadezhda Ageeva e170785c1f
Change FW levels type from int to size_t (#5218) 2021-04-16 11:36:23 +03:00
Elizaveta Lobanova 69be1f1c02
[GNA] Prohibit 2D data reshaping for diagonal layer if it's the first functional layer in network (#5097) 2021-04-12 11:23:29 +03:00
Alexandra Sidorova 325b5564f3
[CPU] Added GELU-7 support (#4800) 2021-04-07 16:01:47 +03:00
Vladimir Zinoviev e2ada66826
[LPT] Mixed precision GPU Plugin tests (#4498) 2021-04-05 18:04:34 +03:00
Irina Efode 812175268a
[IE TESTS] Fix conformance test names (#5095)
* [IE TESTS] Fix conformance test names

* sdl;

* APPLY COMMENTS FROM MIKHAIL
2021-04-02 17:46:50 +03:00