Commit Graph

696 Commits

Author SHA1 Message Date
Mateusz Tabaka
9996994b8d [ONNX] remove dangling Parameters from graph (#3774)
We have models with inputs with no initializer and not connected to any other node.
2021-01-12 14:12:57 +01:00
Ilya Lavrenov
ba08abb388 Set default visibility only for ONNX (#3798) 2021-01-12 07:14:48 +03:00
Bartosz Sledz
f6c2f3cc16 Change failing test ticket number (#3677) 2021-01-12 07:10:48 +03:00
Pavel Esir
d9bd59c7a0 Evaluate, ngraph_reader check and Python nGraph API for GatherElements (#3624)
* add GatherElements evaluate to interpreter backend

* Finally successfully run on backend

* debugged non-typical cases

* added ngraph_reader tests for GatherElements

* added Python API for GatherElements

* apply_style

* corrected python api tests

* applied comments

* style-apply

* finally corrected nGraph Python API for GatherElements

* minor corrections

* style-apply

* replaced quotes

* added blank line

* corrected evaluate and disabled unit-tests for not yet supported plugins

* style-apply

* applied comments: negative tests added and additional checks in evaluate

* added bound check for axis in evaluate

* style-apply

* apply review comments

* fast correct evaluate for GatherElements

* style-apply

* revert changes in interpreter unit_test.manifest for Gather

* 🚀 optimized general solution; added separate calculation for 2D

* 🚀 applied comments

* style-apply
2021-01-11 19:52:47 +03:00
Mateusz Tabaka
1e418ca549 Revert PSROIPooling average logic introduced in 305f0056059b091e0290b… (#3765)
* Revert PSROIPooling average logic introduced in 305f005605

* fix computing bin coords in average mode
2021-01-11 17:30:53 +03:00
Ilya Lavrenov
0d22328a25 Partially removed ngraph cmake duplication with IE cmake (#3751)
* Partially removed cmake duplication with IE cmake

* Deprecated API usage: fixed or suppressed

* Fix for TypeRelaxed

* Canonical form for ngraph includes

* Removed extra visibilit settings; removed graphviz find_package

* Removed var_functions module; canonical includes for ngraph::reference

* Fixed deprecated API in ngraph tests

* Re-use standard cmake macro for shared libs

* Trying to fix ONNX importer tests
2021-01-11 14:49:33 +03:00
Ilya Lavrenov
50f9dd8a6b Enabled CMP0025 as NEW (#3791) 2021-01-11 14:48:27 +03:00
Yury Gaydaychuk
9069781659 CPU implementation for ROIAlign (#3579) 2021-01-11 12:04:45 +03:00
Bartek Szmelczynski
39aa228805 base file for unit-testes for unary operators (#3700)
* Add file containing base tempalte funtions for all unary operators and add example with acos

* fix style-check

* add file for tests for all unary operators

* fix style

* rename unary_base.cpp to unary_ops.cpp

* Update test CMakeList

* fix typo

* style-apply

* Remove code blocks and add test for dynamic rank input
2021-01-11 11:43:57 +03:00
Bartosz Lesniewski
11f1a0f671 Remove ops from Layer Creator/ Node Converter - part 6 (#3620)
* remove deformableconvolution op from layer creator

* remove deformablepsroipooling op from layer creator

* remove maxpool op from layer creator

* remove nonmaxsuppresion from layer creator

* remove groupconvolutionbackpropdata op from layer creator

* remove groupconvolution op from layer creator

* fix code style
2021-01-11 07:55:14 +03:00
Evgenya Stepyreva
511db4724f [ nG ] opset1::Reshape output shape inference refactoring (#3542)
* [ nG ] opset1::Reshape output shape inference refactoring

* SET_INPUT_IS_RELEVANT_TO_SHAPE

* small refactoring

* brought legacy check back

* style

* Integizer

* stylee

* Apply suggestions from code review

* merge master
2021-01-10 21:37:24 +03:00
Mateusz Bencer
65b8307c2f Fixed clone_with_new_inputs for TopK (#3757) 2021-01-08 08:59:26 +01:00
Mateusz Tabaka
b56cf07f0e [ONNX] remove unnecessary ReduceMax and Subtract in Softmax op (#3717) 2021-01-07 19:02:59 +01:00
Mateusz Tabaka
7be7a8fb30 [ONNX] don't hardcode shapes in Interpolate and Shape operator (#3778) 2021-01-07 16:56:19 +01:00
Gorokhov Dmitriy
37b6e75730 [CPU] Fixed Divide operation support for I32 precision (#3721)
* [CPU] Fixed Divide operation support for I32 precision
2020-12-28 19:18:19 +03:00
Ilya Churaev
72cd81305c Fixed headers for doxygen genration (#3746) 2020-12-28 13:33:26 +03:00
Rafal Blaczkowski
eac33e1b0e OpenVino ONNX CI update (#3750)
* Enlarge timeouts for OpenVino ONNX CI

* Enlarge a lot timeouts

* Update processing script
2020-12-28 11:03:38 +03:00
Ilya Churaev
6f77c72fc7 Small cosmetic fixes (#3748) 2020-12-25 19:42:33 +03:00
Ilya Churaev
d6721c395b Added CC macros to validate, clone and visit (#3730)
* Added CC macros to validate, clone and visit

* Fixed names

* Fixed code style

* Add exceptions

* Revert "Add exceptions"

This reverts commit 0489ba376f.

* Update ngraph macros, throw an exception if code is disable for nGraph op

* Fixed code style

* Simplified NGRAPH_OP_SCOPE

* Changed TYPE_CASE macros

* Fixed compilation

* Fixed code style

* Fixed build
2020-12-25 17:20:48 +03:00
Rafal Blaczkowski
6d45a9c041 ONNX CI improvement (#3673)
* Improve corner-case resistance

* small improvements
2020-12-25 07:46:55 +03:00
Mateusz Tabaka
1aee9f9ffe [ONNX] don't hardcode shape in Softmax operator (#3676)
* [ONNX] don't hardcode shape in Softmax operator

* use named constant for special zero param in reshape
2020-12-25 07:41:46 +03:00
Sergey Lyubimtsev
2e6ea1e290 CMake based build for pyngraph module (#3080)
* [MO] Add CMake install for Model Optimizer

* [MO] Update test for version.py

* [MO] Add CMake install for Model Optimizer

* [MO] Update test for version.py

* [MO] Add CMake install for Model Optimizer

* [MO] Update test for version.py

* [nGraph] Python API should be compiled and installed via CMake (41857)

* Refactored wheel setup script to build module using CMake

* Update build instructions

* Added USE_SOURCE_PERMISSIONS to cmake install

* Adjust CMake compiler flags conditions

* fix CPack issue for CI build pipeline

* case insensitive option check

* build only python API if ngraph_DIR provided

* fix lib extension for macOS

* -fixed style (flake8)

 -added paralllel build option & description

* fix flake8 B006 check

* add ngraph_DIR & remove unsed env. variables.

* Reworked build & test instructions to make it more straightforward

* remove unused CMake arguments for setup.py

* make source dir condition more general

* Update BUILDING.md

* Update BUILDING.md

* Update BUILDING.md

* beautified instructions wording

* fix wheel build issue after sourcing setupvars

* Extend user options to build, install and develop commands

Co-authored-by: Andrey Zaytsev <andrey.zaytsev@intel.com>
2020-12-24 16:57:58 +03:00
Ilya Churaev
ad3405ef5e Removed global factory for nodes (#3701) 2020-12-24 10:47:05 +03:00
Szymon Durawa
431485e4a6 Visitor api ti implementation (#3576)
* TensorIterator deserialization. Introduce new on_adapter(Function) and add implementation in on_adapter(void) for Input and Output Descriptions. Remove factory adapter.

* Add comments to functions provided. Add missing  on_adapter() after rebase.

* Apply formatting.

* Remove visit_attributes from SubGraphOp, remove declaration for createSubGraphLayer.

* Add port map parsing to address not consecutive order of external_port_id appearance.

* Remove header for factory_adapter.

* Add on_adapter() in V10Parse::parse() function.

* Add m_num_iterations initialization for concat output.

* Remove redundant lines, add doxygen comments.

* Change cpp/ie_cnn_network.h to local include, remove temporary map object from range for loop.

* Restore protected access for SubGraphOp.
2020-12-24 07:34:21 +03:00
Sergey Lyubimtsev
4f0720176c CMake install fixes (#3600)
* [MO] Add CMake install for Model Optimizer

* [MO] Update test for version.py

* [MO] Add CMake install for Model Optimizer

* [MO] Update test for version.py

* [MO] Add CMake install for Model Optimizer

* [MO] Update test for version.py

* - fix install paths for onnx_reader and ir_reader

- remove static lib installation for plugins on plugins
- 97-myriad-usbboot.rules is installed only for Linux

* added new line

* - Return GNAPlugin to default build list

- Remove test artifacts from cmake install distribution
- Remove nGraph static libs from cmake install distribution

* revert install rule for archive(.lib)

* revert install rule for onnx_importer (.lib)
2020-12-23 23:27:23 +03:00
Patryk Elszkowski
2bc18c27aa Constant attr to visitor (#3540)
* Add new path for constant in IR serializer.

* Apply suggestion from review.

* Unique name for temporary test file

* Switch from static to constant member function - GetTestName

* Ensure bin path is not empty.

* Compare Constants op by string values converted to float.

* Add path validation.

Co-authored-by: Patryk Elszkowski <patryk.elszkowki@intel.com>
2020-12-23 16:14:26 +03:00
Piotr Szmelczynski
8806cd3d64 Abs revise (#3601)
* create type_prop tests

* add abs type_prop tests to CMakeList

* add type prop test for dynamic input shape

* fix style
2020-12-23 16:10:29 +03:00
Mateusz Tabaka
a8022cdbc8 Enable TinyYolo v3 in CI (#3651) 2020-12-23 12:25:54 +01:00
Vladimir Paramuzov
241b0faea1 [IE CLDNN] NGraph integration into cldnn plugin (#2506)
Co-authored-by: Roman Lyamin <roman.lyamin@intel.com>
Co-authored-by: Mikhail Letavin <mikhail.letavin@intel.com>
2020-12-23 13:35:44 +03:00
Patryk Elszkowski
bd9bbe09c3 New Gather op reference implementation. (#3633)
* New Gather op reference implementation.

* Unify span implementation for gather and gather_nd.

Create span.hpp for common implementation of span.

* Move span to utils directory.

* Address review comments.

* update span

* Address PR comments.

Co-authored-by: Patryk Elszkowski <patryk.elszkowki@intel.com>
2020-12-23 08:02:57 +03:00
Ilya Lavrenov
9465073f58 Introduce IEDevScripts package (#3661)
* Refactored developer package

* Added fuzzing for CMAKE_MODULE_LINKER_FLAGS as well

* Added options for developer package

* More improvements

* Further improvements

* Removed global CMAKE_MODULE_PATH population

* Fixes

* Final fixes

* Fixed python build

* Fix for TBB

* Fixed Find TBB

* Fixed install

* Fixes for OV features

* Split developer targets per component

* Fixed IE build tree config

* Fixed ITT

* Fixed review comments

* Clean export dependencies

* Fixed export of pugixml

* Added IEDevScripts_DIR for Android

* Fixed Android #2

* Fixed Android #3

* Fixed python cc

* Disabled Core threading tests on GNA
2020-12-22 18:44:59 +03:00
Ilya Churaev
1926179b65 Changed OV_SCOPE semantic (#3692)
* Added if DEFINE construction

* Changed OV_SCOPE semantic

* Fixed the code style

* Fixed redundant lines
2020-12-22 18:29:41 +03:00
Gladilov, Gleb
2ffa6f4764 [IE][nGraph]: Fixes Loop shape inference (#3641)
Previously Loop shape inference function
produced dynamic shapes for body parameters
and loop outputs if iteration count is
unknown (dynamic) or loop input data is
dynamic. At the same, time some dimensions
of input/outputs of body/loop could be
inferred under this circumstances which could
critical for model enablement (ex. Myriad-X
could support convolutions with dynamic batch,
but could not support convolutions with dynamic
spatial dimensions)

Signed-off-by: Gladilov, Gleb <gleb.gladilov@intel.com>
2020-12-22 17:19:27 +03:00
Mateusz Tabaka
e9b89b0bc5 [ONNX] remove hardcoded shape in GroupNorm operator (#3682) 2020-12-22 11:03:59 +01:00
iliya mironov
b17e0d47b1 Remove broadcasting (#3574)
* Remove broadcusting

* Refactoring some code

* Add unit tests

* Update description

* Refactoring transformation

* Add is_broadcastable_shapes checks

* Update is_eliminate_broadcast func

* Add unit tests

* Update unit tests

* Add unit tests

* Add unit tests

* Remove unused include

* Add dynemic tests

* Update unit tests

* Fix code style

* Fix unit tests code style

* Fix code style

* Add one more case for elumenate broadcast

* Fix according to review

* Refactoring transformation code
2020-12-22 12:58:37 +03:00
Mateusz Tabaka
4f14e842c1 Update ONNX models to latest master (#3658)
* Update ONNX models to 00d95ba9e5758fd0bc5e6978033fabc4f2a95e61

That version fixes yolov4 and roberta models

* remove yolov4 post processing

* remove model directory before unpacking
2020-12-22 08:04:32 +03:00
Pavel Esir
d2a23680f2 nGraph 'shell' implementation for GatherElements-6 and MO 'shell' implementation (#3467)
* Initial support of GatherElements in MO and nGraph

* apply_style

* added lost extractor for GatherElements

* Corrected GatherElements::validate_and_infer_types

* updated package_BOM.txt

* Type_t added

* started to implement ngraph shape_type_infer unit-tests

* finally implemented all ngraph shape_inference unit-tests

* updated Supported_Frameworks_Layers.md

* added correct handling of dynamic shapes in nGraph, added unit-tests for dynamic cases, fixed dump typos in MO, replaced axis type from int -> int64_t

* implemented shape infer for dynamic shapes with intervals

* finalized MO implementation

* applied comment from review

* style-apply

* spec correction

* removed conflict

* fixed typos

* removed obsolete comments form type_prop

* significant corrections in validate_and_infer_types

* style-apply

* data_rank check for axis
2020-12-21 15:45:15 +03:00
Ilya Churaev
b2399ce0d9 Enable Conditional Compilation for nGraph evaluate methods (#3666)
* Added CC macro to nGraph

* Add CC to evaluate methods

* Fixed tests

* Fixed comments

* Add private evaluates

* Fixed code style and names

* Fixed code style

* Fixed build
2020-12-21 14:32:40 +03:00
Mateusz Bencer
0b05653d7a Resolved problems with ssd_resnet34_mlperf_opset10 (#3487)
* Resolved problems with ssd_resnet34_1200

* removed debug code

* Added correct handling onnx nodes from parent graph scope

* removed unnecessary include

* fixed calcution index to replace

* fixed LoopParentParametersUsedInBody test

* added set_friendly_name

* apply Unsqueeze for each concatenated Loop output

* added handling trip count with value max_int

* merge from upstream/master

* update xfail list

* added checking is trip_count is constant
2020-12-21 14:32:15 +03:00
Bartosz Sledz
29f1c38ba0 Remove doubled Reshape operator tests and revise unittest.manifest (#3642)
* Remove doubled reshape tests

* Clean manifest and enable unblocked tests
2020-12-18 04:30:40 +03:00
Katarzyna Mitrus
6d89a96d9e Ramove LSTM_Seq_lens model xfail declaration (#3635) 2020-12-17 16:20:01 +03:00
Rafal Blaczkowski
be69a4de2f Enable automatic update of ONNX Model Zoo for ONNX CI (#3511) 2020-12-17 14:12:47 +01:00
Bartosz Lesniewski
5f9ef0cf26 Remove ops from Layer Creator/ Node Converter - part 5 (#3493)
* remove avgpool op from layer creator

* remove binaryconvolution op from layer creator

* remove broadcast op from layer creator

* remove ctcgreedydecoder op from layer creator

* remove stridedslice op from layer creator

* remove convolutionbackpropdata op from layer creator

* adjust broadcast op to deduce broadcast mode

* add default strides if not provided when creating stridedslice

* code review comments
2020-12-16 19:51:28 +03:00
Mateusz Bencer
261cb6ecf8 Enable yolo v3 test, added post-processing step (#3510) 2020-12-16 16:52:08 +01:00
Katarzyna Mitrus
9376f78994 [ONNX] Dynamic version of ONNX Size op (#3553) 2020-12-16 11:16:06 +01:00
Mateusz Tabaka
47485646bb Revise DetectionOutput reference implementation (#3448)
* Revice DetectionOutput reference implementation

Ticket: 37433

* fix test_create_op

* fix test_dyn_attributes

* apply code format

* fix crash on Windows when variance_encoded_in_target == 1

* add more checks for DetectionOutput inputs

* Fix single layer tests

* apply code format

* fix ssd_vgg16_300 inference with batch size > 1

* update types in docs

* fix crash on windows

* apply code style

* fix python tests

* fix setting output type

* change False to false and True to true in docs

* Allow prior boxes to have different type than box logits

Some models work that way

* simplify output shape calculation

* fixes to docs
2020-12-16 11:02:12 +03:00
Maxim Vafin
ab974e4f2e Add MVN-6 support to ngraph (#3464)
* Add MVN-6 to ngraph

* Apply review feedback

* Fix max opset number

* Fix code style

* Fix shape test

* Disable reader test

* Apply review feedback and remove reader test

* Fix code style

* Fix build

* Apply review feedback

* Fix build problem

* Fix code style

* Fix build
2020-12-15 21:36:44 +03:00
Gabriele Galiero Casay
19154fad2b Rename AvgPool to attribute exclude-pad to align with MO and layer creator (#3549)
* AvgPool: Bug fix in attribute exclude-pad to align with MO and layer creator

* AvgPool: Change attribute to exclude-pad in python api
2020-12-14 21:46:39 +03:00
Tomasz Socha
dbf855b320 [ONNX][Python][Tests] Update ONNX to onnx 1.8 (#3557) 2020-12-11 11:57:50 +01:00
Patryk Elszkowski
d8f00acd39 StridedSlice : slice and reverse new ref implementations (#3188)
* Create new iterators which allow to iterate over coordinates.

Use new iterators to speedup StridedSlice reference implementation.

* Call memcpy if reverse ref impl has nothing to reverse.

* Add unit tests for coordinate range.

* Change coordinates::RangeIterator to template.

* Yet another slice and reverse implementation.

Remove all stuff connected with ranges.

* Apply review suggestions.

* Back to ranges which base on CoordinateTransform.

* try to fix x84_32 build

* try to fix x84_32 build

* Ranges which return start, no, stride, direction.

* add input validation to coordinate_index

enable coordinate_range validation tests

* add some doxygens

* fix range increament

* add empyt range

* move SliceRange::get_value to cpp file

Co-authored-by: Patryk Elszkowski <patryk.elszkowki@intel.com>
Co-authored-by: ggalieroc <gabriele.galiero.casay@intel.com>
2020-12-10 18:36:12 +03:00