Commit Graph

173 Commits

Author SHA1 Message Date
Tomasz Dołbniak ef5ded7878
Obsolete tests removed (#5786) 2021-05-28 07:48:38 +03:00
Jan Iwaszkiewicz c3ca8d048e
[ONNX] ArgMin/ArgMax support for select_last_index (#5661)
* Add Reverse Op to opset

* Worksave with Reverse path

* Add last_index support

* refactor argminmax factory

* Remove old xfail, add new one

* Fix proto file for argmax

* Rewrite test for select_last_index

* Add CPU tests to Manifest

* Update manifest

* Remove Reverse from opset7

* Refactor arg_min_max factory

* Added example comment in arg_min_max

* Codestyle changes
2021-05-25 20:37:07 +03:00
Katarzyna Mitrus 82b84c0b61
Fix ng python ShuffleChannels group attribute (#5678) 2021-05-20 12:31:19 +02:00
Aleksandr Pertovsky d2fb57dfe0
[CPU] Add DFT/IDFT ops (#5383) 2021-05-17 08:45:34 +03:00
Ilya Lavrenov 07a49184c0
Fixed typo in length (#5611) 2021-05-13 07:52:55 +03:00
Pavel Esir b17b526009
Add gather 7 to nG Python API and IE IR reader test (#5276)
* nG Python api for Gather and IE IR reader tests

* also included old IE IR reader test for Gather1

* added a blank line before Gather

* style corrections

* applied review comments

* removed blank line

* removed xfailed for Gather7 with batch_dims since CPU was moved to nGraph (...allows to fallback node execution on ngraph evaluate() method in case if optimized implementation is absent)

* added new visitor tests
2021-05-12 12:11:27 +03:00
Bartosz Sledz 81f9d78541
ONNX Subgraph - Infer types of inputs from top level Graph nodes (#5277) 2021-05-12 10:32:34 +02:00
Gabriele Galiero Casay a78515f3e7
Revise DeformableConvolution operation class (#5244)
* Enhance dynamic shape inference of validate and infer types method

* Review op class of DeformableConvolution

   * Add node validation checks into validate and infer types specific to element type and shape of inputs
   * Refactor validate and infer types method to use common function to validate conv parameters and infer output shape
   * Apply these changes to Convolution and BinaryConvolution for alignment

* Add type_prop unit tests

* Add node validation checks for deformable values spatial dimensions

* Fix type_prop and python api shapes

* Fix deformable values spatial dimensions

* Add validation checks in reference implementation

* Address review comments

 * Remove reference to const for basic types in ref impl
 * Update comment with ticket to add check for u1
 * Change deformable values to offset to align with spec
2021-05-12 09:21:33 +03:00
Gorokhov Dmitriy a19413c0c0
[CPU] Plugin migration on ngraph (#4344) 2021-05-06 19:49:24 +03:00
Vladimir Gavrilov 62b1f655c0
DFT and IDFT nGraph Python API (#5387)
* Added nGraph Python API for operations DFT and IDFT.

* Written tests for the DFT Python API.

* Written tests for IDFT nGraph Python API.

* Small fixes.

* Started to add tests for the signal_size case.

* Written tests for signal_size case of DFT.

* Written tests for signal_size case of IDFT.

* Some code style fixes in IDFT nGraph Python API tests.

* Code style fixes in tests for DFT nGraph Python API.

* Now DFT nGraph Python API tests are used numpy FFT ressults as expected results of tests.

* Now IDFT nGraph Python API tests without signal_size are used numpy FFT result as input data.

* Now IDFT nGraph Python API tests use numpy IFFT as expected results for signal_size cases.

* Deleted redundant function.

* Formatting fix.

* Now test data for DFT and IDFT nGraph Python API are randomly generated.

* Added seed initialization.
2021-05-05 17:17:46 +03:00
Tomasz Socha c362b3e105
[ONNX] Fix missmatches for opset13 *Max operators. (#5443) 2021-05-05 13:34:26 +02:00
Roman Kazantsev d716db4acc
Extend Python nGraph API with Einsum-7 and test nGraph reader (#5486)
* Extend nGraph Python API and test IE IR reader for Einsum

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

* Format description for test auxiliary function

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

* Remove print from the python test

Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
2021-05-04 14:04:21 +03:00
Aleksandr Pertovsky 5d8f209df6
[CPU] Add Roll support (#5112) 2021-05-03 15:01:05 +03:00
Alexandra Sidorova 03ca3d1ef7
[CPU] Fixed SoftPlus for large positive values (#4932) 2021-04-30 13:34:33 +03:00
Tomasz Socha 64a032fa18
[ONNX] Add ONNX Compress operator. (#5400)
* [ONNX] Add support for ONNX's Compress operator

* NonZero fixes

* Add unit tests as constant_network

* Style

* Move compress tests

* xfail python tests

* Fix func test

* Review Fix I
2021-04-29 07:49:05 +03:00
Tomasz Dołbniak 31b161097d
FIx the incorrect expected exception type (#5396) 2021-04-28 22:15:35 +03:00
Tomasz Dołbniak e15d9efe30
Template plugin support in ONNX compliance tests (#5375) 2021-04-26 15:34:39 +02:00
Rafal Blaczkowski 805d184357
Enable parallel execution open vino onnx ci (#5332)
* Separate workdir for parallel runs

* Use random

* Get back old working configuration

* Change label

* Debug parameters

* Change models dir to SHA approach

* Fix WORKDIR names

* Change mountig models dirs

* Update model preproces script

* Improvements

* Isolate all private variables

* Fix model dir path

* Update model preproces

* Update node label

* Remove debug printlns
2021-04-22 08:58:11 +03:00
Egor Shulman 211c5773fc
[CPU] BatchToSpace, SpaceToBatch layers optimizations (#4029)
* BatchToSpace, SpaceToBatch layers optimizations

* Fix according to review

* Fix tests for oneDNN (v1.6)

* Fix of support BF16

* Fix in/out config

* Add support of Blocked layout

* Fix of support U8

* Add support for in/out channels of different sizes

* Removed xfail

* Removed xfail_issue_34327

* BatchToSpace, SpaceToBatch layers optimizations

* Fix according to review

* Fix according to review

* 3 different implementations -> 1 implementation

* Fix THROW

* Fix Exception

* Revert Batch_to_Space to parallel_for

* Fix remarks

* parallel_for -> parallel_nt

* Fix remarks

* Fix data separation

* Fix according to review
2021-04-19 10:15:59 +03:00
Anastasia Popova f681907fdd
Roll nGraph Python API (#5237)
* Added Roll to nGraph Python API.

* Added empty line at the end of file.

* Corrected a typo.

* Added Roll test.

* Reformat code.

* Removed empty line.
2021-04-15 07:19:15 +03:00
Tomasz Socha 684dcf0d92
[ONNX] Add support for BF16 datatype (#5194) 2021-04-13 11:21:21 +02:00
Bartosz Sledz 94e9b632e8
Revise ONNX Mod operator (Add support for attribute fmod == 0) (#5173) 2021-04-13 10:24:51 +02:00
Tomasz Dołbniak 14e0da322e
Update the XFAIL marker for a Resize onnx test (#5068) 2021-04-12 13:38:56 +02:00
Mateusz Tabaka 69e1eebf4f
Fix broadcast with BroadcastType::NONE and unit dimensions (#5093)
* Fix broadcast with BroadcastType::NONE and unit dimensions

* fix issues found by flake

* fix broadcast negative test

* remove xfail_issue_49913
2021-04-12 13:06:29 +03:00
Alexandra Sidorova 325b5564f3
[CPU] Added GELU-7 support (#4800) 2021-04-07 16:01:47 +03:00
Tomasz Socha 320009d3b2
[nGraph][ONNX Importer] Bunch of small fixes (#4990) 2021-03-31 15:36:42 +02:00
Alexey Suhov a2bf62f488
Align copyright notice in sh, bat, cl, cc, pyx source files (#4995) 2021-03-27 01:26:27 +03:00
Alexey Suhov 6478f1742a
Align copyright notice in python scripts (CVS-51320) (#4974)
* Align copyright notice in python scripts (CVS-51320)
2021-03-26 17:54:28 +03:00
Jan Iwaszkiewicz 8ec59ceda4
[CPU][ONNX] Convert FP64 precision to FP32 (#4681) 2021-03-19 19:28:55 +01:00
Rafal Blaczkowski dbd3a3d7a4
Enable protobuf-lite in ONNX CI tests (#4487) 2021-03-15 14:34:02 +01:00
Katarzyna Mitrus 95a13e05d5
Enable MatMul 1D multiplication by transformation to GEMM (#4509)
* MatMul tests

* Tests update

* More tests

* IE tetst manifest cleanup

* Enable MatMul 1D multiplication by transofrmation to GEMM

* Add unsqueeze to transform tests

* Fix runtime info

* Update transformation condition

* Remove Xfail from python tests

* Add more tests for ignoring 1D transpose true

* Ignore transpose for 1D in MatMul transformations

* Resolve python api xfails

* Use ngraph::opset namespace

* Style apply

* Add MatMul single layer tests for 1D
2021-03-15 13:44:57 +03:00
Ivan Tikhonov b792214d04
Fix python API for Loop/TensorIterator/Assign/ReadValue operations (#3275)
* update python API for the Loop operation (attempt 1)

* fix code style

* update visitor API, pep8

* codestyle

* delete TensorItertorBuilder

* update visitor API for Loop and TensorIterator

* fix code issues (python)

* update python api:assign/read value

* fix unit tests

* fix python code style

* fix loop unit test

* fix loop unit test

* fix build on centOS
2021-03-11 13:22:24 +03:00
Gabriele Galiero Casay bd949c6baf
BinaryConvolution Reference Implementation (#4278)
* Add BinaryConvolution unit tests.

* Changed types to u1.

* Add BIN precision handling in TestCase class.

* Refactored validate and infer types to enhance dynamic shape inference

* Add type_prop test to cover invalid op cases and dynamic shapes

* Fix style

* Disable check for float type of data batch input

* Add type_prop test for incompatible input channels in inputs

* Disable backend unit tests

* Fix style

* Add reference implementation

* Add backend tests

* Add single layer tests

* Add check for float element type of batch data input

* Refactor backend test cases to compare with regular convolution

* Add serialization tests

* Clean up

* Add 1D and 3D tests into op_eval

* Changes in reference implementation to improve readability

* Add ticket information for todo tasks

* Fix implementation misbehavior for filter channels

* Add backend unit tests to cover strides, dilations, padding, channels and batches

* Add end of line into files

* Change name of type_prop unit tests

* Simplified lambda to get spatial dimensions of filters

* Add comment to support filters input as Parameter

* Add namespace details for BinaryConvolution utility functions

* Address review comments

Co-authored-by: jdanieck <jozef.daniecki@intel.com>
2021-03-09 22:58:25 +03:00
Evgeny Lazarev 99f94ca09c
Adding v7::Gelu operation (#4497)
* Added support for Gelu-6 to the MO

* Adding Gelu-6 to ngraph and python API + some tests

* Fixed typo in the Gelu approximation mode

* Fixed Gelu-6 reference implementation for Tanh mode

* Added transformation to downgrade v6::Gelu to v2::Gelu

* Added specification for the Gelu-6

* Code style fixes

* The Gelu-6 operation specification update

* Fixed compilation issue in reference implementation for Gelu

* Fix compilation issues for some OSs

* Code style fix

* One more cpplint issue fix

* Fixed Gelu6 reference implementation compilation on Windows.

* Code style fix

* Fixed various ngraph unit tests

* Code style check

* Reverted Gelu-2 to be fused op

* Fixed Gelu6 downgrade transformation

* Added unit test for Gelu6Downgrade transformation

* Update copyright year

* Updated copyright year

* Replaced tab characters with 4 spaces in IR reader tests

* Code style fixes

* Added default value for GeluApproximation mode for Gelu-6 op

* Fixed code style for Gelu-6

* Changed order of parameters for the Gelu evaluate to potentially avoid backward compatibility issues with ARM plugin

* Fixed code style

* Introduced opset7. Moved Gelu6 to opset7

* Fixed non-updated transformation

* Fixed opset version in ngraph Python API for Gelu operation

* Fixed typo in the opset number in the documentation

* Reverted some changes related to Gelu6

* Updated MO to produce Gelu7

* Updated unit tests for Gelu

* Updated Gelu7 specification

* Changed gelu reference implementation. Added opset7 to Python packages

* Updated Python API tests for Gelu operation

* Code style fix

* Marked get_approximation_mode function as const

* Added missing "const" qualifier

* Fixed code style issues in tests

* Added extractor for MxNet operation Gelu

* Spelling issues fix

* Updated MxNet supported symbols

* Added NGRAPH_OP_SCOPE for Gelu7 validate_and_infer_types

* Fixed a typo in the comment
2021-03-09 22:45:45 +03:00
Tomasz Dołbniak cadcd7c926
Remove a duplicate xfail marker for ONNX dropout tests (#4522) 2021-03-01 07:17:29 +03:00
Bartosz Sledz b0043bb599
ONNX Slice operator support types dynamically (#4507) 2021-02-26 16:28:51 +01:00
Ewa Tusień f88f81c6ba
OnnxBackendNodeModelTest XFAILs cleanup (#4432) 2021-02-26 15:34:24 +01:00
Maxim Andronov f26c82bde3
[CPU] Supporting constant networks (#4379) 2021-02-19 09:38:20 +03:00
Michał Karzyński ec9b5894fb
[ONNX] Add support for BitShift operator (#4368) 2021-02-17 16:39:27 +01:00
Michał Karzyński 66634a9939
Update ONNX compliance test list (#4360)
* Update ONNX compliance test list

* Update test_backend.py
2021-02-17 07:40:47 +03:00
Tomasz Socha 185aaacc07
[ONNX] Add support for Softmax v11 in opset 7 models (#4340) 2021-02-16 11:58:39 +01:00
Jan Iwaszkiewicz a3af43c8e4
[ONNX] Minimum op xfail updated (#4332) 2021-02-16 11:43:07 +01:00
Michał Karzyński ccc1a9f357
Rename dunder methods (#4334) 2021-02-15 18:34:21 +01:00
Mateusz Bencer d821ec47ce
[ONNX] Handle optional outputs for Dropout and MaxPool (#4143) 2021-02-15 11:14:20 +01:00
Rafal Blaczkowski 3eb0b5c90d
Add visible export (#4222)
Co-authored-by: Alexander Zhogov <alexander.zhogov@intel.com>
2021-02-11 19:02:58 +03:00
Jan Iwaszkiewicz 7af2959bd0
[ONNX] Convert to integral type in OneHot op (#4229)
Co-authored-by: Tomasz Dołbniak <tomasz.dolbniak@intel.com>
2021-02-10 14:03:54 +01:00
Tomasz Socha 65e2b4af3f
[ONNX Importer] Switch to opset6 (#4112) 2021-02-05 11:15:13 +01:00
Tomasz Socha 937c332978
[ONNX][Tests][Python][Models] Increase tolerance for some models (#4150) 2021-02-04 15:54:11 +01:00
Maxim Vafin e80e5e7ae5
Add python API for MVN-6 (#3816)
* Add python api for MVN-6

* Fix code style

* Fix codestyle

* Apply feedback

* Fix test
2021-02-04 17:36:19 +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