Commit Graph
100 Commits
Author SHA1 Message Date
Vitaliy UrusovskijandIlya Lavrenov e71707b7d6 Remove extra includes (#21699)
Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2023-12-18 13:20:54 +04:00
Vitaliy Urusovskij 193cc26658 snippets shared tests to API2.0 (#21631) 2023-12-15 09:56:23 +04:00
Vitaliy Urusovskij 4fde957689 Additional changes in src/ to API2.0 (#21601)
* `src/core/` to API2.0

* `src/plugins/auto/` to API2.0

* `src/plugins/hetero/` to API2.0

* ClangFormat

* Fix build
2023-12-14 14:13:18 +00:00
Vitaliy Urusovskij dcf9247bc8 Clean up of tests/ov_helpers leftovers (#21416)
* CLean up ov_helpers headers from ngraph/

* Move `ngraph/` includes from ov_helpers to tests

* Remove include of all opsets in builders.hpp

* Remove opsets includes from ov_helpers

* Fix GNA tests

* Delete comments

* ClangFormat

* Fix build

* Fix `-fpermissive`

* Fix build #2

* Fix `<` && `>` in includes

* Fix build #3

* Build fix
2023-12-13 14:45:19 +00:00
Vitaliy Urusovskij ef14b50d79 src/common/*transformations/ API1.0 clean up (#21574)
* `src/common/transformations/` API1.0 cleanup

* `src/common/low_precision_transformations/` API1.0 cleanup

* Fix comments

* Fix
2023-12-13 10:50:42 +04:00
Vitaliy Urusovskij 8ef3834fe9 ngraph leftovers in CPU shared single_layer and subgraph (#21499)
tests
2023-12-07 14:34:11 +04:00
Vitaliy UrusovskijandIlya Lavrenov e4c38e3afd Port tests/ to API2.0 (#21476)
* Port properties in time and stress tests to API2.0

* Port CC tests infer_tool.py to API2.0

* Update tests/conditional_compilation/tools/infer_tool.py

Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>

---------

Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2023-12-06 14:36:43 +04:00
Vitaliy Urusovskij 718b5a60bf Remove legacy API from tests/ov_helpers/ (#21254)
* Remove legacy API from `tests/ov_helpers/`

* Build fix

* `ngraph::Function`->`ov::Model`

* ClangFormat

* Remove extra `#include <ngraph/ngraph.hpp>`

* Clean up headers

* `NGRAPH_CHECK` -> `OPENVINO_ASSERT`

* Refactor includes

* Fix precommit
2023-11-30 12:40:52 +04:00
Vitaliy Urusovskij 6dd448d9cc Fix COPY_INSTEAD_OF_MOVE and AUTO_CAUSES_COPY (#21267)
* Fix `AUTO_CAUSES_COPY` for hetero compiled_model

* Fix `COPY_INSTEAD_OF_MOVE`

* Fix `AUTO_CAUSES_COPY` in template comp_model
2023-11-27 16:31:32 +04:00
Vitaliy Urusovskij bd7b6b3358 CPU func/beh tests to API 2.0 (#21236) 2023-11-22 22:51:29 +01:00
Vitaliy Urusovskij b66488e4ff Ngraph to ov (#21185) 2023-11-22 09:44:17 +04:00
Vitaliy Urusovskij 242336c97f Refactor functional/plugin/conformance/ and functional/plugin/shared/ (#21221)
* Refactor conformance/ folder

* Refactor functional/plugin/shared/
2023-11-21 17:34:08 +00:00
Vitaliy Urusovskij bbb06c4f76 Remove InferenceEngine && ngraph from tools/ (#21215) 2023-11-21 21:14:53 +04:00
Vitaliy Urusovskij b700040e29 Remove legacy API from ov_cpu_unit_tests (#21184)
* Remove `InferenceEngine` usage

* Remove use of `ie_ngraph_utils.hpp`

* Rename `ng_transormations` to `transformations`

* Remove `ngraph` usage

* Misprint
2023-11-20 17:49:56 +04:00
Vitaliy Urusovskij 1a5b0b70f9 Remove castOps2Nodes and convert2OutputVector (#21015) 2023-11-13 13:29:53 +04:00
Vitaliy Urusovskij bcb38796ce Ngraph helpers/builders cleaning (#20819)
* Delete `getNodeSharedPtr()`

* Remove `makeRoll` ng::builder

* Delete `makeSelect` ng::builder

* Delete `makeDepthToSpace` ng::builder

* Remove `CompareFunctions` and `getConstData` from ng::helpers

* Return `makeSelect` for compatibility with NPU

* Port `QuantizationGranularity`, `MemoryTransformation`

* Restore ng::helpers::QuantGranularity for BWD CMP
2023-11-09 10:51:00 +04:00
Vitaliy Urusovskij e3d7dffa83 Remove legacy API from FEs (except ONNX) (#20849)
* Remove `ngraph` from PT FE and FE tests utils

* Remove `ngraph` from Paddle FE

* Remove `InferenceEngine` from some ONNX FE test

* Port `generate_embedding.py` to API2.0

* CLangFormat

* Fix comments
2023-11-07 14:01:39 +01:00
Vitaliy Urusovskij 47cdbb9df5 Template plugin folder to API2.0 (#20862)
* Remove unused IE namespace from template plugin

* Remove unused `ngraph::HostTensor`

* Template `ConvolutionLayerTest` to API2.0

* Template `ReshapeLayerTest` to API2.0

* Template `SplitLayerTest` to API2.0

* Remove extra `InferenceEngine::PluginConfigParams`

* CLangFormat
2023-11-04 12:36:16 +04:00
Vitaliy Urusovskij 0955faef93 Remove use of convertOps2Nodes() & convert2OutVect() (#20837) 2023-11-03 11:00:33 +04:00
Vitaliy Urusovskij caa81a0b3c Remove use of legacy ng/runtime/shared_buffer.hpp (#20840) 2023-11-03 09:09:49 +04:00
Vitaliy Urusovskij 1b46c73b51 Remove commented code from Proposal layer test (#20781) 2023-10-31 11:42:44 +04:00
Vitaliy Urusovskij 991b9848fa PSROIPooling and Proposal layer tests to API2.0 (#20761)
* `PSROIPoolingLayerTest` to API2.0

* `ProposalLayerTest` to API2.0
2023-10-31 10:21:20 +04:00
Vitaliy Urusovskij d532d14540 Range, RDFT, RandormUniform, ReduceOps layer tests to API2.0 (#20692)
* `Range` to API2.0

* `RDFTLayerTest` to API2.0

* `RandomUniformLayerTest` to API2.0

* `ReduceOpsLayerTest` to API2.0
2023-10-26 11:07:23 +04:00
Vitaliy Urusovskij 04c766e9f1 ReverseSequence, RNNCell, Reverse to API2.0 (#20569)
* `ReverseSequence` to API2.0

* `RNNCell` to API2.0

* `Reverse` GPU test to API2.0

* Alignment fix
2023-10-25 09:37:36 +00:00
Vitaliy Urusovskij a71283ea94 RNNSequence, Result, Reshape, ReorgYolo, RegionYolo layer tests to API2.0 (#20644)
* `RNNSequenceTest` to API2.0

* `Result` to API2.0

* `Reshape` to API2.0

* `ReorgYolo` to API2.0

* `RegionYolo` to API2.0

* Alignment fixes

* Skip more `RNNSequenceTest` cases
2023-10-25 08:16:28 +02:00
Vitaliy Urusovskij e977a6ed9b Fix COPY_INSTEAD_OF_MOVE issue in Hetero (#20667) 2023-10-24 12:44:01 +00:00
Vitaliy Urusovskij 1daa4b9e5e Skip smoke_TestsROIPooling f16 test on ARM (#20552) 2023-10-24 09:09:37 +00:00
Vitaliy Urusovskij 8fff47caf9 ROIPooling, ROIAlign layer tests to API2.0 (#20086)
* `ROIPoolingLayerTest` to API2.0

* `ROIAlignLayerTest` to API2.0
2023-10-17 14:35:19 +00:00
Vitaliy UrusovskijandOleg Pipikin d617952b0a Pooling to API2.0 (#20495)
* Refactor PoolingLayerTest

* Additional refactoring

---------

Co-authored-by: Oleg Pipikin <oleg.pipikin@intel.com>
2023-10-16 19:40:24 +02:00
Vitaliy Urusovskij 78ef7e85c9 Return missed return pmc; (#20118) 2023-10-02 14:01:18 +04:00
Vitaliy Urusovskij c3565e3eac ScatterNDUpdate, ScatterElementsUpdate, Roll layer tests to API2.0 (#20048)
* `ScatterNDUpdateLayerTest` to API2.0

* `ScatterElementsUpdateLayerTest` to API2.0

* `RollLayerTest` to API2.0
2023-09-26 15:29:40 +02:00
Vitaliy Urusovskij a519770a87 ScatterUpdate, Select layer tests to API2.0 (#20010)
* `SelectLayerTest` to API2.0

* `ScatterUpdateLayerTest` to API2.0
2023-09-26 11:27:20 +00:00
Vitaliy Urusovskij b00fbd04c5 Fix StressMemLeaksTests with several models (#19986)
* Fix `StressMemLeaksTests` with several models

* Fix OMZ branch name in `get_testdata.py`
2023-09-21 15:59:18 +02:00
Vitaliy Urusovskij 318106d17d StridedSliceLayerTest and SqueezeUnsqueezeLayerTest to API2.0 (#19955)
* `StridedSliceLayerTest` to API2.0

* `SqueezeUnsqueezeLayerTest` to API2.0

* Fix CppLint
2023-09-21 15:08:51 +02:00
Vitaliy Urusovskij e5acf880ad Slice8, ShuffleChannels, ShapeOf layer tests to API2.0 (#19975)
* `Slice8LayerTest` to API2.0

* `ShuffleChannelsLayerTest` to API2.0

* `ShapeOfLayerTest` to API2.0
2023-09-21 14:36:26 +02:00
Vitaliy Urusovskij fc9dedfd6a Split, SpaceToDepth, SpaceToBatch layer tests to API2.0 (#19973)
* `SplitLayerTest` to API2.0

* `SpaceToDepthLayerTest` to API2.0

* `SpaceToBatchLayerTest` to API2.0
2023-09-21 12:29:30 +00:00
Vitaliy Urusovskij 2489356121 Skip failed TensorIteratorTest and CTCGreedy* CPU f16 tests on Mac (#19969)
* Skip failed `TensorIteratorTest` CPU f16 tests

* Skip `CTCGreedyDecoder` on MacOS CPU ARM f16
2023-09-21 15:44:37 +04:00
Vitaliy Urusovskij ca344aea54 TensorIteratorTest to API2.0 (#19869)
* `TensorIteratorTest` to API2.0

* Port `TensorIteratorBody` to ov::test::utils
2023-09-19 15:46:13 +04:00
Vitaliy Urusovskij 6b5a22a656 Add bert-base-ner in MemLeak tests (#19817)
* Add `bert-base-ner` in MemLeak tests

* Fix segfault caused by `fillTensorRandom()`
2023-09-19 11:27:23 +04:00
Vitaliy Urusovskij 53fef5f558 Fix incorrect use of ASSERT (#19838) 2023-09-14 13:34:14 +00:00
Vitaliy Urusovskij 972bb73298 TileLayerTest to API2.0 (#19770)
* `TileLayerTest` to API2.0

* Remove `ngraph::` use

* Fix cpplint
2023-09-13 12:10:02 +00:00
Vitaliy Urusovskij 7bb22b43b3 TopKLayerTest to API2.0 (#19738) 2023-09-12 12:02:01 +04:00
Vitaliy Urusovskij 847eb3f4f1 TransposeLayerTest to API2.0 (#19671) 2023-09-11 16:15:53 +04:00
Vitaliy Urusovskij 9f4e918ee2 Gracefully fail if test models weren't generated (#19705)
* Gracefully fail if test models weren't generated

* Add assert instead of return `nullptr`
2023-09-11 15:18:45 +04:00
Vitaliy Urusovskij fb59d0eb36 VariadicSplitLayerTest refactoring to API2.0 (#19648) 2023-09-11 14:55:36 +04:00
Vitaliy Urusovskij 81a02c5586 Fix stoi out_of_range issue (#19455)
* Fix `stoi` out_of_range issue

* Handle incorrect behavior and throw exception

* Remove use of `getVmSizeInKB()` in `TestsCommon()`
2023-08-31 04:19:13 +04:00
Vitaliy Urusovskij ef33c2b3fd Fix uninit members in default GroupNormalization() (#19244) 2023-08-18 12:16:55 +04:00
Vitaliy Urusovskij dea2310153 Add recreate_and_infer_in_thread memleak test (#19078)
* Add `recreate_and_infer_in_thread` memleak test

* Add custom threshold for memleak test

* Update tests/stress_tests/common/ie_pipelines/pipelines.cpp
2023-08-17 17:13:07 +04:00
Vitaliy Urusovskij 4e777b69c8 Advanced mmap test for IR FE (#18711)
* Advanced `mmap` test for IR FE

* Move memory functions to `CommonTestUtils`

* CppLint + ClangFormat

* Refactor IR FE `mmap` tests

1) Remove `compile_model` stage as not required, so also remove
"CPU" dependency
2) Run test in separate process to make RAM values more stable
3) Update RAM reference as "binsize / 2"

* Skip test on Apple platform

* Remove `getRssFileInKB()` as unused
2023-08-08 17:56:54 +04:00
Vitaliy Urusovskij 4be69bdd5f Fix get_directory() to return / on Linux (#18820) 2023-07-27 17:24:07 +04:00
Vitaliy Urusovskij f8f6d4a5b5 Note ONNX FE in mem_optimization_guide.md (#18777) 2023-07-27 10:42:35 +04:00
Vitaliy Urusovskij f470825faf Revert "Remove extra model from CompiledModelDesc" (#18612)
* Revert "Remove extra `model` from `CompiledModelDesc`"

This reverts commit fb07fd7b82.

* Prevent use of `get_rt_model` in Hetero `export`
2023-07-19 12:05:24 +04:00
Vitaliy Urusovskij ef56b53a3f Remove excess ov::Model clone in Hetero (#18576) 2023-07-17 12:27:33 +00:00
Vitaliy Urusovskij aeff5056f5 Hetero 2.0 leftovers (#18559)
* Enable `LoadedTensor.*HETERO` test

* Fix use of `ICompiledModel::outputs()`

* Remove extra `loaded_from_cache` argument

* Misprint

* Small refactoring

* Remove extra `model` from `CompiledModelDesc`
Use `get_runtime_model()` instead

* ClangFormat
2023-07-17 11:58:44 +04:00
Vitaliy Urusovskij 37d055e477 Enable -pie compile option for MacOS (#18568) 2023-07-14 21:06:04 +00:00
Vitaliy Urusovskij e1d99a8ff3 Suppress signal-unsafe call tsan issue (#18562) 2023-07-14 21:17:27 +04:00
Vitaliy Urusovskij 43ff356f1a Hetero 2.0 (#18429)
* Hetero 2.0: Implement `hetero::Plugin`

* Fix CMakeLists.txt

* Remove duplicated "itt.hpp"

* Remove extra API method

* Delete `HeteroPlugin::Engine`

* Intregrate `ov::hetero::Plugin` into `HeteroExeNet`

* Use `is_new_api()`

* Add `override` modificator

* Rename `GetDevicePlugins` to `get_device_properties`

* Small fixes

* Fix precommit

* Fix Import/Export

* Fix `import_model()`

* Remove extra lines

* TEMPORARY disable one test

* ClangFormat+Refactoring

* Build fix

* Update `hetero::Configuration` logic

* Update `hetero::Plugin::get_property()`

* Fix

* Changes after code review

* Remove extra comments

* Revert "TEMPORARY disable one test"

This reverts commit 13fa48d8102ec5146e79987835e6f7444e469f7a.

* Small fix

* Refactoring + Fixes

* Add `hetero::Plugin::device_supports_model_caching`

* Replace `device_supports_model_caching` with ICore impl

* Code review changes

* Rework `Configuration`

* Implement `hetero::CompiledModel`

* Fix caching_test

* ClangFormat

* Fix inputs/outputs mapping
After some fix in ICompiledModel, m_inputs != model->inputs,
so mapping was updated to be independent from m_inputs
(same for m_outputs)

* Fix types

* Update `get_runtime_model()`

* Remove `ngraph` and `IE_THROW`

* Implement Hetero Sync/Async Infer Requests

* A lot of changes

* Add `submodels_output_to_input` to import/export

* Implement `get_tensors()`/`set_tensors()`

* Fix `Configuration` ctor

* Skip `SetPreProcessTo` legacy tests for hetero

* Change `Output->Input` logic to `Input->PrevOutput`
because for one output may be several inputs
(map key collision)

* Update `CompiledModel` to use shared_ptr vs *

* Update `CompiledModel`  public/private members

* Names refactoring

* Optimize imports

* Fix properties for `query_model()` call

* Use static objects in `Configuration` methods

* `Configuration` refactoring

* Get `ov::supported_properties` from subdevices

* InferRequest +1 import and fwd declaration

* Update `InferRequest` prof_info, remove extra methods

* Remove `InferRequestDesc`

* Remove `InferRequest::cancel()`

* Update CMakeLists.txt

* Remove extra `catch` in `CompiledModel`

* Replace `InferenceEngine::details::contains()`

* ClangFormat

* Use `const auto&`

* Try to fix types

* Remove `friendly_name` for subgraphs connection

* Remove TODO comment

* Remove `CompiledModel::m_model` as unused

* Polish .hpp files

* Fix size_t serialization in `CompiledModel::export_model()`

* Minor changes

* Move `intersect*` IE utils to anonym namespace

* Use `const auto&`

* Update Hetero `get_profiling_info()`

* Minor changes

* Rename `deviceName` to `device_name`

* Add `hetero::VariableState` in order to hold HW so

* Port internal properties to `ov::internal`

* Add `CompiledModel::set_inputs_and_outputs()`

* Add `OPENVINO_SUPPRESS_DEPRECATED_*`

* Fix CompiledModel `ov::device::properties` issue

* Use `get_device_name()` instead of hardcoded name

* Make `get_profiling_info()` names bwd compatible

* Remove `include` folder

* Remove try/catch from CompiledModel

* Update error message

* `CompiledModel::set_property` throw not implemented
2023-07-13 23:26:04 +04:00
Vitaliy UrusovskijandKarol Blaszczak d99a5ab1ba Prepare "memory_optimization_guide.md" (#17022)
* Prepare "memory_optimizing_guide.md"

* Modify `memory_optimization_guide.md`

* Add memory guide into toctree

* Rephrase memory_optimization_guide.md

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

---------

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>
2023-05-11 14:23:36 +04:00
Vitaliy Urusovskij 0d4e9eb328 Remove funcTestUtils from ov_cond_compil_tests (#17409)
Because `ov_conditional_compilation_tests` is enabled via
`ENABLE_TESTS`, so with `ENABLE_FUNCTIONAL_TESTS=OFF`
build fails with "fatal error: openvino/itt.hpp:
No such file or directory" due `funcTestUtils` dependency
2023-05-09 12:08:20 +01:00
Vitaliy Urusovskij 02bfa7804b Add copyright (#17218) 2023-04-26 13:44:31 +04:00
Vitaliy Urusovskij 11a2b75161 Fix TSAN issue No2 in GNA plugin (#17185)
* Fix TSAN issue No2 in GNA plugin

* Misprint
2023-04-25 16:32:06 +04:00
Vitaliy Urusovskij 5533de5dd8 Fix TSAN issue in GNA plugin (#17163) 2023-04-25 10:33:06 +04:00
Vitaliy UrusovskijandIlya Lavrenov a611104b12 FQ tests leftovers (#17009)
* Try to return skipped test after FQ fix

* Copy FQ broadcast case from CPU to TEMPL tests

---------

Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2023-04-19 12:32:44 +01:00
Vitaliy Urusovskij 47f0d72f02 Fix broadcasting issue in FQ ref implementation (#16812) 2023-04-17 20:33:07 +04:00
Vitaliy Urusovskij 04a4971481 Small docs fixes (#16945) 2023-04-14 15:14:48 +04:00
Vitaliy Urusovskij 7442a17240 Add Core property to switch from mmap to read in IR Frontend (#16600)
* Add Core property to switch from `mmap` to `read`
in IR FrontEnd

* Add tests on `ov::enable_mmap` property

* Add `enable_mmap` in C & Py APIs

* ClangFormat
2023-04-05 18:22:11 +04:00
Vitaliy Urusovskij 016d36f032 Add mmap notes in dldt_depl_optimization_latency.md (#16682) 2023-04-03 12:10:12 +04:00
Vitaliy Urusovskij 40cc006bae Enable MapAllocator in IR Frontend (#12673)
* Enable MapAllocator in IR Frontend

* Fix `ov_infer_request_ppp` test

With `mmap()`ing of IR, .bin can't be deleted until unmapping.
And it shows that there was a leak in test

* Add comment to Win `CreateFile()` regarding
FILE_SHARE_DELETE

* Unmap .bin file before IR files deletion

Wait ov::Model deletion to trigger .bin file unmapping
before IR files deletion

* ClangFormat

* Add `use_map_allocator` switch in FE

In case of direct use of FE (e.g. via MO), `mmap()` is OFF.
But in case of use FE via Core, `mmap()` is ON.
2023-03-28 23:24:13 +04:00
Vitaliy Urusovskij 18763f66ac Detect loops in topological_sort (#15688) 2023-03-02 13:21:52 +04:00
Vitaliy Urusovskij 5e48941f53 Apply Apivalidator to extra TBB libs (#15938) 2023-02-28 15:34:14 +04:00
Vitaliy Urusovskij 8e5ec19d05 Add IE_BUILD_POSTFIX to FE_LIB_SUFFIX (#15461) 2023-02-02 17:29:27 +04:00
Vitaliy Urusovskij 29b15233c7 Remove OV_FRONTEND_PATH (#15364)
* Remove "OV_FRONTEND_PATH" from `FrontEndManager`

* Remove "OV_FRONTEND_PATH" from layer_tests

* Remove "OV_FRONTEND_PATH" from find_ie_version.py

* Remove "OV_FRONTEND_PATH" from .ci/

* Move `ov::get_plugin_path` to file_util.hpp (ov::util)

* Add `register_front_end(name, path)` FEM public API

* Enable frontend/ tests

* ClangFormat

* Remove OV_FRONTEND_PATH from FE shared utils

* Add `register_front_end()` to PythonAPI

* Update Py tests with registering of "mock_py" FE

* ClangFormat

* Leftovers

* Fix SegFault with `register_front_end(name, lib_path)`

* Add FE_LIB_PRE and FE_LIB_SUFFIX to `ov_core_unit_tests`

* Fix format

* Update `testFailRegisterFEByWrongPath`
2023-02-02 08:19:35 +04:00
Vitaliy Urusovskij b4cb4fe8c9 Remove setupTestEnv() from fe_shared_test_classes (#15392) 2023-01-31 12:41:47 +04:00
Vitaliy Urusovskij ea48786bc6 Fix "(un)register_plugin(s)" C and Py tests (#15291)
* Fix "(un)register_plugin(s)" tests

* Remove test skips on Debian after tests are fixed
2023-01-27 09:54:43 +04:00
Vitaliy Urusovskij ef8481d008 Apply snake_case to ov::Core API (#15313) 2023-01-27 00:47:04 +00:00
Vitaliy Urusovskij 59ad317ce4 Remove "IEUnitTests" from linux_debian.yml (#15318)
Since there is no GNA for that build, tests are not built,
so call of InferenceEngineUnitTests lead to failure
because file not found
2023-01-26 13:40:13 +00:00
Vitaliy Urusovskij 54ea2612ae [Core] Safe loading of default plugins (#15073)
* Safe loading of default plugins

1. In case of default plugins.xml all plugins is registered by
absolute paths
2. In case of user API user is able to specify abs or rel path
or plugin name to be found in ENV
3. Update `ov::util::get_absolute_file_path()` in order to prevent
checking file exists or can be accessed
4. Add tests + delete duplicated tests

* Add `OV_CORE_CALL_STATEMENT` to `Core()` ctor
to convert InferenceEngine::Exception to
ov::Exception

* Add `ie_plugins.hpp` dependency to `ov_infer_unit_tests`

* Update C and Py docstrings

* Comment fix

* Update LD_LIB_PATH in openvino-onnx/Dockerfile

* Skip `test_register_plugin*` for Debian job
2023-01-24 14:53:00 +04:00
Vitaliy Urusovskij d5f3bfa43e RGB->Gray C and Py API2.0 (#15050)
* Add RGB to GRAY to C API 2.0

* Add RGB to GRAY to Py API 2.0

* ClangFormat + PyFlake8
2023-01-19 10:51:32 +04:00
Vitaliy Urusovskij 32e74f339e RGB to Gray ConvertColor Preprocessor (#13855)
* Add RGB to Gray ConvertColor Preprocessor

* Revert some changes

* Additional updates

* Polish RGBToGray implementation

Move Conv computations to FP32 and add Round for INT cases

* Extend tests - add comparison with OpenCV

* ClangFormat

* Return commented code

* Make `pre_post_process` tests parametrized

* Add shape calculation for RGB ColorFormat. Make RGB->GRAY 4D only

* Update ov_core_unit_tests

* Update ov_template_func_tests

* Clang Formatting

* Fix python preprocess tests

* Fix warning: truncation from 'double' to 'float'
of RGB->GRAY weights

* Fix flake8 issues

* Fix `convert_color_asserts` test

* Treat GRAY as NHWC

* Resolve review issues with tests

* Fix Py preprocess tests after rebase

* Clang Format

* Add case if C < 0

* Add reference link to RGB coefficients

* Add doxygen documentation for ColorFormat enum
2023-01-13 13:50:30 +04:00
Vitaliy Urusovskij b4faeebc84 Align RegisterPluginsInRegistry() with RegisterPluginByName() (#15026)
* Align `RegisterPluginsInRegistry()` with `RegisterPluginByName()`

* Add gmock dependency to commonTestUtils

If use macros like OV_EXPECT_THROW, it requires target to be linked
with `gmock`. So add the dependency directly to commonTestUtils

* Add `ThrowOnRegisterPlugin(s)Twice` tests

* ClangFormat
2023-01-12 14:45:36 +04:00
Vitaliy Urusovskij c7a1468fb7 Add support of f64/i64 for tests/ (#15029) 2023-01-11 12:17:47 +04:00
Vitaliy UrusovskijandIlya Churaev b64c1ff20a Add support of I64 for tests fillBlobs() (#14704)
Co-authored-by: Ilya Churaev <ilya.churaev@intel.com>
2023-01-10 07:53:27 +00:00
Vitaliy Urusovskij c6bc4be399 TSan suppress libopenvino_gapi_preproc.so (#14239) 2022-11-30 19:53:38 +04:00
Vitaliy Urusovskij 0e9f2bb7d8 Revert loading of plugins strictly by absolute paths (#14333)
* Revert "Load plugin libraries safely (#14034)"

This reverts commit 97878dee34.

* Revert "Plugins absolute path loading leftovers (#14299)"

This reverts commit 9ba304de72.

* Revert "Add `loadSOSafelyThrowIfRelativePath` test (#14311)"

This reverts commit 3e9f185e5d.

* Revert "Filter out samples tests on GNA for Debian (#14195)"

This reverts commit 57e630bd8f.
2022-11-30 19:08:06 +04:00
Vitaliy Urusovskij 3e9f185e5d Add loadSOSafelyThrowIfRelativePath test (#14311) 2022-11-30 09:31:00 +04:00
Vitaliy UrusovskijandIlya Churaev 9ba304de72 Plugins absolute path loading leftovers (#14299)
* Update docstrings after prohibition of not absolute
paths for plugins

* Use only absolute internal paths to load plugins

After introduction of plugins loading via absolute path,
libraries are still tried to load by names if wasn't found.
So safe last place of search (most common)  in order to
get useful error message

Co-authored-by: Ilya Churaev <ilya.churaev@intel.com>
2022-11-30 06:41:58 +04:00
Vitaliy Urusovskij 57e630bd8f Filter out samples tests on GNA for Debian (#14195)
Since GNA isn't a part of Debian package, no need to run tests on it
2022-11-23 19:20:26 +04:00
Vitaliy Urusovskij 97878dee34 Load plugin libraries safely (#14034)
For security purposes load plugin libraries only by absolute path to prevent
search from environment variables, working directory etc.
2022-11-22 12:44:56 +04:00
Vitaliy Urusovskij e891d0fa8c CC OpSet: Apply changes after code review (#13264) 2022-09-29 19:35:32 +04:00
Vitaliy Urusovskij b2f486ff24 Apply CC to ov::OpSet (#13189)
* Apply CC to ov::OpSet

* Add CC tests for OpSet

* Apply clang-format
2022-09-28 15:11:03 +04:00
Vitaliy Urusovskij 6e816b607b Fix install of static TBB libs (#13012)
In case of "Downloaded TBB" after second call of `cmake` it treats TBB as custom instead of downloaded, and doesn't install static libs correct way
2022-09-13 11:21:47 +04:00
Vitaliy Urusovskij d261da4820 Replace get_os_name() with get_os_type() in get_lib_path() (#11300)
In case of ubuntu system `get_os_name()` returns "ubuntu",
but `get_os_type()` returns "Linux" which is expected by tests
2022-03-29 18:17:38 +03:00
Vitaliy Urusovskij 2dbd60c1ae Mark get_type_info_static() op class methods as hidden (#10691)
* Mark `get_type_info_static()` as hidden

Each plugin linked with openvino library contains `type_info_static` symbols. In case when one of the libraries is unloaded and app tries to get opset, it leads to segfault. So mark `get_type_info_static()` as hidden to use only one implementation exactly from openvino lib

* Fix "'visibility' attribute ignored" issue by moving `TestPass` out of test scope

* Fix clang format

* Small update of `If` op

* Revert "fix 79520 (#10449)" to correctly compare DiscreteTypeInfo via `==`

This reverts commit 29883a152a.
2022-03-15 14:59:13 +03:00
Vitaliy Urusovskij d4f77f1d3e Mute 'maybe-uninitialized' error for RELWITHDEBINFO in intel_gpu (#10682) 2022-02-28 12:30:21 +03:00
Vitaliy Urusovskij 76ade7a7d0 Update docstrings with information about static build (#10488) 2022-02-18 07:48:58 +03:00
Vitaliy Urusovskij c186069025 Fix several coverity issues (#10205)
* Update def value for GetParamAsBool() in legacy parseParams()

* Remove extra check from legacy convertFunctionToICNNNetwork()
2022-02-09 15:43:04 +03:00
Vitaliy Urusovskij 532a1da548 Fix "Error handling issue" (#10119)
* Fix coverity 'error handling issue' in ~CacheGuard()

* Fix coverity 'error handling issue' in reshape()
2022-02-09 11:04:02 +03:00
Vitaliy Urusovskij 89fe26e3db Copy RandomUniform m_state during clone_with_new_inputs() (#10031)
* Copy RandomUniform m_state during clone_with_new_inputs()

* Add `get_state()` for RandomUniform op

* Add copy.random_uniform test
2022-02-01 18:46:09 +03:00
Vitaliy Urusovskij 0282f11165 Fix control flow issue (#9865)
* Fix control flow issue

* Extend exception messages in TF PB parsing
2022-01-25 17:23:59 +03:00
Vitaliy Urusovskij 1ae0618dee Fix memleaks caused by SetupDiGetClassDevs() (#9746)
To prevent leaks, object should be cleaned up
by calling SetupDiDestroyDeviceInfoList()
Refer to https://docs.microsoft.com/en-us/windows/win32/api/setupapi/nf-setupapi-setupdigetclassdevsw#remarks
2022-01-19 23:54:59 +03:00