Commit Graph
1243 Commits
Author SHA1 Message Date
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
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
Vladislav Volkov c06a51f2bf [CPU] Models cache for CPU plugin (#6403) 2021-09-14 16:02:47 +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
serhii-pavlovskyi-altran b11b1d44cb Use one set of parentheses around gcc attribute deprecated arg (#7413)
Double parentheses break some other compilers which pretend to be gcc.
Single set doesn't seem to break anything.
2021-09-13 13:56:43 +03:00
Luo Cheng 11c42885be StridedSlice beg/end_mask should be a non empty list (#7396) 2021-09-13 11:22:02 +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
Ilya Lavrenov 13321e4ab6 Trying to re-use OpenVINOConfig.cmake (#7467)
* Trying to re-use OpenVINOConfig.cmake

* Add ngraph
2021-09-13 07:12:07 +03:00
Mateusz Bencer 3ea74bd8f8 Add PlaceOpONNX and some missing Place's methods (#7269) 2021-09-10 16:20:41 +03:00
Ilya Lavrenov a952540edf Openvino cmake config (#7419)
* Added OpenVINOConfig.cmake

* OpenVINOConfig.cmake part 2

* Trying to fix cmake generation

* Fixes

* Export frontends as well

* Fixed condition

* Added OpenVINO cmake package usage: docs, C samples

* Use more OpenVINO config

* Install OpenVINOConfig.cmake

* Trying to fix private plugins

* Trying to fix .tox

* Trying to fix ARM

* Fixed samples build

* Explicit ngraph duplicated targets

* Fixed fuzzing tests build

* Added IR frontend installation

* Removed install directory for IE reader

* Removed IR frontend from export list

* Reverted ngraph_DIR

* Try to fix .tox

* Fixed ieFuncTests with ONNX extensions

* Attempt #2

* Trying to fix ngraph setup.py

* Fix

* Trying to fix ONNX ngraph .tox CI

* Trying to remove spaces

* Fixed ngraph_DIR -> OpenVINO_DIR

* Removed junk files

* Try to fix ngraph wheel

* Try to fix ie_wheel

* Try to fix ngraph wheel
2021-09-10 15:31:27 +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
Anastasia Kuporosova 36318ca2cc [Python API] move ngraph python api to the new location (#7364)
* [Python API] Move ngraph python api to the new destination

* fix building tests

* fix code-style checks

* building in azure

* fix building wheels

* apply fixes
2021-09-09 13:41:11 +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
Tomasz Dołbniak f5089912e4 MaxPool-8 python API (#7170) 2021-09-09 11:45:47 +02:00
Ivan Tikhonov 7bc6a8ea13 Fix clone_function method in case of Assign/ReadValue v3 (#7406) 2021-09-08 20:35:24 +03:00
f89b3d770b [IE PYTHON] dynamic shape api for python (#7282)
* 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

* add partial reshape for IENetwork

* Add getPartialShape

* Add setShape for Blob

* Add tests

* Add partial_shape property for CDataPtr

* Add partial_shape property for data

* Fix code style

* Fix code style

* Fix test

* Fix code style

* Fix code style

* Fix code style

* Add tests

* Add new lines

* Mark tests

* Fix tests

* call set_shape implicit  only for dynamic inputs

* skip tests on ARM

* remove ngraph dependence from ie_api.pyx

* expand only shape, not array in expand_dims_to_corresponding_layout

* Mark ngraph dependent tests

* remove skip inside test

* code refactoring

* add new line

* Add docstring

* Fix code style

Co-authored-by: Ilya Churaev <ilya.churaev@intel.com>
Co-authored-by: Lyalin, Sergey <sergey.lyalin@intel.com>
Co-authored-by: Polina <polina.brzezinskaya@intel.com>
2021-09-08 19:41:20 +03:00
Ilya Churaev 75808b0026 Hot fix: rename OV_CHECK to OPENVINO_ASSERT (#7429) 2021-09-08 18:32:10 +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
Ilya Churaevandy 9e68a673e4 Moved operations R-Z to ov namespace (#7365)
* Moved operations M-P to ov namespace

* Fixed code style

* Fixed build

* Fixed comments

* Moved operations R-Z to ov namespace

* Fixed build

* Fixed comments

Co-authored-by: y <ilya.lavrenov@intel.com>
2021-09-07 09:50:46 +03:00
Bartosz Lesniewski c568791d1e Deprecate passing nodes to op constructor (#7327)
* Add a warning

* Remove quotes

* Replace outputs with output(s)
2021-09-07 07:54:00 +03:00
cecilia peng 8eeee5e441 [FrontEnd][PaddlePaddle] fix fill_constant_batch_size_like when attri… (#7214)
* [FrontEnd][PaddlePaddle] fix fill_constant_batch_size_like when attribute str_value be empty.

This happens when export ppyolo with PaddleDetection release/2.2.

* code refactor.

* remove uncertain comments
2021-09-07 06:50:09 +03:00
Ilya Churaev f99bf64397 Moved operations M-P to ov namespace (#7354)
* Moved operations M-P to ov namespace

* Fixed code style

* Fixed build

* Fixed comments
2021-09-06 17:40:18 +03:00
Anastasia PopovaandIlya Churaev d82fed9527 RandomUniform reference implementation. (#7012)
* Added RandomUniform reference implementation.

* Corrected comments.

* Small correction.

* Code style correction.

* Added has_evaluate() method.

* Added comments, added names to consts.

* Small fix.

* Replaced arrays with vectors.

* Apply suggestions from code review

Co-authored-by: Ilya Churaev <ilyachur@gmail.com>

* Code refactoring.

* Corrected tests, code style.

* Added comment.

* Added comments.

* Temporarily added debug output.

* Temporarily added debug output.

* Removed debug output.

* Added comment.

* Added comment.

* Enabled state saving for RandomUniform.

* Code style.

* Used to template to convert types.

* Added comments.

Co-authored-by: Ilya Churaev <ilyachur@gmail.com>
2021-09-06 11:49:27 +03:00
e3aed9854b Moved operations G-L to ov namespace (#7344)
* 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

* Moved op utils to ov namespace

* Fixed ngraph library build

* Fixed unit-tests

* Changed src folder

* Fixed recurrent_sequence

* Changed low latency

* Fixed serialize

* Fixed ieFuncTests

* Try to fix windows

* Remove custom operator<< from tests

* Fixed build

* Moved operations from A to ov namespace

* Moved operations from B and C to ov namespace

* Moved operations D-F to ov namespace

* Update ngraph/core/src/op/embeddingbag_offsets_sum.cpp

Co-authored-by: Katarzyna Mitrus <katarzyna.mitrus@intel.com>

* Update ngraph/core/src/op/embeddingbag_packedsum.cpp

Co-authored-by: Katarzyna Mitrus <katarzyna.mitrus@intel.com>

* Fixed RTTI

* Moved operations G-L to ov namespace

* Fixed RTTI

Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
Co-authored-by: Katarzyna Mitrus <katarzyna.mitrus@intel.com>
2021-09-06 11:07:20 +03:00
35fef3deea Moved operations D-F to ov namespace (#7341)
* 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

* Moved op utils to ov namespace

* Fixed ngraph library build

* Fixed unit-tests

* Changed src folder

* Fixed recurrent_sequence

* Changed low latency

* Fixed serialize

* Fixed ieFuncTests

* Try to fix windows

* Remove custom operator<< from tests

* Fixed build

* Moved operations from A to ov namespace

* Moved operations from B and C to ov namespace

* Moved operations D-F to ov namespace

* Update ngraph/core/src/op/embeddingbag_offsets_sum.cpp

Co-authored-by: Katarzyna Mitrus <katarzyna.mitrus@intel.com>

* Update ngraph/core/src/op/embeddingbag_packedsum.cpp

Co-authored-by: Katarzyna Mitrus <katarzyna.mitrus@intel.com>

Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
Co-authored-by: Katarzyna Mitrus <katarzyna.mitrus@intel.com>
2021-09-06 08:15:28 +03:00
Tomasz Dołbniak b86984fb30 MaxPool-8 evaluate() (#7363) 2021-09-03 21:22:07 +03:00
Ilya Churaev f68f4236ec All operations from B and C symbols moved to ov namespace (#7338)
* 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

* Moved op utils to ov namespace

* Fixed ngraph library build

* Fixed unit-tests

* Changed src folder

* Fixed recurrent_sequence

* Changed low latency

* Fixed serialize

* Fixed ieFuncTests

* Try to fix windows

* Remove custom operator<< from tests

* Fixed build

* Moved operations from A to ov namespace

* Moved operations from B and C to ov namespace
2021-09-03 17:28:09 +03:00
Ilya Churaev 63cb989955 Fixed leftovers after PR 7336 (#7355) 2021-09-03 14:03:10 +03:00
Mikhail Nosov 1eca8a6e49 Combine all PDPD model generation scripts into one python command (#7349) 2021-09-03 11:27:14 +03:00
Ilya Churaev f33c03edd6 Move all a ops to ov (#7336)
* 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

* Moved op utils to ov namespace

* Fixed ngraph library build

* Fixed unit-tests

* Changed src folder

* Fixed recurrent_sequence

* Changed low latency

* Fixed serialize

* Fixed ieFuncTests

* Try to fix windows

* Remove custom operator<< from tests

* Fixed build

* Moved operations from A to ov namespace
2021-09-03 10:53:16 +03:00
Ilya Churaev b78f228fa5 Moved op utils to ov namespace (#7274)
* 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

* Moved op utils to ov namespace

* Fixed ngraph library build

* Fixed unit-tests

* Changed src folder

* Fixed recurrent_sequence

* Changed low latency

* Fixed serialize

* Fixed ieFuncTests

* Try to fix windows

* Remove custom operator<< from tests

* Fixed build
2021-09-03 00:58:26 +03:00
Tomasz Socha 90b2265640 [ONNX] QLinearConvolution (#7210) 2021-09-02 14:46:52 +02:00
Ilya Churaev 72c34cebd0 Moved NGRAPH_CHECK to OV namespace (#7251) 2021-09-02 10:04:45 +03:00