Commit Graph

247 Commits

Author SHA1 Message Date
Mikhail Nosov
e5622738e7 Exposing 'Dimension' class to Python nGraph API (#5997) 2021-06-03 08:46:34 +03:00
Tomasz Dołbniak
3bb91c4e5a Fix of some nGraph python tests (#5778) 2021-06-02 12:57:57 +02:00
Tomasz Dołbniak
ef5ded7878 Obsolete tests removed (#5786) 2021-05-28 07:48:38 +03:00
Anastasia Kuporosova
b5c5b6b974 [Python API] Add MemoryState API (#5731)
* [Python API] Add MemoryState API

* use inferRequest instead of IInferRequest

* implement VariableState through cpp

* small fixes + add tests for preprocess_info
2021-05-26 10:46:44 +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
1353ed1f85 Support old TBBs in cmake (#5638)
* Support old TBBs

* Don't reset environment

* Removed useless NO_CMAKE_FIND_ROOT_PATH

* Fixed build with old TBB for Windows

* Fixed ngraph code style
2021-05-15 11:42:09 +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
Jan Iwaszkiewicz
511cddb87f [nGraph] Add documentation strings (#5418) 2021-05-05 10:15:07 +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
Ilya Churaev
9d37403f89 Changed clang-format for nGraph to fix namespace comments (#5269)
* Changed clang-format for nGraph to fix namepace comments

* Update comments

* Fixed code style
2021-04-22 08:06:54 +03:00
Ilya Churaev
a672b9c599 Enabled Wall for nGraph (#5270)
* Enabled Wall for nGraph

* Fixed Linux build

* Fixed ONNX Editor and class-memaccess

* Fixed topK

* Fixed some builds

* Fixed nGraph Python API

* Use std::fill instead of cycle

* Wno-unded and deprecation for app python versions
2021-04-22 06:24:03 +03:00
Ilya Churaev
b751683c82 Fixed macOS compilation (#5283)
* Fixed macOS compilation

* Added -Wno-undef
2021-04-19 10:24:26 +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
Michał Karzyński
0f8cdfa293 Add Debug build to OpenVINO-ONNX CI (#5034) 2021-04-01 13:04:51 +02:00
Tomasz Socha
320009d3b2 [nGraph][ONNX Importer] Bunch of small fixes (#4990) 2021-03-31 15:36:42 +02:00
Michał Karzyński
657a633ee9 Update ngraph/python test dependencies (#4989) 2021-03-29 15:26:11 +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
Ilya Lavrenov
f205ba9459 Fixed pyngraph compilation with python 3.9.2 (#4940) 2021-03-25 13:15:01 +03:00
Sergey Lyubimtsev
222a709c6c NGraph python api cannot be built w/o onnx importer (#4880)
* NGraph python api cannot be built w/o onnx importer

* add target condition
2021-03-25 12:26:35 +03:00
Alexey Suhov
a748c26fee Align copyright notice in cpp and cmake source files (CVS-51320) (#4950) 2021-03-25 02:40:09 +03:00
Mikhail Ryzhov
c3fc40052c Python 3.8 support (#4629)
* Python 3.8 support

* Get path from setupvars
2021-03-23 17:32:08 +03:00
Jan Iwaszkiewicz
8ec59ceda4 [CPU][ONNX] Convert FP64 precision to FP32 (#4681) 2021-03-19 19:28:55 +01:00
Ilya Churaev
1334d7d122 Enable OV clang format command for nGraph (#4792)
* Added add_clang_format commands

* Added clang_format targets as dependencies for original targets

* Update CI scripts

* Fixed code-style for nGraph unit tests

* Change job name

* Disable clang-format for Windows

* Fixed nGraph python build

* Fixed comments and enabled code style for ONNX Editor

* Disable code style check on compilation step
2021-03-18 06:38:10 +03:00
Katarzyna Mitrus
5f098e1079 nGraph code style upgrade to clang-format-9 (#4721)
* ngraph clang-format upgrade to 9

* Reformatted files

* Remove comma at the end of test data vector
2021-03-15 22:06:01 +03:00
dependabot[bot]
b83b5115a5 Bump flake8 from 3.8.4 to 3.9.0 in /ngraph/python (#4782) 2021-03-15 17:59:29 +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