Commit Graph
1284 Commits
Author SHA1 Message Date
Gleb Kazantaev a16cc81233 Remove VariantWrapper for simple attr classes (#7771)
* Remove VariantWrapper for simple attr classes

* Code style
2021-10-01 08:03:37 +03:00
Ilya Churaev faeaf045a9 Graph comparator to ngraph util (#7729)
* Moved FrameworkNode to nGraph

* Moved graph comparator to ngraph test util

* Fixed build

* Try to fix centos

* Fix export target

* Moved engine utils to separate library

* Removed ONNX util from common library

* Fixed build

* Fixed code style
2021-10-01 07:24:28 +03:00
Mikhail Nosov 6e05cead11 [OV20] Reference implementation for NV12toRGB and NV12toBGR operations (#7601)
* Reference implementation for NV12toRGB and NV12toBGR operations
Tests:
- ngraph: visitor + type_prop
- template plugin: reference implementation
- inference-engine: shared tests for plugins
- cpu plugin: compare with ref implementation tests

* Fix clang

* Serialization tests

* Fix clang-format

* Changed 'f32' to 'any supported floating-point type'
Added appropriate shape inference tests
Added error test for >2 inputs
Fixed failed CI tests

* Updates after rebase
+ Try to fix Ninja build

* Fix CI

* Support endianness + potential fix of win32 test fails

* Fix review comment

* Fix review comments

* Fix unit test build

* Fix unit test build #2

* Possible build fix 3

* Simplified reference tests
Observed issue with shuffling Y pixels on little-endian systems, added tests
2021-09-30 16:34:46 +03:00
Ilya Lavrenov 757db35528 Dynamism in new API (#7742)
* Fixed precisions conversion in new API

* Added tests

* Fixed old IR cases

* Disable FP16

* Fixed regex for CentoOS

* Refactored tests to use new API

* Temp

* Fixed tests

* Moved smart reshape related sources to ngraph

* Added tests for invalid names

* Moved reshape to tensor_names

* clang-format

* Fixed CC build

* Removed IEConv, IEDeconv from primitives pririty
2021-09-30 15:04:24 +03:00
Michał Karzyński bd5b1bf99f Change the way Model Optimizer loads frontends (#7330)
* Adds two switches `use_new_frontend` and `use_legacy_frontend` to override defaults.
* Rename ONNX frontend from `onnx_experimental` to `onnx`
2021-09-30 12:17:36 +02:00
cecilia peng eee22b6253 Temporarily disable some paddle test case which sporadically fail during CI. (#7757)
Further investigation required. JIRA tracking.
2021-09-30 12:56:10 +03:00
Katarzyna Mitrus 0eeaf6b2e4 ROIAlign fix - Unify sample_value calculation between max/avg mode (#7710)
* Unify sample_value between max/avg mode

* Fix mkldnn roi_align impl

* Update test

* Revert missing assert
2021-09-30 11:50:06 +03:00
Mikhail Nosov 414c3dc133 [OV2.0] Preprocessing - resize (#7583)
* Initial version

* Added 'network' layout to preprocessing info
Moved existing resize tests to template plugin

* Fix clang

* More tests for 'resize' reference implementation + CPU tests + error cases
Coverage is 100%

* Align with new base_reference_test implementation

* Fixed comments

* Add assert to check that desired size is not out of bounds

* CPU: skip failed test
2021-09-30 11:41:25 +03:00
Gleb Kazantaev 62ed238f54 RT Info Attributes Serialization/Deserialization (#7603)
* Init rt info deserialization

* Add RT Info attributes deserialization

* Add RT Info attributes serialization

* Add Serialization and Deserialization tests

* Code style

* Fix AttributeAdapter place

* Extended rt_info section; added support for multi-field attrs; use version for attr serialization/deserialization

* Align attributes and their usage

* Fix LPT

* Add missing #pragma one

* Fix build

* Change version delimiter to have valid xml

* Fix PromitivesPriority

* Fix tests

* Fix test

* Fix IR Reader; remove empty rt_info

* More explicit attribute name and version representation
2021-09-29 19:17:03 +03:00
Ilya Churaev d2878e4012 Code style for test util (#7723)
* Enabled code style for ngraph test util

* remove some methods

* Fixed backends code style
2021-09-29 06:31:37 +03:00
Ilya Lavrenov 068d31511b Improved ov::Tensor behavior (#7683)
* Improved ov::Tensor behavior

* Fixed python test for setShape on preallocated

* Fixed clang-format
2021-09-28 12:50:51 +03:00
Ilya Lavrenov 476fbee00f Reference template plugin tests to OpenVINO 2.0 (#7685) 2021-09-28 10:46:03 +03:00
Alexander Zhogov 66bf54898c Partial revert of "Add set_argument/s methods to nGraph Python API (#7196)" (#7657)
* Try to revert "Add set_argument/s methods to nGraph Python API (#7196)"

* Add native "CPU FuncTests"

* continueOnError: true

* Fix indent

* Add m_inputs.clear();

* Add set_argument(i++, output);

* Revert calling set_argument(i++, output);
Revert Windows Azure to prod
2021-09-27 19:51:28 +03:00
Vladimir Gavrilov 1d3df63d64 Implement reference nGraph implementation for operation ExperimentalDetectronROIFeatureExtractor (#6484)
* Written reference implementation of the operation ExperimentalDetectronROIFeatureExtractor.

* Small fixes.

* Started to write tests for evaluation of the operation ExperimentalDetectronROIfeatureExtractor.

* Written test for evaluation of the nGraph operation ExperimentalDetectronROIFeatureExtractor.

* Some changes.

* Added debug prints to evaluates.map.

* Added more debug prints.

* Added another debug prints.

* Added more debug prints.

* Added more debug prints.

* Added more debug prints.

* Inserted additional static_casts.

* Added more static_casts.

* Commented some debug prints.

* Some reversion.

* Deleted some debug prints.

* Deleted some debug prints.

* Deleted more debug prints.

* Added some casts and debug prints.

* Some changes.

* Small changes.

* Some changes.

* Added png files.

* Small changes.

* Code style fixes.

* Code style fixes.

* Rewritten some auxiliary functions.

* Corrected the body of the function experimental_detectron_roi_feature_extractor().

* Some code style fixes.

* Code style fixes.

* Small code style fixes.

* Commented one debug print.

* Small changes.

* Added some debug print.

* Small changes.

* Added more debug prints.

* Small fixes.

* Added more debug prints.

* Commented some code.

* Indexing operation [] was replaced by .at() method in the function pre_calc_for_bilinear_interpolate().

* Deleted unneeded variables w1, w2, w3, w4.

* Deleted variable xx.

* Added GCC pragma before the function pre_calc_for_bilinear_interpolate().

* Fixes in macros.

* Fixed pragma before the function pre_calc_for_bilinear_interpolate().

* Deleted some debug prints.

* Deleted more debug prints and fixed some code style issues.

* Deleted redundant assert.

* Deleted redundant assert in the function split_points().

* Started to move tests for nGraph reference implementation of ExperimentalDetectronROIFeatureExtractor to template plugin.

* Enabled test INTERPRETER.onnx_model_experimental_detectron_roi_feature_extractor.

* Deleted backend tests for the reference nGraph implementation of the operation ExperimentalDetectronROIFeatureExtractor.

* Deleted commented code.

* Fixed typo.

* Some fixes.

* Some fixes.

* Some fixes.

* Some fixes.

* Some fixes.

* Renamed the function that calculates ROIAlign.

* Deleted redundant usings.

* Now input shapes are parameters of test.

* Small fix.

* Now element type is also test parameter.

* Deleted some commented code.

* Added test for float16 case.

* Small fix.

* Added test for bfloat16 case.

* Deleted redundant parameters of tests.

* Deleted commented code.

* Deleted redundant structure.

* Small fix.

* Some reverting.
2021-09-27 12:49:18 +03:00
Ilya Lavrenovandapankratovantonp e87cc3fa9e Tensor API in ngraph (#7632)
* Added OpenVINO Tensor API

* Tensor API improvements

* Moved Tensor to ngraph

* Moved Tensor tests

* Fixed docs and code style

* Trying to fix Windows

* Fixed clang-format

* Moved Tensor to runtime namespace

* Fixed compilation

* Fixed clang-format

* Fixed tests in debug

Co-authored-by: apankratovantonp <anton.pankratov@intel.com>
2021-09-27 09:57:26 +03:00
Wilson Seok 8262aed30c Migrate ngraph backend test of arithmetic2 operations (#7500)
* Remove fp16 of Convert layer test from skip_tests.config.cpp as it works now

* update repo

* add sin asin template plugin reference test

* add cos template plugin reference test and remove asin/sin/cos ngraph backend test

* update CMakeList.txt

* add template plugin reference test for asinh, cosh, sinh, tanh

* remove ngraph backend test for asinh, cosh, sinh, tanh

* update CMakeList.txt

* add ngraph type prop test for tanh

* add ngraph visitor api test for asin, sin

* add atanh type in activation SLT

* remove boolean from sin/cos/tan/asin/sinh/cosh evaluate
2021-09-27 05:23:52 +03:00
Evgenya Stepyreva ef028a567e Convolution: fast shape inference (#7523)
* Convolution: fast shape inference

* StaticShape and StaticDimension + static shape infer time test in comparison to Convolution

* Review comments
2021-09-27 00:14:50 +03:00
Mikhail Nosov 4a49fb6e59 Fix potential UNITY build failures (ENABLE_FASTER_BUILD) (#7647)
When ENABLE_FASTER_BUILD is ON, source files are combined to batch for faster compilation.
However, when one source file uses "using namespace ngraph", and another has "using namespace ov" - then conflicts may occur depending on how sources were combined

This fix removes usage of "using namespace ov" from ngraph code to avoid such potential issues
2021-09-25 00:47:28 +03:00
Vladislav Volkov 002e68b535 Fix of deprecated function usage in ngraph::OpSet (#7637) 2021-09-24 10:56:05 +03:00
Ilya Churaev d7570e7aad Fixed KW (#7635) 2021-09-24 10:44:16 +03:00
Bartek Szmelczynski f038fcf2bb ScatterUpdate ng op shell revision (#7375)
* add visitors, type_prop tests, update ngrap op class

* update NGRPH_RTTI for scatter_update

* add proper formatting for error message

* update opset
2021-09-24 10:31:45 +03:00
Wilson Seok b3050c268a Migrate acos operation from ngraph backend test to template plugin reference test (#7461)
* Remove fp16 of Convert layer test from skip_tests.config.cpp as it works now

* update repo

* add acos in template plugin reference test

* Create visitor API test for target operation Acos-1

* remove acos backend test

* remove acos backend test

* add test casses of int ata type

* remove boolean from acos evaluate
2021-09-24 07:19:45 +03:00
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
Ilya Churaev 846c9c91f2 Fixed leftovers from PR #7288 (#7623) 2021-09-24 04:19:49 +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
Ilya Lavrenov ab34701590 Added OpenVINO runtime macro (#7586)
* Fixed typo

* Moved ie::Parameter to new API

* New OpenVINO API macro

* Used OpenVINO Plugin API for some plugins

* Used OPENVINO_RUNTIME_API

* Revert "Moved ie::Parameter to new API"

This reverts commit fef5e3b487.

* Fixed code style and docs

* Fixed compilation
2021-09-23 10:39:20 +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
Ilya Lavrenov 377f46898c Moved ie::Parameter to new API (#7584)
* Fixed typo

* Moved ie::Parameter to new API

* Fixed compilation for Android
2021-09-22 10:38:09 +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
Gleb Kazantaev 07d9b51121 Replace IR Reader With IR Frontend (#7249)
* Replace IR Reader With IR Frontend
2021-09-20 23:17:22 +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
Ilya Churaev 850c526e3b Moved graph validation utils to ov (#7529) 2021-09-20 10:40:14 +03:00
Nikolay Shchegolev 168d8b9e84 [General] Statically detected issues. (#7432) 2021-09-20 09:28:39 +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
Tomasz Jankowski bd89f78661 [ONNX FE] Enable Place classes r-value optimization (#7485) 2021-09-15 12:42:14 +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
Anastasia Popova 0d76993429 Fixed issue with memcpy(). (#7416)
* Fixed Klocwork issue with memcpy().

* Code style.
2021-09-15 07:51:03 +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