Commit Graph
122 Commits
Author SHA1 Message Date
Tomasz JankowskiandMichal Lukaszewski b9749a984d [Core] Add evaluate to CumSum core op (#14566)
* Add evaluate to CumSum core op

* Use new API

* Remove unneeded types

* Revert evaluate in template plugin

* Correct evaluete availability

* Improve code

* Add test

Co-authored-by: Michal Lukaszewski <michal.lukaszewski@intel.com>
2022-12-22 10:48:47 +00:00
Sofya Balandina f5a52dd732 [CONFORMANCE] Fix throws tests on KEY_MULTI_DEVICE_PRIORITIES (#14446)
* [CONFORMANCE] Fix throws tests on KEY_MULTI_DEVICE_PRIORITIES

* Update test name in skip configs
2022-12-12 23:39:42 +03:00
Aleksandr Voron d0f183780c Update evaluates_map.cpp (#14475) 2022-12-08 12:59:46 +00:00
Tomasz Dołbniak 6da95784c7 Unique-10 tests and improvements (#14315) 2022-12-06 19:09:30 +03:00
64391cdb3f Transformation component transition to OV namespace (phase 3) (#13653)
* Use openvino pass graph_rewrite

* Use openvino pass pattern matcher

* Remove ngraph opsets

* Remove ngraph.hpp

* Remove ngraph includes

* Remove ngraph includes

* Use transformations API

* Remove ngraph includes

* Remove ngraph rt_info

* Remove unused ngraph includes

* Replace ngraph:: scope with ov:: here and there

* Remove serialize proxy header

* Remove proxy include

* Bring back a file for vpu-plugin

* Fix after upstream merge

* Remove nested namespace conflict

Co-authored-by: Andrei Kochin <andrei.kochin@intel.com>
Co-authored-by: Ivan Tikhonov <ivan.tikhonov@intel.com>
Co-authored-by: Mateusz Tabaka <mateusz.tabaka@intel.com>
2022-12-01 12:34:58 +01:00
Katarzyna Mitrus 166f2e6513 [Unique-10] Reference implementation fixes (#14160)
* Add more tests for Unique op reference impl

* Use stable sort to preserve elements order

* Update tensor comparator and unify approach for sorted

* Slices comparator revert and test

* Fix slices_ascending_order comparator
2022-11-24 11:03:52 +01:00
Pavel Esir ad7fc2e846 fix out of bound indices of Gather reference (#14131)
* bugfix for out of bound indices of Gather

* updated comment
2022-11-23 18:27:44 +03:00
2a7dc5404b [Core/CC]Verify add_matcher scope for Conditinal Compilation. (#13148)
* My verification:
libopenvino.so original size: 10799560
After adding this patch, new size: 10684744

Reduce: (10799560 - 10684744)/1024.0 = 112.125K.

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* try to fix clang issue

* Merge xuejun/cc_test

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* Test

Signed-off-by: xuejun <Xuejun.Zhai@intel.com>

* TEST1

Signed-off-by: xuejun <Xuejun.Zhai@intel.com>

* TEST2

Signed-off-by: xuejun <Xuejun.Zhai@intel.com>

* Complete Add_matcher wraper.

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* register_pass rebase

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* fix clang issue.

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* fix some replace error.

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* 1: Rename ADD_MATCHER_SCOPE_WITH_OBJ -> ADD_MATCHER_SCOPE;
2: Remove debug info;
3: Fix bug: REGISTER_PASS_WITH_FALSE_

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* Add ADD_MATCHER_SCOPE_WITHOUT_NSPACE macro

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* fix macro define issue.

* Add register_pass for cnn_network_ngraph_impl.cpp

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* Try to fix vpux plugin fail issue.

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* Fix clang issue

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* Merge macro "REGISTER_PASS_MODEL_SCOPE" and "REGISTER_PASS_FUNCTION_SCOPE" to "REGISTER_PASS_SCOPE"

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* Rename "REGISTER_PASS_SCOPE_WITH_FALSE" to "REGISTER_DISABLED_PASS_SCOPE_WITH"

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* Rename ADD_MATCHER_SCOPE_WITHOUT_OBJ to ADD_MATCHER_SCOPE_FOR_THIS
ADD_MATCHER_SCOPE_WITHOUT_NSPACE to ADD_MATCHER_SCOPE_FOR_THIS_WITHOUT_NSPACE

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* In order to implement CC, I have to move "StridesOptimization()" constructor to cpp file.

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* Remove "SCOPE" in macro.

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* Recover changes to fix clang issue.

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* Remove "REGISTER_PASS_MODEL_IF"

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* 1: Remove "ADD_MATCHER_FOR_THIS_WITHOUT_NSPACE";
2: Remove param "nspace" in Macro, replace with "using namespace " in local.

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* fix missing update.

* For MACRO REGISTER_PASS:
1: Only keep a external macro define;
2: Judge 3 possibilities, if one of them is true, it will be disable;

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* Optimize ADD_MATCHER_FOR_THIS.
-#    define ADD_MATCHER_FOR_THIS(region, ...)        add_matcher<region>(__VA_ARGS__);
+#    define ADD_MATCHER_FOR_THIS(region, ...)        ADD_MATCHER(this, region, __VA_ARGS__)

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* Update src/common/conditional_compilation/include/openvino/cc/pass/itt.hpp

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

* Update src/common/conditional_compilation/include/openvino/cc/pass/itt.hpp

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

* Update src/common/conditional_compilation/include/openvino/cc/pass/itt.hpp

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

* Update src/common/conditional_compilation/include/openvino/cc/pass/itt.hpp

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

* clang format

* Update OR defiation in MACRO, increasing code scalability.

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* Fix window compiles error.

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>
Signed-off-by: xuejun <Xuejun.Zhai@intel.com>
Co-authored-by: xuejun <Xuejun.Zhai@intel.com>
Co-authored-by: Ilya Churaev <ilyachur@gmail.com>
2022-11-20 19:02:42 +03:00
Irina Efode e075785486 [API CONFORMANCE] Remove skips for ov_plugin (#13749)
* ov_plugin

* fix graphs for cache

* fix build

* CPU + Template

* GNA

* Fix test

* sjkips

* sk

* extrs

* Update skip_tests_config.cpp

* try

* try
2022-11-18 14:46:32 +04:00
Tomasz DołbniakandTomasz Jankowski 5ff0f5d84c Unique-10 reference implementation (#13945)
* Basic Unique impl

* Shape inference tests

* More type prop tests

* Dynamic input tests

* Visitor tests

* Code formatting

* Minor corrections

* Modern c++ trick to make MSVC happy

* Refactor

* Code review

* More tests with dynamic shapes

* Op check test for Unique

* Well, a whitespace

* Different way of out shape calculation

* Spec

* Axis values constraint in the docs

* Zero-dim handling

* opset10_dump test adjustment

* 0D implementation and some test infra adjustments

* More coverage for scalar inputs

* type dependent test case generators

* A working version for 1D with all outputs

* Tensor shape calculation helper

* 1D handling with sorted mode included

* Handling of no-axis cases

* Some tests for no-axis case

* Unique's evaluate method

* A working fallback for the CPU plugin

* evaluate() removal

* Corrected shape inference

* More type prop fixes

* Unified axis extraction helpers

* Cleanup and preparation for slices processing

* Slice descriptor struct

* Static shapes generation with axis

* N-D solution with axis handling

* Slices comparison impl

* Fix Windows compilation errors

* Apply defaulting principles

Co-authored-by: Tomasz Jankowski <tomasz1.jankowski@intel.com>
2022-11-18 10:12:09 +01:00
River Li 0e76224199 [Windows] solve warning C4267 and C4244 issue for template plugin test cases (#13736)
* [Windows] solve warning C4267 and C4244 issue for template plugin

* Solve or WA C4267 and C4244 caused by system header files(numeric and utility)
2022-11-16 07:46:46 +04:00
Tomasz Jankowski c5eb25d3ea Transformation component transition to OV namespace (phase 2) (#13557) 2022-11-15 04:40:48 +03:00
Mateusz Mikolajczyk 1c03be58ff [CORE] IsFinite, IsInf, IsNan reference implementation (#13621)
* Add reference implementation for Is ops

* FIx test

* Fix typo

* Remove deprecated

* Fix issues with API switch

* Force cast to float for float16/bfloat16 in ref

* Fix style

* Remove BWDCMP_RTTI

* Remove TensorVector helper check

* Remove evaluate functions

* Disable faling tests due to missing eval
2022-11-09 19:17:26 +03:00
Nikolay Shchegolev b6ec6d4ec0 [CPU] GridSample operation implementation. (#12910) 2022-11-08 14:53:33 +03:00
Ilya Churaev 2a344b66cb Update to the latest cmake for Windows (#13604)
* Update to the latest cmake for Windows

* Skip new warnings

* Added compiler flags for old cmake

* Disabled some warnings

* Suppress new warnings

* Fixed some errors

* Disable some warning for lpt

* Fix some warnings

* Disable new warnings

* Fix some warnings

* Disabled Was error for arm

* Fixed some errors

* Fixed some new warnings

* Fixed auto plugin

* Fixed Windows warning

* Fixed Windows

* Disable some warnings

* Some changes

* Small test fixes

* Fixed python build

* Added skip warnings for legacy python API
2022-10-25 18:11:46 +04:00
Ilya Churaev 85d78a3ef0 Build code snippets together with doc (#13541)
* Build code snippets together with doc

* Added separate step for code snippets

* Try to enable CI step

* Disabe myriad

* Try to fix Windows

* Detect number of cores

* Reduced build time of code snippets
2022-10-21 06:29:19 +03:00
Ilya Lavrenov 2e336e4bb8 Fixes for brew support on OSX (#13476)
* Fixes for brew support on OSX

* Added new policy

* added quotes

* Used OpenVINODeveloperPackage

* Extra fixes

* Use standard verbose variable

* Fixed pkg-config generation
2022-10-15 00:15:03 +03:00
Tomasz Jankowski b424ee2568 [Core] Move op_eval tests into Template plugin (#13001)
* Remove redundant tests

* Remove MatMul op_eval tests

* Remove RoiAlign, RoiPooling op_eval tests

* Move VariadicSplit op_eval tests to TemplatePlugin

* Move Transpose op_eval tests to TemplatePlugin

* Move Interpolate op_eval tests to Template Plugin

* Redo Interpolate_v4 tests

* Adopt to new exception messages
2022-10-14 07:45:28 +03:00
Irina Efode 78d6f68de4 Infra for device suffix (#13339)
* [IE TESTS] Using Gflags instead of parsing command-line options

* Apply infra for suffix

* remove extra

* Squashed commit of the following:

commit c249f5d581
Author: iefode <irina.efode@intel.com>
Date:   Thu Oct 6 11:56:11 2022 +0400

    Fix default values for command-line argument

commit b2dbb4418c
Author: iefode <irina.efode@intel.com>
Date:   Wed Oct 5 18:09:22 2022 +0400

    rename gflags config

* Fix errors

* Remove gflag using

* Remove gflags

* Update main.cpp

* Update main.cpp
2022-10-13 15:45:03 +04:00
Nadezhda Ageeva f45c846be0 [GPU] mark constants as supported on QN. QN helper. (#12990)
* [GPU] mark constants as supported on QN. Fetch common part for CPU and GPU.

* Code style

* Apply review comments. Fix TEMPLATE plugin FP16, use common QN helper.

* Apply review comments: CNNNetwork -> Model inside GetSupportedNodes

* Apply review comments: move functino from plugin interface
2022-10-06 12:54:25 +03:00
Ilya Churaev 8a9c19e3eb Warning as error for Windows (#13291)
* parent 6e7016ccda
author Ilya Churaev <ilya.churaev@intel.com> 1664281499 +0400
committer Ilya Churaev <ilya.churaev@intel.com> 1664510018 +0400

Fixed warnings on local machine

* Added CMAKE_COMPILE_WARNING_AS_ERROR usage

* Fixed style

* Fixed merge conflicts

* Fixed typo

* Fixed myriad build for macOS

* Fixed warning

* Fixed tests

* Disabled incorrect test

* Try to fix linux tests

* Revert "Try to fix linux tests"

This reverts commit 29224c93ff.

* Fixed tests

* Revert logic with incorrect cast

* Fixed log softmax

* Disable warning as error for cuda

* Try to fix inference_engine_s

* Fixed cmake

* Revert "Fixed cmake"

This reverts commit 87e9e4e674.

* Revert "Try to fix inference_engine_s"

This reverts commit a1adca8b05.

* WA for static symbols in inference_engine_s test library

* Fixed code style

* Fixed static definition for master

* Revert "Fixed static definition for master"

This reverts commit 20d00d215a.

* Revert "Fixed code style"

This reverts commit 0eb2362543.

* Revert "WA for static symbols in inference_engine_s test library"

This reverts commit 75ef86a79d.

* Fixed linker issue for Windows

* Disable WaE by default

* Disable warning as error in the developer package

* Try to fix dev package

* Try to fix Windows Jenkins

* Revert old behavior for tread_warn_as_err variable
2022-10-06 13:44:21 +04:00
Ilya Churaev 943f77d9ec Move template plugin to plugin folder (#13269)
* Moved template_plugin

* Move template extension

* Changed cmake configs

* Try to fix build

* Moved plugin to standalone folder and fixed build

* Try to fix doc

* Try to fix doc

* Update CMakeLists.txt

* Moved extensions to src/core
2022-10-03 15:47:20 +04:00