Commit Graph

2782 Commits

Author SHA1 Message Date
mei, yang
e2272331be [GPU] Improve IsNodeOnConstPath() method (#7458) 2021-09-22 10:52:58 +03:00
Ilya Lavrenov
377f46898c Moved ie::Parameter to new API (#7584)
* Fixed typo

* Moved ie::Parameter to new API

* Fixed compilation for Android
2021-09-22 10:38:09 +03:00
Vladimir Zinoviev
1aa6db4aaf [LPT] Move FQ disabled for non-per-tensor FQs (#7581) 2021-09-22 01:15:36 +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
Roman Lyamin
d6ade04fc7 [GPU] Performance improvement for Load Network (#7514) 2021-09-21 11:35:23 +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
Vladimir Paramuzov
43609b4b4e [GPU] Added onednn dependency. (#6564) 2021-09-21 09:48:16 +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
Vladislav Golubev
da9595dae4 [LPT] getDequantization: added precision limitation for mul/sub constants (#7517)
* [LPT] getDequantization: added precision limitation for dequantization constants

* [TESTS] GetDequantizationTransformation: added test case with unsupported precision
2021-09-20 14:02:55 +03:00
Egor Duplensky
db565e60c6 [CPU] Refactor node dumping to avoid extra code in Infer method (#6931) 2021-09-20 12:29:21 +03:00
Nikolay Shchegolev
168d8b9e84 [General] Statically detected issues. (#7432) 2021-09-20 09:28:39 +03:00
Taylor Yeonbok Lee
30ddd06159 [GPU] Allocate internal buffer to usm_device (#7109)
* Allocate internal buffer to usm_device when one of the input tensor is from usm_device.
Allocate output tensors if there is no user which is cpu impl.

* Move intermediate buffer allocation to primitive_inst

* Allocate to usm_host when the internal buffer is allocated close to limitation of device memory

* Remove internal_buffer_info and replace it with vector of layout.
Updated conditions to use alloc_type w.r.t the availability.

* Allocate internal buffer within primitive_inst construction

* Fixed device_mem allocation condition aligned with driver team
- Single allocation should be less than CL_DEVICE_MAX_MEM_ALLOC_SIZE
- Total allocation for a kernel should be less than CL_DEVICE_GLOBAL_MEM_SIZE

* Apply review comment
2021-09-18 07:50:36 +03:00
Andrew Kwangwoong Park
277a23b8e4 [GPU] Update debug config verbose option to show the name of tensors allocated (#7407)
Signed-off-by: Andrew Kwangwoong Park <andrew.kwangwoong.park@intel.com>
2021-09-17 21:12:53 +03:00
Andrew Kwangwoong Park
7772aeb3bb [GPU] Fix RapidJSON assertion failure during loading kernel (#7526)
Signed-off-by: Andrew Kwangwoong Park <andrew.kwangwoong.park@intel.com>
2021-09-17 20:13:09 +03:00
Roman Lyamin
660c106233 [GPU] Performance counters fix (#7143) 2021-09-17 13:12:25 +03:00
Dmitry Pigasin
a6bdb8744f [IE Python Speech Sample] Enable --scale_factor for multiple input files (#7482)
* Enable --scale_factor for multiple input files

* Small refactoring of getting a first utterance

* Fix mypy issue

* Update readme

Co-authored-by: Dmitry Pigasin <dmitry.pigasin@intel.com>
2021-09-17 11:59:49 +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
Sergey Shlyapnikov
1f85d4230d Add use_device_mem option to benchmark_app (#7433) 2021-09-17 11:04:50 +03:00
Anton Pankratv
8690e14a5b Disabled TBB Executor (#7454) 2021-09-17 10:26:23 +03:00
Ilya Churaev
d2333cc012 Introduced template for OV2.0 migration guide (#7360)
* Introduced template for OV2.0 migration guide

* Fixed comments

* Fixed comments
2021-09-17 03:53:39 +03:00
Dmitry Pigasin
ffa07eb6f3 Refactor code to output result after each utterance infer (#7450) 2021-09-16 12:52:10 +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
Anastasia Popova
10f0075e90 RandomUniformFusion transformation. (#7187)
* Added RandomUniformFusion transformation.

* Extended transformations for case with Convert, extended transformations for general min and max value case.

* Set to const unchanged variables.

* Apply suggestions from code review

Co-authored-by: Gleb Kazantaev <gleb.nnstu@gmail.com>

* Reformat code, small corrections.

* Added const shape checks.

* Fixed transformation for case of different const ranks.

* Added type checks.

* Apply suggestions from code review

Co-authored-by: Gleb Kazantaev <gleb.nnstu@gmail.com>

* United RandomUniformMulFusion and RandomUniformAddFusion to single transformation.

* Added negative tests.

* Used get_constant_from_source().

* Moved transformation to common fusions.

* Added const refs.

* Update inference-engine/src/transformations/src/transformations/common_optimizations/random_uniform_fusion.cpp

Co-authored-by: Gleb Kazantaev <gleb.nnstu@gmail.com>

* Changed to single class.

* Corrected IRs checks in layer tests.

* Small corrections.

Co-authored-by: Gleb Kazantaev <gleb.nnstu@gmail.com>
2021-09-16 11:07:19 +03:00
Alexey Lebedev
6df94afdcb [IE PYTHON] wait for infer callback to complete (#7374)
* test commit

* Add test

* Remove threading.event from InferRequest

* Fix wait for ExecutableNetwork
2021-09-15 22:58:48 +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
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
Ilya Lavrenov
7654789451 Removed QueryNetworkResult from new API (#7507) 2021-09-15 07:53:47 +03: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
cf48792134 Random Uniform MO implementation (#6694)
* Added RandomUniform operation.

* Conflicts fix.

* Fix conflicts.

* Fix conflicts.

* Added ONNX extractor, fixed FP16 conversion, added double implementation.

* int32, int64 types.

* Added initial type attribute.

* Added extractors for MxNet and TF for RandomUniformInt.

* Fixed ChangeRandomUniformOutputType transformation.

* Corrected ONNX, MxNetextractors.

* Fixed extender.

* Code style corrected, updated BOM file.

* Small correction.

* Code reformat.

* Fixed type check.

* Small corrections, code style.

* Added RandomUniform tests to manifest file.

* Include fixed.

* Code style.

* Small corrections.

* Tests fixed.

* Manifest file updated.

* Removed initial type attribute.

* Small correction.

* Fixed problem with Const types change.

* Update ngraph/core/include/ngraph/op/random_uniform.hpp

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

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

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

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

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

* Applied comments to shell implementation.

* Applied comments to shell implementation.

* Moved shell and reference to separate PR.

* Moved shell and reference to separate PR.

* Corrected comments, code refactoring.

* Fixed seed attributes.

* Corrected mxnet extractor.

* Returned RandomUniform onnx extractor.

* Small fix.

* Used generator in tests, fixed input ports count in AttributedRandomUniform.

* Temporarily added DropoutWithRandomUniformReplacer and debug output.

* Temporarily added DropoutWithRandomUniformReplacer and debug output.

* Temporarily added DropoutWithRandomUniformReplacer and debug output.

* Temporarily added DropoutWithRandomUniformReplacer and debug output.

* Moved DropoutWithRandomUniformReplacer to ngraph, removed debug output.

* Fixed wrong change.

* Fixed wrong change.

* Added check that RandomUniform is in ShapeOf subgraph.

* Added layer tests, updated supported operations list.

* Small correction.

* Fix conflicts.

* Fix conflicts.

* Small fix.

* Used const for not changing values.

* Apply suggestions from code review

Co-authored-by: Gleb Kazantaev <gleb.nnstu@gmail.com>

* Added IR check in layer tests.

* Fixed error.

* Fixed test.

* Update inference-engine/src/transformations/include/transformations/common_optimizations/dropout_with_random_uniform_replacer.hpp

Co-authored-by: Gleb Kazantaev <gleb.nnstu@gmail.com>

* Removed ShapeOf and Mul from DropoutWithRandomUniformReplacer.

* Replaced register_new_node with make_shared.

* Added fp16 test.

* Extended for RandomUniform->Convert case.

* Used modf().

* Removed modf().

* Update inference-engine/src/transformations/src/transformations/common_optimizations/dropout_with_random_uniform_replacer.cpp

Co-authored-by: Gleb Kazantaev <gleb.nnstu@gmail.com>

* Added negative tests, added nullptr check for add_const_value.

Co-authored-by: Ilya Churaev <ilyachur@gmail.com>
Co-authored-by: Gleb Kazantaev <gleb.nnstu@gmail.com>
2021-09-14 21:26:57 +03:00
Aleksandr Pertovsky
a4b75b7b67 [CPU] Add check for MKLDNNDeconvolutionNode for int8 execution (#7201) 2021-09-14 17:38:13 +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
Anton Pankratv
5e6896d03a Reverted to Remote Context (#7453) 2021-09-14 12:49:24 +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
Henry Fuheng Wu
7328ee1e35 fix build issue due to implicit-const-int-float-conversion and remove unused lambda function (#7470)
* fix build issue due to implicit-const-int-float-conversion and remove unused lambda function

* just remove it instead of commenting out

Co-authored-by: FuhengWu@Oracle <fuheng.wu@oracle.com>
2021-09-14 11:14:44 +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
Ilya Lavrenov
b373cb844b Removed information about FPGA plugin (#7474) 2021-09-13 14:01:49 +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
Ilya Lavrenov
47aad8e67e Small fixes in cmake (#7472) 2021-09-13 12:57:10 +03:00
Ivan Novoselov
cb0d6db4c5 [CPU] Disable NotImpelmented exceptions mechanism for generic node. (#7242) 2021-09-13 11:20:43 +03:00
Chenhu Wang
2093af4f8a [CPU] DO optimization (#6360) 2021-09-13 11:12:03 +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
0bc17a2f55 update subgraph test classes (#7383) 2021-09-13 07:19:30 +03:00
Dawid Kożykowski
3afc0342eb update shared tests classes (#7385) 2021-09-13 07:18:48 +03:00