Commit Graph

712 Commits

Author SHA1 Message Date
Ilya Churaev
6159a5b0bc New ov::Function API (#7436)
* Generates tensor names

* Implement function helpers for Inputs/Outputs

* Fixed code style

* Share result tensor and add more tests

* Avoid not unique tensor names

* Print tensor name

* Fixed comment

* Fixed matmul transformation

* Fixed function evaluate

* Fixed typo

* Fixed interpreter backend

* Fixed comments

* Removed tensor names check

* Disabled negative tests

* Fixed NetworkContext_CNNNetwork tests

* Fixed GNA tests

* Remove reset names

* Fixed code style

* Temporary disable names generation

* Revert "Temporary disable names generation"

This reverts commit 133315a611.

* Fixed mapping generation and e2e tests

* Fixe Myriad tests

* Introduce AtomicGuard to fix possible thread issues

* Fixed comments
2021-09-24 07:11:02 +03:00
Mikhail Nosov
531118c4b0 OV2.0 Preprocessing shared tests - initial version (#7568)
* Shared preprocessing tests for plugins.
Comparing inference with reference implementation

* Moved evaluate tests to template plugin

* Fixed clang-style

* CPU tests: Set IE precision manually in SetUp. Also allow rounding to integer mismatch

* Added acceptable threshold depending on particular test
2021-09-23 23:17:59 +03:00
Ilya Lavrenov
84a07889f0 Added version information to OpenVINO Core (#7600)
* Added version information to OpenVINO Core

* Fixed code style

* Fixed Windows

* Fixed code style

* Fixed clang
2021-09-23 17:03:45 +03:00
Ilya Churaev
634759210f Introduced OpenVINO RTTI and add version string to operations (#7288)
* Introduced OpenVINO RTTI and add version string to operations

* Fixed build

* Try to fix build

* Removed get_type_info_static

* Fixed tests

* Moved ov operations to new macros

* Fixed type_info_static

* Introduce new header only declaration

* Deprecate type_info static member

* Introduced OPENVINO_OPERATION macro

* Fixed ngraph lib with new RTTI

* Fixed unit tests

* Fixed code style

* Fixed VPU common

* Fixed all target for macOS

* Changed macto to OPENVINO_OP

* Changed cldnn

* Fixed typo

* Fixed some unit tests with old operations

* Fixed DiscreteTypeInfo

* Fixed type relaxed operations

* Fixed legacy tests

* Fixed naming style

* Fixed cpuTests

* Disabled deprecation to pass CI

* Added compatibility to internal operations

* Added BWDCMP for internal ops

* Deprecate type_info

* Fixed Slice RTTI

* Fixed Myriad

* Applied patch from PR 7573
2021-09-23 13:29:39 +03:00
Ilya Lavrenov
1390440256 Use jobs pool for PDPD model conversion as well (#7602)
* Revert "Combine all PDPD model generation scripts into one python command (#7349)"

This reverts commit 1eca8a6e49.

* Added jobs pool for PDPD model conversion

* Use jobs pool for PDPD model conversion as well
2021-09-23 10:40:55 +03:00
Mateusz Bencer
fb11560b82 Implemented missing methods of ONNX Place API (#7518)
* Implemented get_consuming_ports, get_producing_operation and is_equal for PlaceOpONNX

* fixed unambiguous_node_check

* removed PlaceTensorONNX::get_input_port

* added PlaceOpONNX::is_input, PlaceOpONNX::is_output

* fixed python styles

* added get_consuming_operations implementation

* added missing get_consuming_operations for PlaceOpONNX

* added missing get_target_tensor for PlaceOpONNX

* changed place spec

* add support of get_source_tensor

* add support of get_producing_operation for PlaceOpONNX

* add support of get_producing_port for PlaceInputEdgeONNX

* fixed python styles

* missing ref in std::transform
2021-09-23 09:47:33 +03:00
Ilya Churaev
ef01e9836f Addeed get_friend_name() threading tests (#6052)
* Addeed get_friend_name() threading tests

* Added mutex for get_node method

* Fixed code style
2021-09-22 10:58:03 +03:00
cecilia peng
8ce8697830 Cecilia/bert/op convert (#7462)
* [paddlepaddle] embedding test case generator.

* [FrontEnd][PaddlePaddle] add op convert embedding for lookup_table_v2.

* code clean.
2021-09-22 07:40:11 +03:00
Mikhail Nosov
be8600af38 [OV20] ov::Layout improvements (#7551)
* Fix leftovers for ov::Layout
Added runtime info to Tensor
Add get_layout/set_layout/has_layout methods for parameter
Moved preprocess steps code to separate CPP file for readability purposes
Test code coverage = 100%

* Fixed review comments

* Try fix windows build

* Fix 1:
Correction: Dynamic channels dimension is ok on preprocessing
[?,?,?,?], Layout "NCHW" => scale({2.0, 3.0, 4.0}) is ok.
If HostTensor's channels dimension mismatches - it will fail on 'evaluate' stage (as usual)

Fix 2:
Verify that TensorInfo().set_layout(...) reuses element type from original parameter

* Removed 'using RTMap'
2021-09-21 16:02:55 +03:00
Luo Cheng
f4fa513325 [FrontEnd]enable pdpd ops layer_norm, gelu, fill_any_like, cumsum, tanh, matmul_v2 for BERT (#7511)
* enable layer_norm, gelu, fill_any_like, cumsum, tanh, matmul_v2

* change default namespace

* apply review comments
2021-09-21 15:06:42 +03:00
Ilya Churaev
55fb542bc6 Added OpenVINO util library (#7481)
* Added OpenVINO util library

* Fixed code style

* Fixed build

* Fixed build

* Added methods from IE utils

* Fixed style

* Fixed Windows build

* Fixed linux build

* Fixed windows build

* Try to fix dladdr

* Try to fix windows

* Fixed typo

* Fixed detection dynamic libs from static library

* Revert some changes

* Revert changes in windows loader

* Revert network reader

* Removed some methods from plugin API

* Fixed fluid tests

* Fixed typo

* Fixed include

* Try to fix CI

* Try to fix centos

* fix typo
2021-09-20 18:37:32 +03:00
Ilya Churaev
88b874ec8b Introduced new RTTI macros for nGraph (#7515)
* Introduced new RTTI macros for nGraph

* Added new tests

* Fixed comment

* Fixed Windows ieFuncTests

* Fixed code style
2021-09-20 11:03:14 +03:00
Michał Karzyński
702633073e Add set_argument/s methods to nGraph Python API (#7196)
* Add set_argument/s methods to nGraph Python API

* Apply formatting

* Clear inputs in Node::set_arguments

* Run all tests in one container

* Fix formatting

* Add unit test
2021-09-18 06:37:26 +03:00
David Nam
790ecd54c8 Add atan to template plugin test (#7509)
* Add atan to template plugin reference test

* Remove atan.in.cpp from backend test

* Remove boolean type from atan evaluation
2021-09-16 09:33:27 +03:00
Yuan Hu
97d937c8ea revise RNNCell RNNsequence operation class (#7335)
* revise RNNCell RNNsequence operation class

Signed-off-by: Hu, Yuan2 <yuan2.hu@intel.com>

* fix clang sytax check error

Signed-off-by: Hu, Yuan2 <yuan2.hu@intel.com>
2021-09-16 00:52:31 +03:00
Ilya Lavrenov
0df7dab345 New IRC package structure (#6255)
* OV new package structure

* Fixes

* More fixes

* Fixed code style in ngraph tests

* Fixes

* Paths to setupvars inside demo scripts

* Fixed demo_security_barrier_camera.sh

* Added setupvars.sh to old location as well

* Fixed path

* Fixed MO install path in .co

* Fixed install of public headers

* Fixed frontends installation

* Updated DM config files

* Keep opencv in the root

* Improvements

* Fixes for demo scripts

* Added path to TBB

* Fix for MO unit-tests

* Fixed tests on Windows

* Reverted arch

* Removed arch

* Reverted arch back: second attemp

* System type

* Fix for Windows

* Resolve merge conflicts

* Fixed path

* Path for Windows

* Added debug for Windows

* Added requirements_dev.txt to install

* Fixed wheel's setup.py

* Fixed lin build

* Fixes after merge

* Fix 2

* Fixes

* Frontends path

* Fixed deployment manager

* Fixed Windows

* Added cldnn unit tests installation

* Install samples

* Fix samples

* Fix path for samples

* Proper path

* Try to fix MO hardcodes

* samples binary location

* MO print

* Added install for libopencv_c_wrapper.so

* Added library destination

* Fixed install rule for samples

* Updated demo scripts readme.md

* Samples

* Keep source permissions for Python samples

* Fixed python

* Updated path to fast run scripts

* Fixed C samples tests

* Removed debug output

* Small fixes

* Try to unify prefix
2021-09-15 16:49:11 +03:00
Mateusz Tabaka
c0f01cdbd1 Extend ONNX Importer for operation "If" (#7319) 2021-09-15 10:57:13 +02:00
Egor Shulman
bdaa44d0be Fixed Minimum op if u8/16/32/64 data type is used (#6665) 2021-09-15 07:52:46 +03:00
Piotr Szmelczynski
ffef5bdff2 Avg pool bug fix (#7493)
* modify avg_pool ref impl to work with n_elements = 0

* add avg_pool backend test

* fix bug with division by 0
2021-09-15 07:50:30 +03:00
Katarzyna Mitrus
f5cd75a084 New Slice-8 ngraph op shell (#7304)
* init Slice ng op

* Init Slice op tests

* Add visitors test

* Output shape inference

* Add default axes calculation

* Add static output shape tests

* Remove default axes input injection

* Update default axes calculation

* Dynamic data rank case

* Update unordered axes case

* Add support for out dim bounds for unknown input values

* Add more tests

* Update headers and namespace

* Add step value check

* Full dynamic shapes support

* Fix type in attribute tests

* More typeprop tests

* Move Slice-8 to openvino api

* More validation cases

* Update opset8 operations count test
2021-09-15 07:25:42 +03:00
Alina Kladieva
fda3f5d237 [requirements] Set TF to 2.5.0 (#6620)
* [requirements] Set TF to 2.5.0

* [ngraph|paddlepaddle|requirements] Gast to 0.4.0

(required for TensorFlow 2.5)

* [ stress_tests/scripts/requirements] Upd versions

* [time_tests/test_runner/requirements] Upd versions

* [ngraph|paddle|requirements] Paddle strict major

* Gast version to 0.3.3

* Update requirements_dev.txt
2021-09-14 18:05:18 +03:00
Ilya Churaev
7ea1960b99 Revert shape renaming (#7490)
* Rename ov::Shape to ov::PartiaShape

* Rename StaticShape to Shape

* Fixed code style

* Fixed merge conflict
2021-09-14 15:10:05 +03:00
Mateusz Tabaka
2c4009e3d8 Add support for com.microsoft.BiasGelu operator (#7480) 2021-09-14 13:02:31 +02:00
Mikhail Nosov
2236c6105b [OV20] Layout class implementation - basic API (#7452)
* Draft

* More tests

* to_string + advanced_syntax + more tests

* Coding style

* Add mean/scale - vector version with layout support

Vector version requires layout to be set

* Added comments to LayoutRank

* Removed unnecessary public API
- Removed setters
- Removed LayoutRank from public classes

* Review comments:
- Rename 'layouts' namespace to 'layout'
- 'get_index_by_name' - specify throw exception type
2021-09-13 19:02:22 +03:00
Zhang Yi
f1f737636e [Frontend][Paddle]Handle Exception in Op Conversion. (#7296)
* [Frontend][Paddle]Handle Exception in Op Conversion.

* [Frontend][Paddle]revise comments

* [Frontend][Paddle]add tests for error handling

* [Frontend]fix typo

* [Frontend][Paddle]relax model version check to 2.0.0

* [Frontend][Paddle]fix typo
2021-09-13 08:23:15 +03:00
Mateusz Bencer
3ea74bd8f8 Add PlaceOpONNX and some missing Place's methods (#7269) 2021-09-10 16:20:41 +03:00
Gabriele Galiero Casay
deeb96440f Revise GatherTree reference implementation (#7275)
* Add visitor api test

* Review ngraph op shell with type_prop tests

* Add op to list of trusted operations

* Change name of struct with information of inputs

* Add include of array data structure to fix windowds compilation error

* Add template plugin test class

* Remove usage of CoordinateTransform index function call from reference implementation

* Rename SLT test suite

* Add template plugin unit test

* Add serialization SLTs

* Add indentation on GatherTreeParams class data members
2021-09-10 14:02:49 +03:00
Vladislav Golubev
f5767d4a5b [LPT][Transformations] Dynamic shapes support: functional issues fixes (#7159)
* [LPT] ReshapeTransformation fix

* [LPT] FQDequantization::empty() fix

* [LPT] ConcatTransformation fix

* [LPT] MVNTransformation quick refactoring

* [TESTS] AddTransformation functional tests: removed unused param

* [nGraph] TypeRelaxed::evaluate

* [nGraph] Tile fix

* [nGraph] Intervals addition: overflow handling

* [LPT] MultiplyTransformation: canBeTransformed fix

* [TESTS] TypeRelaxed::evaluate: added test

* [LPT] MVNTransformation compilation error fix

* TypeRelaxed: evaluate fix

* macos fix

* TypeRelaxed::evaluate: postreview fixes

* ConcatTransformation: postreview fix
2021-09-09 13:05:32 +03:00
Ivan Tikhonov
7bc6a8ea13 Fix clone_function method in case of Assign/ReadValue v3 (#7406) 2021-09-08 20:35:24 +03:00
Ilya Churaev
d1b0f06f4f Aligned macro name OV_CHECK->OPENVINO_ASSERT (#7400)
* Aligned macro name OV_CHECK->OPENVINO_CHECK

* Renamed OPENVINO_CHECK to OPENVINO_ASSERT
2021-09-08 17:42:26 +03:00
Mikhail Nosov
3f44858971 Fix 'preprocess' test compilation (#7423) 2021-09-08 16:10:06 +03:00
Mikhail Nosov
b99e1d0a62 [OV20 Preprocessing] Preprocessing API - basic preprocessing functionality (#7391)
* Preprocessing API - base classes

Includes API definition for trivial mean/scale operations (which don't require layout)

Mean/scale with 'layout' support will be done under separate task together
 with Layout

Current test code coverage: 100%

* Rename 'pre_post_process' folder to 'preprocess', aligned with namespace
Fix 32-bit tests

* More cleanup

* Review comments
2021-09-08 15:10:18 +03:00
Ilya Churaev
8bd41a1f45 Fixed compilation with ov::opsetN:op (#7415)
* Fixed compilation with ov::opsetN:op

* Fixed code style
2021-09-08 13:49:43 +03:00
Ilya Churaev
722891756f Changed ov::PartialShape to ov::Shape (#7154)
* Changed ov::PartialShape to ov::Shape

* Renamed ngraph::Shape to ov::StaticShape

* Fixed code style

* Fix python API

* Fixed typo

* Fixed test

* Fixed comments

* Fixed tests

* Fixed merge conflicts

* Try to fix build

* Fixed build

* Changed ov::Shape to ngraph::PartialSHape

* Fixed build

* Moved new API to StaticShape and Shape
2021-09-08 12:43:15 +03:00
Nikita Semaev
3c22b2af95 Revise NotEqual (#7198)
* Hiding the problem, Validate() changes 'function'

* Template plugin tests

* Undo the changes that are not necessary

* Align code style

* Added \n at end of file

* Removing an unused implementation

* New version with Code Style checking

* Cleaning backend tests

* Reworked the tests the right way

* Removed visit_attributes()

* Removed visit_attributes() in source file

* Added NGRAPH_CHECK macros to evaluate()

* Removed zero_sized_not_equal mention from unit_test.manifest

* Added function name to the constants.py

* Revert "Added function name to the constants.py"

This reverts commit 5b7478056f.

* Return visit_attributes() for op::v1::NotEqual due to NotEqual being moved to another location
2021-09-08 11:30:40 +03:00
Ilya Churaev
a2aae78f4b Moved opsets to ov namespace (#7388) 2021-09-07 16:30:06 +03:00
Tomasz Dołbniak
5fc0abe9cd Assertion message when blob precisions dont match (#7394) 2021-09-07 10:18:57 +02:00
Tomasz Dołbniak
b86984fb30 MaxPool-8 evaluate() (#7363) 2021-09-03 21:22:07 +03:00
Mikhail Nosov
1eca8a6e49 Combine all PDPD model generation scripts into one python command (#7349) 2021-09-03 11:27:14 +03:00
Tomasz Socha
90b2265640 [ONNX] QLinearConvolution (#7210) 2021-09-02 14:46:52 +02:00
Ilya Churaev
9eca6ba9d5 Move pass pattern to ov (#7255)
* Moved ngraph::Node to ov namespace

* Fixed code style

* Fixed VPU

* Fixed GNA

* Fixed tests

* Added aliases for backward compatibility

* Fix clDNN

* Try to fix build

* Fixed comment

* Renamed RTTI macros

* Add new headers

* Fixed ngraph build

* Fixed unit tests

* Try to fix Serialize
2021-09-02 10:03:04 +03:00
Tomasz Dołbniak
28075fb7fc MaxPool 8 reference implementation (#7115) 2021-09-01 19:14:45 +03:00
Gabriele Galiero Casay
70e6565619 Refactor backend test suite of Reduction ops into template plugin tests (#6930)
* Refactor visitor test of reduce operations to include operation name

* Add template plugin tests for reduction operations

* Remove backent unit tests of reduction operations

* Use Tensor utility to instantiate tests

* Use std::for_each instead of raw for loop to produce test case instances

* Cover remaining backend tests in manifest by SLTs cases

* Fix regex to skip cpu test failing in centos build with precision u64
2021-09-01 11:22:46 +03:00
Sergey Lyalin
bfae017cf2 Dynamic plugin reshape blob (#6969)
* Added nGraph as a public dependency

* Fixed Windows warning

* Fixed CMake

* Fixed constant op

* Fixed typo

* Added reshape to PartialShape to CNNNetwork

* Added SetShape to InferRequest

* Enable support of DynamicShape in IE Data

* Add support of dynamic shapes to template plugin

* Fixed build

* Enable support dynamic rank

* Fixed test for dynamic rank

* Fixed some tests

* Fix preprocess tests

* Fixed SetBlob

* Fixed code style

* Add more tests

* Fixed accuracy tests

* Fixed documentation

* Added tests for custom operation

* Added new tests

* WIP: move setShape from infer request to Blob

* Returned isApplicable check back

* Removed obsolete tests for InferRequest::SetShape and add new test for Blob::setShape (a trivial one)

* Fixed artifacts

* Break code style

* Revert "Break code style"

This reverts commit 71ee638cd0.

* Added -j8 for fix_all

* Applied code style fixes

* Adde doxygen items

* Fixed style

* Applied codestyle patch

* Reverted unrelevant commit with template extension

* Fixed cmake file for shared func tests (pick from master)

* Revert all changes in template_extension

* Deleted some old stuff that commented and won't be used

* Fixed wrong exception throwing

* Code style fix

* Fixed preprocessing part

* Fixed incorrect blob reshape in GetBlob

* Deleted incorrect assert in GAPI that prevents passing some tests in Debug

* Fixed issues identified during review

* Removed SetShape, replace getLayoutByDims by getLayoutByRank and removed problematic modification from IE preprocessing

* Fixed comments

* Removed obsolete setShape

* [VPU] Fixed allocating dynamic blobs in myriad_infer_request

* Fixed comments

* Fixed CNNNgraphImpl and comments

Co-authored-by: Ilya Churaev <ilya.churaev@intel.com>
Co-authored-by: Polina <polina.brzezinskaya@intel.com>
2021-09-01 10:59:42 +03:00
Ilya Churaev
2b1637f28d Deprecate nGraph API to don't include it to public API (#7171)
* Deprecate stopwatch

* Deprecate some utils

* Deprecate versions

* Moved slice_plan from the top level

* Fixed build

* Deprecate more old structures

* Fixed linux build
2021-09-01 08:17:11 +03:00
Bartosz Lesniewski
4a9ac22787 Revise ScatterElementsUpdate Op (#7162)
* Use ngraph rtti macros

* Add visitor test

* Add SSLT

* Add hardcoded refs tests for ScatterElementsUpdate

* Add ScatterElementsUpdate to trusted ops list

* Add i16 case to backend tests

* Add typed testcase generation, check for all supported types

* Remove redundant parameters from generateScatterParams
2021-08-30 13:47:30 +03:00
Ilya Churaev
6cdd76f7d4 Moved ngraph::Node to ov namespace (#7240)
* Moved ngraph::Node to ov namespace

* Fixed code style

* Fixed VPU

* Fixed GNA

* Fixed tests

* Added aliases for backward compatibility

* Fix clDNN

* Try to fix build

* Fixed comment

* Renamed RTTI macros
2021-08-30 06:20:22 +03:00
Piotr Szmelczynski
81c8cd711b Revise logical not (#6942)
* update spec

* remove backend tests and create op_reference test

* add logicalNot to constants

* add NGRAPH CHECK for number of inputs and outputs

* create type_prop tests

* create visitor test

* add type_op and visitor tests to CMakeLists

* remove backend test from CMakeList

* update T to T_BOOL

* update outputs part in spec

* fix type in the spec

* fixed conflicts in CMakeList

* update ReferenceLogicalLayerTest to also work with unary logical operator

* update logical_not op_reference test to use ReferenceLogicalLayerTest

* fix style

* fix style

* resolve conflict

* resolve conflict

* remove typo

* fix style

* Update ReferenceLogicalLayerTest class tto take input as a vector

* Create makeLogical function that takes ParameterVector as parameter

* update op_reference logical tests to take input as a vector

* Replace elem_type with input.type

* update getTestCaseName method
2021-08-27 06:55:19 +03:00
Mateusz Bencer
0e521a1e22 Use ONNX Frontend instead of ONNX Reader (#7031)
* added get_name

* add support to supported_impl

* remove debug code

* review remarks

* changed name to onnx_experimental

* fixed test

* revert onnx_experimental name

* integrate reader and fe api

* add unit tests

* removed prototxt from model_validator

* reader refactor

* add supress

* Update inference-engine/src/readers/onnx_reader/ie_onnx_reader.cpp

Co-authored-by: Tomasz Dołbniak <tomasz.dolbniak@intel.com>

* fix segfaults

* removed onnx reader

* handle istringstream

* wstring support

* removed saving path

* styles applied

* changed name to onnx experimental

* Apply suggestions from code review

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* skip onnx_experimental frontend in mo.py

* add support of wstring paths

* fix wstring ctor of InputModelONNX

* added NGRAPH_SUPPRESS

* make one instance of manager

* change onnx_experimental name to onnx

* creation frontend manager refactor

Co-authored-by: Tomasz Dołbniak <tomasz.dolbniak@intel.com>
Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>
2021-08-26 11:50:53 +03:00
Tomasz Jankowski
e1226cc814 [ONNX] Gather 8 (#7185) 2021-08-26 10:08:22 +02:00