Commit Graph

201 Commits

Author SHA1 Message Date
Mikhail Nosov 12e2b3e4a9
Pyngraph tests: Install & run on Azure-Linux CI (#6927)
* Pyngraph tests: Install & run on Azure-Linux CI

* Typo correction

* more ci corrections
2021-08-04 20:29:49 +03:00
Maxim Vafin 5920cf849d
Implement paddle frontend methods for partial conversion (#6784)
* Implement paddle frontend methods for partial conversion

* Apply feedback

* Fix codestyle

* Remove normalize implementation and change convert signature for partialModel case

* Apply review feedback

* Apply review feedback

* Fix onnx importer convert signature

* Fix codestyle

* Add test of unsupported op

* Fix code style

* Remove "normalize()" tests

* Fix onnx tests

* Fix build

* Fix merge conflicts
2021-07-30 10:14:18 +03:00
Yury Gaydaychuk 7ab92b5845
[CPU] Adaptive pooling implementation (#6594) 2021-07-29 20:41:24 +03:00
Mikhail Nosov 868fad33ab
[MO] Add support to moc_frontend of ":" as delimiter for --input and --output (#6543)
* [MO] Add support to moc_frontend of ":" as delimiter for --input

Additions:
Changed default logic for 'Place::get_in(out)put_port' to return nullptr
Changed default logic for 'InputModel::get_place_by_tensor(operation)_name' to return nullptr

* Corrected comments in code

* Missing empty line

* Clang format fixes

* Fix review comments

* Updated test to verify review comments fixes

* Update unit tests after rebase

* Apply review comments
2021-07-29 13:09:51 +03:00
Mateusz Bencer dc5f44e929
Integration ONNX Editor with FE API (#6773) 2021-07-27 12:20:39 +02:00
Mateusz Tabaka 22273f8069
[ONNX] Add ONNX specific FrontEnd classes (#6615)
This change implements a subset of FrontEnd API for ONNX:

Changes:
- move onnx_common, onnx_editor and onnx_import to ngraph/frontend/onnx
- introduce new target 'onnx_frontend_ngraph' located in ngraph/frontend/onnx/frontend
- new target implements subset of FrontEnd, InputModel and Place interfaces
2021-07-22 16:26:05 +02:00
Mikhail Nosov aecb2b9693
Static library for ngraph::frontend_manager (#6719)
* Static library for ngraph::frontend_manager

* Static + Shared versions

* Fix CI

* USE_STATIC_FRONTEND_MANAGER macro

* Set USE_STATIC_FRONTEND_MANAGER compile definition as public

* Revert back incorrectly removed line

* Apply more review comments
2021-07-22 02:42:34 +03:00
Ilya Lavrenov b62d93efff
Enabled code style check for tests (#6724) 2021-07-20 18:59:38 +03:00
Rafal Blaczkowski e8f07d8b26
Update AZURE - OpenVINO ONNX CI check (#6721)
* experiment

* save

* Undo exeprimental changes
2021-07-20 15:17:53 +03:00
Maxim Vafin 960ba48e6f
Rework model loading in FE manager, implement PDPD probing (#6358)
* Rework model loading in FE manager, implement PDPD probing

* Fix build

* Fix build

* Fix build

* Fix unicode

* Fix merge issues

* Fix codestyle

* Read frontends path from frontend_manager library location

* Fix codestyle

* Fix FE dependency

* Fix dependencies

* Fix codestyle

* Check if model file exists

* Revert adding model to lfs

* Add test model

* Fix cmake dependencies

* Apply review feedback

* Revert pugixml

* make getFrontendLibraryPath not public API

* Fix codestyle

* Apply fix from Ilya Lavrenov

* Add FE dependency in legacy tests

* Remove not needed dependency

* Better support Unicode

* Fix build

* Fix build

* Fix build

* Add dependency foe deprecated tests

* Fix dependency

* Fix typo

* Revert adding FE dependency to IESharedTests

* Remove relative paths from frontend unit tests

* Apply review feedback

* Fix typo

* Return allow-undefined, since kmb dependecies fail to link

* Fix merge conflict

* Compare functions in reader tests

* Simplify code to load from variants

* Remove supported_by_arguments from public api

* Fix codestyle

* Fix build

* Compare names in reader tests

* Fix wchar in variant

Co-authored-by: Ilya Churaev <ilya.churaev@intel.com>
2021-07-19 20:10:00 +03:00
Ilya Lavrenov bc36425381
Added suggest-override flag (#6631) 2021-07-16 18:55:05 +03:00
Maxim Vafin e25bb7e6ab
Add AdaptivePool to ngraph python API (#6579)
* Add AdaptivePool to ngraph python API

* Disable tests until CPU implementation is ready

* Change ticket number

* Add create op tests

* Fix quotes

* Fix typo
2021-07-15 18:03:51 +03:00
Luo Cheng 2378593bd5
MulticlassNms/MatrixNms: ngraph python api (#6573)
* nms python api

* fix python code style

* fix python code style

* apply review comments

* apply review comments
2021-07-14 07:06:39 +03:00
Jan Iwaszkiewicz 01eebba54b
[nGraph] Return Node's operation version (#6589)
* Add python test

* expose node version to python api
2021-07-13 12:49:11 +03:00
Mateusz Tabaka 1a5bd8a510
[ONNX] Split importing model to two phases: decode and convert (#6326) 2021-07-12 12:13:25 +02:00
Ivan Tikhonov de8c57e034
DeformableConvolution v8: ngraph python API (#6520)
* Python API for DeformableConvolution op

* python codestyle

* fix python codestyle

* resolve review remarks

* fix python codestyle
2021-07-09 09:41:43 +03:00
Tomasz Jankowski d9b6c43201
[ONNX] Fix fp16 Tensor data loading (#6338) 2021-06-28 16:05:54 +02:00
Mikhail Nosov 9868bde421
[Frontend] pickle.dumps support for FrontEndManager (#6370)
* [Frontend] pickle.dumps support for FrontEndManager

* Fix clang-format

* Reorganize imports in test_frontendmanager.py
2021-06-25 15:51:33 +03:00
Mikhail Nosov 6926d5d639
[nGraph FE] Python bindings for nGraph FrontEndManager API (#5995)
* [NG Frontend] Introduce classes and macros for Frontend-specific exceptions

* [nGraph Frontend] Python bindings

Exposing Python API for nGraph FrontEndManager introduced in PR #5470

* [nGraph Frontend] Python bindings

Exposing Python API for nGraph FrontEndManager introduced in PR #5470

* Added docs + moved sources to 'pyngraph/frontend'

* Fix issues after rebase

* Fix clang

* Moving ngraph/python/tests_cpp to ngraph/python/tests/mock

* Fix cmakelists-related comments

* Apply review comments

* Added dots to docstrings

* Cmake - Set target properties for ARCHIVE/PDB/COMPILE_PDB as well as for LIBRARY_OUTPUT_DIRECTORY
2021-06-22 08:24:47 +03:00
Tomasz Jankowski b1db3448e7
[ONNX] Extend ONNX Importer for operation "Einsum" (#6074) 2021-06-16 14:57:29 +02:00
Tomasz Dołbniak 14e486b767
MVN test with opset6 version of the op (#6111) 2021-06-10 23:34:36 +03:00
Tomasz Dołbniak 6040d433d3
Fix for the paddings attribute handling for ONNX Pad@1 (#6101) 2021-06-10 11:06:30 +02:00
Ivan Tikhonov aa0c93300c
Update for Python API to create networks with Memory layers (#6079)
* Update python API for Memory

* Run unit tests on CPU only

* add missed import

* Update tests

* fix py tests
2021-06-09 12:19:36 +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
Mikhail Treskin 56ada41bd0
Add get_constant_from_source capability to pyngraph (#6018) 2021-06-07 18:19:52 +03:00
Tomasz Socha f9b27c3714
[ONNX] 🛠️🕸️ Fix softmax opsets (#5959) 2021-06-07 14:01:20 +03:00
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
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