Commit Graph

275 Commits

Author SHA1 Message Date
Ilya Lavrenov
f080a0d9cf Added NCC style for frontends sources (#16200)
* Ability to provide several source dirs for ncc-style checks

* Fixed include headers; added NCC to TF common

* Fixed NCC for frontends

* Fixed NCC for frontends

* Extra fixes

* Fixest push --f

* Clang-format

* Apply comments

* Add an option to specify required clang-format version

* Update src/frontends/tensorflow/src/decoder_proto.cpp

* Update src/frontends/tensorflow/src/decoder_proto.cpp
2023-03-13 14:54:00 +00:00
Ilya Lavrenov
1874c072b2 switched public Azure Linux build to clang (#16198)
* switched public Azure Linux build to clang

* Fixed GNA compilation

* Suppressed warning in GNA tests

* switched public Azure Linux build to clang

* Fixed GNA compilation

* Suppressed warning in GNA tests

* More fixes

* Skip test on CPU
2023-03-11 11:01:27 +04:00
Ryszard Jezierski
1051226fc9 Updated GNA lib version to 1906 (#16122) 2023-03-09 14:58:46 +00:00
Szymon Irzabek
e79636bfbb [GNA] Add 3.6 and 4.0 targets (#15735) 2023-03-07 17:14:59 +01:00
Ilya Lavrenov
15e43e0cc2 Removed explicitl handling for cache_dir from GNA (#16134) 2023-03-07 13:42:56 +00:00
Xuejun Zhai
9b97235902 Xuejun/remove api in ov any (#15667)
* [Remove APIs] remove ov::any api  &

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

* [Remove APIs] remove ov::any api

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

* [Remove APIs] remove interfaces in ov::any  Base* operator->() & const Base* operator->()

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

* [Remove APIs] remove ov::any interfaces Base* get() & const Base* get()

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

* [Remove APIs] remove ov::any interfaces call(const Any& any) & dynamic_pointer_cast(const ::ov::Any& any) & static_pointer_cast(const ::ov::Any& any)

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

* [Remove APIs] fix code format issues in ov::any

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

* [Remove APIs] fix review issue

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

* [Remove APIs] clear code

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

* [Remove APIs] fix review issue

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

* [Remove APIs] fix compiler issue

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

* [Remove APIs] fix compiler issue

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

* [Remove APIs] fix compiler issue

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

* Fix variant error

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

---------

Signed-off-by: xuejun <Xuejun.Zhai@intel.com>
Signed-off-by: xuejun <xuejun.zhai@intel.com>
2023-03-06 10:24:08 +04:00
Ilya Lavrenov
e1fbb7d768 Fixes for multi-config generators (#16097) 2023-03-05 10:46:53 +04:00
guozhong wang
913f616964 Guozhong/improve auto infer request line coverage (#15511)
* find test case for MultiDeviceInferRequest::SetBlob

* improve line coverage of infer_request

* add test cases for queryState and exception test case for perf count

* fix querystate running fail

* add test case to memory_states.cpp

* rename name of test case

* add memory_states.cpp to CMakeLists.txt

* Use _LogTag to judge whether MULTI

* clang-format intel_gna/memory_states.cpp

* Modify the position of the macro ENABLE_INTEL_CPU in the test case

---------

Co-authored-by: Chen Peter <peter.chen@intel.com>
2023-02-28 12:51:37 +08:00
Ilya Lavrenov
c0ef9a862e Fix for apiValidator when more than 1 target needs to be checked (#15950) 2023-02-25 16:33:08 +04:00
Ilya Lavrenov
6d7b94b8cd Improved API validator logic (#15942) 2023-02-25 01:11:50 +04:00
Evgeny Kotov
b8de9beeac [GNA] fix Coverity warning (#15823)
* fix

* fix

* fix FindFirstConsumer
2023-02-23 16:00:44 +00:00
Marcin Kacprzak
c8643a9a30 [GNA] incorrect diag insertion (#14858)
* [GNA] Create ngraph implementation for relu_torch_pot model for further tests. Create legacy pass fusing FC-Eltwise-Const layers pattern into single FC layer with biases

* [GNA] Fix review comments, applied proper code style to changed code
2023-02-22 10:22:55 +00:00
Wang, Yang
7f3ea9a59c Conversion fail for ov::hint::performance_mode with UNDEFINED value (#15629)
* Update ov::hint::performance_hint UNDEFINED value from empty string to "UNDEFINED".

* Update benchmark Python version.

* Update.

* Update.

* Update.

* Update the description about hint setting within benchmark APP README and help message.
2023-02-22 13:01:18 +04:00
Haiqi Pan
1b147c3560 remove no-sign (#15817) 2023-02-20 20:34:23 +04:00
Ilya Lavrenov
ed5fa69b41 Fixed compilation on CI (#15787) 2023-02-17 22:28:48 +04:00
Evgeny Kotov
04f300e187 Gather Sinking for Unary operations (#15289)
* initial

* fix year

* CanGatherPropagateForward review fix

* HasSameOutputGatherNodes fix code review

* fix namespaces code review

* fix ReverseGatherIndexes code review

* clang fixes

* clang fixes

* remove unneeded function

* move utils to utils dir + change namespace

* clang fixes

* windows build fixes

* resotore attr file

* resotore attr file

* code review fix
2023-02-17 18:36:22 +01:00
Xuejun Zhai
91df0a8aa9 [API remove] remove variantImpl & variantwrapper related class/interfaces (#15580)
* [API remove] remove variantImpl & variantwrapper related class/interfaces

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

* [Remove APIs] fix code format issue

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

* [Remove api] fix python compiler issue caused by deprecated varient

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

* [Remove APIs] fix code format issue

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

---------

Signed-off-by: xuejun <xuejun.zhai@intel.com>
Signed-off-by: xuejun <Xuejun.Zhai@intel.com>
2023-02-17 16:31:26 +04:00
Ryszard Jezierski
56f45acebb Removed unused IRs from deprecated tests (#15706) 2023-02-16 10:27:41 +00:00
Nadezhda Ageeva
4e5f79b4ea [GNA]: QueryNetwork support (#13639)
Review comments

Refactor is_op_supported and apply review comments

Fix split checks

Remove split checks

Adjust 2dconv check

Rebase fixes, refactoring, applying comments
2023-02-14 12:17:07 +01:00
Szymon Irzabek
1c20005b2f [GNA] Refactor target configuration (#15407) 2023-02-13 09:42:30 +00:00
Ilya Lavrenov
1f3e469c5e Added -Wall for Clang and GCC (#15513)
* Added -Wall for Clang and GCC

* Fixes

* Don't use /J

* Fixed warnings

* Fixed warnings

* More fixes

* Fixed for MSVC

* Fixed more warnings on Windows

* Suppressed some warnings in template plugin

* Update src/tests/functional/plugin/shared/include/behavior/plugin/caching_tests.hpp

* Added suppression for PT FE

* Suppressed warnings in TF FE

* Suppressed warnings on Core unit tests

* Suppress warnings in python

* Suppressed Windows warning for 3rd party modules

* Suppresed one more warning
2023-02-08 15:01:00 +04:00
Wang, Yang
3bfd07d535 [AUTO plugin] MULTI_DEVICE_PRIORITIES doesn't return device list by priority order from high to low (#14754)
* 1. Correct the device list by priority order from high to low.
2. Remove GNA, CUDA, HPU, HDDL, NVIDIA from device list supported by AUTO/MULTI.

Signed-off-by: Wang, Yang <yang4.wang@intel.com>

* Filter out supported device when not specify the candidate device for AUTO plugin.

* Add Debug MSG

* Update.

* Update AUTO mock test cases.

* Update.

* Update.

* Update code style.

---------

Signed-off-by: Wang, Yang <yang4.wang@intel.com>
Co-authored-by: Chen Peter <peter.chen@intel.com>
2023-02-06 10:09:54 +08:00
Marcin Kusmierski
691ccad997 [GNA] Apply Style formatter (#15374)
* [GNA] Enable clang-format

* [GNA] apply fix for formatting

* [GNA] fixes to make code compilable after reformatting
2023-02-01 12:40:02 +01:00
Marcin Kusmierski
3ccef5bb88 [GNA] Fix issue with Parameter followed by Broadcast/Tile layer (#14217)
* [GNA] Fix issue with Parameter followed by Broadcast/Tile layer

* added InsertCopyBeforeLayerToBeEliminated transofrmation: handling issue with
      Broadcast and Tile layer in case they are eliminated from network,
* added tests for verifying fix

* [GNA] Fix review comment. Remove unnecessery loop and varialble
2023-01-26 16:40:20 +03:00
Mikhail Ryzhov
623de0fdb4 [GNA] Excluded EXACT mode from the test (#15239)
* Excluded EXACT mode from the test

* Update src/plugins/intel_gna/tests/functional/shared_tests_instances/behavior/ov_infer_request/inference_chaining.cpp
2023-01-25 14:58:46 +01:00
Ilya Lavrenov
0970bc8fcf Moved legacy library and deprecated tests to GNA (#15244) 2023-01-25 11:36:22 +04:00
Tomasz Jankowski
988847f559 Transformation component transition to OV namespace (phase 4) (#13558)
* Use openvino pass graph_rewrite

* Replace use of ngraph::pass to ov::pass

* Remove ngraph::pass aliases

* Update after rebase

* Fix post merge conflicts

* Apply code style

* Apply code style

* Remove bypassing inclusion

* Apply code style
2023-01-25 01:02:35 +03:00
Tomasz Adamowicz
e1d3f26489 [GNA] Support caching properties for model cache (#14731)
* [GNA] Enable model caching

* [GNA] Enable model caching tests

* Fix: Use 'removeDir' instead of 'std::remove', on Windows std::remove has no effect

* Extract properties impacting model compilation into a separate method

* Add caching prop for supprted prop list
2023-01-19 13:09:42 +00:00
Vladimir Paramuzov
2201a5f83e Added common ov::execution_mode hint (#15048)
* [GPU] Added common exec mode hint and gpu support

* Add ov::inference precision and update usages. Deprecate ov::hint::inference_precision property

* [GPU] Execution mode tests and fixes

* Fixed code style

* Moved execution_mode test to common. Fixes for python API

* Remove deprecations for hint::inference_precision and just keep both

* Fix test
2023-01-18 20:13:00 +04:00
Tomasz Adamowicz
fad52a8dd1 [GNA] Skip GNA config structure initialization when compiling in GNA_SW_FP32 mode (#15013) 2023-01-18 14:33:21 +01:00
Ilya Churaev
0c9abf43a9 Updated copyright headers (#15124)
* Updated copyright headers

* Revert "Fixed linker warnings in docs snippets on Windows (#15119)"

This reverts commit 372699ec49.
2023-01-16 11:02:17 +04:00
Ryszard Jezierski
974af13788 [GNA] Add missing metrics to GNAExecutableNetwork (#14680)
* Added NETWORK_NAME, SUPPORTED_CONFIG_KEYS and SUPPORTED_METRICS metrics to GNAExecutableNetwork

* Added unit tests for GNAExecutableNetwork metrics

* Moved model name from GNAExecutableNetwork to GNAPlugin
2023-01-12 09:05:01 +00:00
Mikhail Ryzhov
e811210f33 [GNA] Changed max layer limit tests to avoid SEH exceptions (#15015)
* splitted test model

* Changed test config

* Set SF for all inputs
2023-01-11 13:05:52 +03:00
River Li
8c84faeecd Add ov::loaded_from_cache checking for CompileModelLoadFromMemoryTest (#15030)
* Add ov::loaded_from_cache checking for CompileModelLoadFromMemoryTestBase

* Skip gna in skip_tests_config
2023-01-11 09:45:11 +03:00
Ilya Lavrenov
efa5c51122 Compilation for WebAssembly: part 1 (#15008) 2023-01-10 13:02:22 +04:00
Mikhail Ryzhov
d6a4635fd5 [GNA] Support of the tensor names for scale factors (#14632)
* Support of the tensor names for scale factors
* Fixed transpose detection pattern
2023-01-10 09:54:38 +01:00
Mikhail Ryzhov
36f9d57023 [GNA] Fixed transpose detection pattern (#14633)
* Fixed transpose detection pattern
* Added tests
2023-01-10 09:36:57 +01:00
Szymon Irzabek
c20c867683 [GNA] Fix GNA namespaces (#14920) 2023-01-09 09:39:17 +00:00
Szymon Irzabek
c683a72400 Gna namespace (#14877)
* [GNA] Cleanup intel_dnn

* [GNA] Replace GNAPluginNS

* [GNA] Rename headers
2023-01-03 15:06:23 +00:00
Wang Wangwang
b8636222c3 Apply ov::execution_devices to GPU & CPU & AUTO BATCH & MULTI (#14109)
* Apply ov::execution_devices to GPU & CPU & AUTO BATCH & MULTI

* Apply ov::execution_devices to GNA

Co-authored-by: yanlan song <bell.song@intel.com>
2022-12-28 10:41:50 +04:00
Krzysztof Bruniecki
9ba6e48dbf [GNA] Fix input padding validator (#14607)
* [GNA] Fix input padding validator

   Assert that kernel above padding size
   Add tests
   Simplify compile target handling in graph compiler
   Fix issue 98584
   Swap padding end axes when swaping begin (fix 99008)

* [GNA] Add unit test for ShouldUseOnlyConv2DGnaIface fixed

* Apply review

* Simplify mock for GNA Lib

* Fixup missing includes

* Fix static build issues described in 71010
2022-12-20 15:04:40 +00:00
Marcin Kusmierski
6bca87a88a [GNA] Fix exception handling on wait and infer (#14578)
* [GNA] Move definition of GNAInferRequest class to source file

* [GNA] Fix handling exception for infer() and wait() gna_infer_request

* fixed handling of exceptions for wait and infer gna_infer_request
* fixed closing ongoing subrequest of divided model in case of exception on
    on enqueueing request or waiting for end of request.

* [GNA] Apply review comments, Removed exceptions from enqueue and wait for Worker

* changed API of request worker to return:
    * erorr in case wait failed instead of
        throw,
    * return true/false for enqueue instead of exception for failure case

* [GNA] Fix review commentd related to gna_infer_request and worker_impl

* [GNA] Add tests for GANInferRequest

* added tests for exception handling of Infer, Wait, StartAsync methods of
    GNAInferRequest class.

* [GNA] Added final fixes for review comments.
2022-12-20 10:15:15 +00:00
Marcin Kusmierski
bc69385093 [GNA] Create new tests for PWL approximation and refactor numerical_u… (#14604)
* [GNA] Small Improvement in PWLApproximation and update of unit test for it.

* added template method for floating pointcomparision
* added new tests for PWLApproximation

* [GNA] Refactor numerical_utils and usage of its method in plugin

* refactor numerical utils use template methods for conversion and comparision
2022-12-20 09:20:09 +00:00
Nadezhda Ageeva
539f17df62 [HETERO][nGraph] Fix ConstantFolding fused_names handling (#13766)
* [HETERO][CPU][GPU][TEMPLATE][nGraph] Fix ConstantFolding fused_names propogation. Add tests for QN. Fix for unsupported comsumers in QN

Fix ConvolutionMultiplyFusion for CPU

Enable fused_names check for Constants

Fix memory formats rt info for CPU

* Update src/plugins/intel_cpu/src/utils/rt_info/memory_formats_attribute.hpp

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

* Update src/tests/unit/inference_engine/query_model_test.cpp

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

* Update src/plugins/intel_cpu/src/utils/rt_info/memory_formats_attribute.hpp

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

* Update src/plugins/intel_cpu/src/ngraph_transformations/convert_matmul_to_fc.cpp

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

* Update src/core/src/rt_info.cpp

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

* Update src/core/src/rt_info.cpp

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

* Fix review comments

* Fix test

* Code style

* Review comments

* Don't add Parameters/Inputs/Results to supported due to supported consumers/sours. Add tests for that.

* Fix rt_info propogation for ConstantFolding

* Fix test build

* Code stye

* Review comments. Adds ShapeOfBase.

Co-authored-by: Ilya Churaev <ilyachur@gmail.com>
2022-12-16 10:16:50 +04:00
Szymon Irzabek
8ccabc546f [GNA] Remove internal overload correction algorithm (#14428) 2022-12-13 06:02:03 +01:00
Evgeny Kotov
f8b347ecd3 [GNA] Fixed extended debug build (#14355)
* fix build

* move debug define to cmake build options

* using namespace

* add debug build check

* remove build type check
2022-12-07 10:46:13 +01:00
Maciej Kwapulinski
86c7b588cf Unit test corevage for race at GNAPlugin destruction (#13905/SHA-1:57293a6833) (#14346) 2022-12-05 09:04:50 +00:00
Tomasz Jankowski
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
Krzysztof Bruniecki
9a938be94d [GNA] Fix logger initialization order, adapt unit test (#14296) 2022-11-30 14:42:09 +01:00
Marcin Kacprzak
23d2451072 [GNA] Fix scale factor calculation for int8 convolution weights (#14320)
* [GNA] Fix input generation in convolution low precision tests

* [GNA] Fix scale factor calculation for int8 convolution weights

Co-authored-by: Szymon Irzabek <szymon.jakub.irzabek@intel.com>
2022-11-30 12:37:10 +00:00