Commit Graph

939 Commits

Author SHA1 Message Date
Maxim Shevtsov
f2dda1bbca Added new tests that config set via ie.SetConfig or LoadNetwork is returned via exe_net.GetConfig and align plugin impl to that (#7627) 2021-09-24 10:03:24 +03:00
Vladislav Volkov
f8f6e57c39 [CPU] Fix for Int8 models serialization issues (#7554) 2021-09-24 09:24:35 +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
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 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
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
Ilya Lavrenov
538d492a70 Removed dependencies scripts (#7569) 2021-09-22 12:17:41 +03:00
Irina Efode
f5e7c9646d [IE TESTS] Separate conformance tests to 3 targets: op_conformance, api_conformace and conformance_infra (#7503)
* [IE TESTS] Separate conformance tests to 3 targets: op_conformance, api_conformace and conformance_infra

* Small fixes

* small fix

* try fix ci
2021-09-22 11:00:37 +03:00
Dawid Kożykowski
c29edb1f4e remove deprecated test classes (#7390) 2021-09-21 15:15:48 +03:00
Ilya Lavrenov
db385569c2 Throw ov::Exception from ov::runtime (#7536)
* Exceptions

* Throw ov::Exception from ov::runtime

* code style

* Fixed function name
2021-09-21 14:26:01 +03:00
Andrey Sapozhnikov
2349caa482 [GNA] Plugin transition to the library v3.0 Master (#7386)
* GNA Plugin transition to the library v3.0 Master

* [GNA] Enable 2D convolution decomposition on GNA 3.0

* [GNA] Fix cpplint

* [GNA] Fix cpplint

Co-authored-by: Szymon Irzabek <szymon.jakub.irzabek@intel.com>
2021-09-21 10:59:35 +03:00
Vladimir Zinoviev
fadb768fcd [LPT] INT16, INT32 Quantization support (#7199)
* [LPT] INT16, INT32 Quantization support

* [LPT] Support build on platforms with size_t == unsigned int

* [LPT] Test and fix wrong constant

* Fix build for size_t = unsigned int
2021-09-21 10:00:35 +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
Roman Lyamin
660c106233 [GPU] Performance counters fix (#7143) 2021-09-17 13:12:25 +03:00
Yuan Hu
ac8db25864 Enable CPU accelerate FIL in MULTI (#7380)
* Enable CPU accelerate FIL in MULTI

Signed-off-by: Hu, Yuan2 <yuan2.hu@intel.com>

* add configure to device

KEY_PERFORMANCE_HINT_NUM_REQUESTS

Signed-off-by: Hu, Yuan2 <yuan2.hu@intel.com>
2021-09-17 11:17:54 +03:00
Anton Pankratv
8690e14a5b Disabled TBB Executor (#7454) 2021-09-17 10:26:23 +03:00
Szymon Irzabek
57b51701fa [GNA] Depth-wise separable convolution support (#7281)
* [GNA] Add support for DWSC, other fixes and code refactoring.

* [GNA] Change supported layout to NHWC

* [GNA] Detect bias const only on second position, move verification of dwsc to matcher
2021-09-16 11:54:51 +03:00
Nikita Demashov
5b285ed105 [LPT] MoveFakeQuantize (#6723)
* add move_fake_quantize_for_concat_transformation, mfk and mfk_function

* fix relu_transformation.cpp

* backup

* add change

* add cpu test

* [LPT] MoveFakeQuantizeTransformation: fixes

* get InferenceEngine::NotImplemented

* fix ieFuncTests

* try without new cpu_test

* fix cpuFuncTests and ieFuncTests

* fix tests

* fix lin

* add cpu test

* fix link and matcher in move_fake_quantize.cpp

* update matcher

* add gpu test

* naming fix

* move_fake_quantize.cpp add set_fr_name for new_concat

* naming new fq fix

* fix NetworkHelper::copyInfo naming

* concat.cpp naming fix

* gpu tests fix

* rm network_helper changes

* rm extra output

* resolve conversations

* resolve other conversations

* add multi inputs for concat

* fix lin

* fix move_fake_qunatize naming

* rm maxpool from mfk_function

* mkldnn update

* fix style

* rm extra change

* fix concat matcher

* rm mkldnn_plugin changes

* fix conversations

* fix interval

* fix and add isQuantizedStatic, add attribute and negative tests

* add negative plugin tests

* fix style:

Co-authored-by: Edward Shogulin <edward.shogulin@intel.com>
2021-09-15 17:15:57 +03:00
Ilya Lavrenov
7654789451 Removed QueryNetworkResult from new API (#7507) 2021-09-15 07:53:47 +03:00
Vladislav Volkov
c06a51f2bf [CPU] Models cache for CPU plugin (#6403) 2021-09-14 16:02:47 +03:00
Dmitrii Khurtin
ba34a1989c [GNA] Expanding transformations: swap_input_matmul and handle_transposes_around_matmul (#7333)
* Expanding transformations: swap_input_matmul and handle_transposes_around_matmul

* insert_reshape_around_matmul

* fixed failed of smoke tests
2021-09-14 13:39:33 +03:00
Mateusz Tabaka
39120a7f62 Add MulConvFusion transformation (#6951)
* Add MulConvFusion transformation

This transformation is applied to a following graph:

```
   +-------+   +----------+
   | Input |   | Constant |
   +-------+   +----------+
       |            |
       ------  ------
            |  |
            v  v
         +----------+            +---------+
         | Multiply |            | Weights |
         +----------+            +---------+
              |                       |
              -----------    ----------
                        |    |
                        v    v
                   +----------------+
                   | Convolution Op |
                   +----------------+
```

and converts it to:
```

                           +---------+   +----------+
                           | Weights |   | Constant |
                           +---------+   +----------+
                                |            |
                                ------  ------
                                     |  |
                                     v  v
          +-------+              +----------+
          | Input |              | Multiply |
          +-------+              +----------+
              |                       |
              -----------    ----------
                        |    |
                        v    v
                   +----------------+
                   | Convolution Op |
                   +----------------+

```

Since 'Weights' are constants in most cases, the right hand side gets constant folded,
and we eliminate Multiply node.

Ticket: 52283

* Handle GroupConvolution, ConvolutionBackpropData, GroupConvolutionBackpropData in separate transformations

* Handle dequantization subgraph

* add namespace

* add more ngraph namespace

* address review comments
2021-09-14 12:52:27 +03:00
Elizaveta Lobanova
651f07b4ff [GNA] Fix permute precision handling (#7466)
* [GNA] Fixed precision handling for permute

* [GNA] Functional test is added

* Applying comments
2021-09-14 12:43:34 +03:00
Maxim Shevtsov
3bec32449f OV Performance Hints (CPU and GPU logic for selecting the actual configs), while AUTO/MULTI are passing them thru) (#6993)
* rebasing the perf-modes-2021.3 to the 2021.4

Caveats:
the (explicit) setting #streams is not disabled (as it was before for experiments with DLBenchmark), and the logic slighlty differ (streamsSet)

(cherry picked from commit 1ae1edc0ed)

* overriding streams (to force the TPUT mode to the DLBenchnark)

(cherry picked from commit 7f506cda31)

* disabling reducing #streams to fully mimic baseline c4df94d42d of the 2021.3 (before experiments)

(cherry picked from commit 85073dd1dd)

* clang/identation

(cherry picked from commit 050a4155a9)

* splitting the Transformation to general and CPU specific.

Now hopefully,this fully mimics the  baseline c4df94d42d of the 2021.3 (before experiments), as the streams reduce num (as well as early exit on GRU/LSTM/TensorIterator) is deisabled

(cherry picked from commit e98b2c1a67)

* disabling GRU/LSTM/TI + reducing of streams + 5D considered compute-limited only for int8

(cherry picked from commit 32b8d80dee)

* refactored to avoid compute_limited_ratio, reverted the reducing #streams, removed LSTM from limitations

(cherry picked from commit f2b972171b)

* isa-based threshold logic

(cherry picked from commit b218457e1a)

* mode->hint

(cherry picked from commit ec20aa8eca)

* optional PERFORMANCE_HINT_NUM_REQUESTS

(cherry picked from commit 5a3883e3f3)

* moving the perfHints to the common OV config class + initial tests (CPU only, as the actual AUTO/MULTI should be accommodated on the master)

(cherry picked from commit (then fixed)45bafe7d527f466507dea0693aeed51be4ebf776)

* AUTO support for PerfHints

* MULTI support for PerfHints

* Enabling Perf hints for the GPU plugin

* brushing settings output a bit

* disabling "throughput" perf hint being default (until OV 2.0)

* uncommenting the logic which was disabled to force the DLBenchmark to use the throughput mode by default

* removing dead and experimental code, and debug printfs

* clang/code-style

* code-review remarks

* Moved the output of the actual params that the hint produced to the right place

* aligning MULTI's GetConfig beh to HETERO's as captured in the preso (CVS-59960) ratified with the ArchForum

* clang

* benchmark_app brushing

* Update inference-engine/samples/benchmark_app/README.md

* propagating the perf hints thru one more scenario in the merged AUTO-MULTI

* fixed mispint

* Python benchmark_app update for perf hints

* addresssing reviewers comments on the python benchmark_app

* simplifying/brushing logic a bit

* refactor the heuristic to the separate file (to be shared with iGPU soon)

* refactor conversion of modes to the specific GPU config per feedback from Vladimir
2021-09-13 15:40:36 +03:00
Anton Pankratv
2793963e6f added openvino runtime plugin (#7259) 2021-09-13 14:25:52 +03:00
Alexandra Sidorova
eae448e74a [CPU] Added inplace support for concat with axis != 1 (#6864) 2021-09-13 10:30:39 +03:00
Irina Efode
b3d6d11a99 [IE TESTS] Move SKIP macro from test bodies to SetUp() in InferRequestCancelation & Move Infer_Request_dynamic tests to the correct folder (#7299)
* try to fix behavior

* Try

* Revert changes

* Update behavior_test_utils.hpp

* Move Deynamic_tests

* fix build

* fix

* Init
2021-09-13 10:09:36 +03:00
Dawid Kożykowski
3afc0342eb update shared tests classes (#7385) 2021-09-13 07:18:48 +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
Anton Pankratv
305b86fe4a Added openvino executable network API (#7230) 2021-09-10 11:55:52 +03:00
Anton Pankratv
1c1401b069 Added default exec network result (#7352) 2021-09-08 23:33:12 +03:00
Elizaveta Lobanova
66a14f1ac3 [GNA] Fixed scale factors propagation for Eltwise with very different inputs ranges (#7305)
* [GNA] Fix scale factors propogation for Eltwise with very different inputs ranges

* [GNA] Added test

* [GNA] Added exception for scale factor <= 0

* [GNA] Disable tests with integer weights

* [GNA] Added assert for CNNLayer in getScaleFactor()

* [GNA] Added check if scale factor is inf

* [GNA] Fixed legacy tests
2021-09-08 10:48:05 +03:00
Maksim Kutakov
5096fe19f1 [CPU] Dynamic shapes support using fallback on reference (#6882) 2021-09-08 10:33:20 +03:00
Gabriele Galiero Casay
15bef9ec70 Remove deprecated mvn class for SLTs (#7340) 2021-09-06 13:32:05 +03:00
Ilya Lavrenov
005e7da325 Removed auto plugin (#7310)
* Try to remove auto plugin

* Auto is registered as MULTI

* Register MultiDevicePlugin as AUTO

* More explicit config
2021-09-03 22:01:18 +03:00
Krzysztof Bruniecki
6dd14bfe91 [GNA] Fixes for GNA 3.0 library (#7236)
* Cherry-picked (PR #7180) (ce21344585) from releases/2021/4 branch
* Pass compileTarget to am_intel_dnn
* Enable tests for GNA lib version prefix 3.0
* Fix conv split transform for 2d cnn tests
* Apply review
2021-09-03 12:56:51 +03:00
Mikhail Ryzhov
2cf7065f6e [GNA] Fixed import of model with several inputs (#7277) 2021-09-02 17:48:07 +03:00
Elizaveta Lobanova
98eaa9359f [GNA] Fixed accuracy degradation caused by the input quantization restriction (#7258)
* [GNA] Fixed accuracy degradation caused by the input quantization restriction

* [GNA] Put scale factor calculation into a separate function
2021-09-02 14:35:49 +03:00
Ilya Churaev
2e626f502d Remove redundant header aftter PR #6969 (#7320) 2021-09-01 15:25:36 +03:00
Dawid Kożykowski
3081fac758 Unify SLTs classes of Convert and ConvertLike operations (#7129)
* update comparisiofiles to use const ref param

* introduce conversion layer test definitions

* adapt old tests to the new format

* remove old duplicated conversion tests

* fix "convertion" typo to "conversion"

* fix style issues and abandon unnecessary changes

* fix include order

* update remaining conversion tests to use introduced class

* fix gpu class test naming

* bring back convert.hpp and convert_like.hpp files

* bring back convert.hppcppd convert_like.cpp files

* bring back single_layer_tests/convert.hpp file

* add missing copyright info

* fix issue with braces initiator for conversion types

* add missing convert_like tests

* add deprecated code macros

* update deprecated code macro message

* add missing space in deprecated code macro message

* update skip ConvertLike tests ticket

* update deprecated code to  use IE macros

* update remaining ngraph_deprecated macros to use IE macros
2021-09-01 14:19:38 +03:00
Gabriele Galiero Casay
70e6565619 Refactor backend test suite of Reduction ops into template plugin tests (#6930)
* Refactor visitor test of reduce operations to include operation name

* Add template plugin tests for reduction operations

* Remove backent unit tests of reduction operations

* Use Tensor utility to instantiate tests

* Use std::for_each instead of raw for loop to produce test case instances

* Cover remaining backend tests in manifest by SLTs cases

* Fix regex to skip cpu test failing in centos build with precision u64
2021-09-01 11:22:46 +03:00
Sergey Lyalin
bfae017cf2 Dynamic plugin reshape blob (#6969)
* 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

Co-authored-by: Ilya Churaev <ilya.churaev@intel.com>
Co-authored-by: Polina <polina.brzezinskaya@intel.com>
2021-09-01 10:59:42 +03:00
Edward Shogulin
b7deb11d6a [LPT] Legacy restrictions removal: dequantization operations (#6974)
* [LPT] Legacy restrictions removal: dequantization operations

* [LPT] not used tests removal
2021-09-01 09:59:29 +03:00
Vladimir Paramuzov
781c1aecff Revert "[GPU] Fixed default device id (#7155)" (#7308)
This reverts commit b235f5e452.
2021-08-31 18:45:56 +03:00
Vladimir Paramuzov
b235f5e452 [GPU] Fixed default device id (#7155) 2021-08-30 18:47:57 +03:00
Mikhail Ryzhov
d0f49fe0c8 [GNA] Fixed export/import precisions (#6273) 2021-08-27 14:19:18 +03:00
Elizaveta Lobanova
9ee57fe233 [GNA] Fixed search of the next layer for FQ (#7243) 2021-08-26 12:56:39 +03:00
Elizaveta Lobanova
d27161703d [GNA] Fixed calculation of input scale factor for POT-quantized model in the case if the first layer after input is activation (#7223) 2021-08-25 18:50:42 +03:00
Anton Pankratv
6750b8c336 Created Remote context c++ API (#7114) 2021-08-25 18:16:41 +03:00