Commit Graph

3583 Commits

Author SHA1 Message Date
azhogov
13d5a53aa4 Azure CI: Disable cpuFuncTests on Mac 2021-05-20 12:52:06 +03:00
Mikhail Nosov
fd3338b41a
Multi plugin - override loading network from file (#5677)
* Multi plugin - override loading network from file

When caching is enabled, MULTI plugin will check all devices
- For devices with caching supported - call LoadNetwork(modelPath, ...)
- For others - ReadNetwork once and then LoadNetwork(cnnNetwork) for each device

Caching unit test is added for both cases

Additional helper methods:
- ICore::ToExecutableNetwork - converts internal ExeNetwork to ExecutableNetwork
- ICore::DeviceSupportsImportExport - checks if device supports import and export functionality. Used by Hetero and Multi

* Updated according to review comments

* fixed sporadic failure of 'multi-device' test cases

Root cause:
Currently only one 'ExecutableNetwork' object is created for each LoadNetwork
For Multi-testing several threads could call simultaneously setNetworkInputs/Outputs/SetPointerToPlugin
It caused race condition and invalid data structures

* Fix build issues after rebase

* Multi: Set network inputs/outputs/pointerToPlugin for load-from-file case

Overloaded function doesn't call these methods, thus multi executable network was unusable

Added caching test verifying that inputs/outputs are copied now from first loaded device network
2021-05-20 12:37:44 +03:00
Gleb Kazantaev
1f0381e2b0
Update reshape to restore original shapes if reshape has failed (#5681)
* Update reshape not to throw an exception; restore parameters shape if reshape was wrong

* Early exit

* Fix test
2021-05-20 11:19:46 +03:00
Yunji Kim
cdc98d7286
[IE CLDNN] Fix DetectionOutput cpu implementation to be aligned with ngraph (#5544) 2021-05-20 11:04:50 +03:00
Szymon Irzabek
f6c3b90364
Gna conv2d decompose (#5604)
* adding conv2d decomposition

* save point

* build of conv_2d factorization succeeds

* working 2d conv decomposing transform

* added pseudo code for handling larger kernels

* fix conv splitting due to size

* active work on convolution 1xK without dilation

* validated NHWC ordered networks with convolution kernel sizes:
3x3
3x1
5x1
1x5
1x3

TODO: 2d max pooling

* removed debug printouts

* fusing max pooling/bias/af when -disable_nhwc_to_nchw option is used

* code cleanup

* [GNA] Fixes for CI run

* [GNA] Add tests, fix transform

* [GNA] Fix padded2valid and conv2d decomposition coexistence

* [GNA] Temporarily disable tests due to mock call count issues

* [GNA] Split tests for different hw versions

Co-authored-by: prozen <piotr.rozen@intel.com>
2021-05-20 11:01:29 +03:00
Maksim Derbasov
a5ea4fefbf
Fix warnings and if condition (#5705) 2021-05-20 10:35:53 +03:00
Ilya Lavrenov
2bdd955d6e
Inference engine versioning (#5562)
* Exclude xbyak from install

* Added automatically generated InferenceEngineConfig.cmake

* Reverted a version back

* Fixed issues with target aliases

* Make TBB dependency private

* Made ie_parallel.cmake self-sufficient

* Don't expose ie_paralle.cmake to end users

* Fixed compilation with TBB

* Fixes for TBB

* Fixed vpu_graph_transformer compilation

* Fixed tests compilation

* Added install of ie_parallel.cmake

* Switched ENABLE_ALTERNATIVE_TEMP to OFF. Fixed COMPONENTS for TBB

* Fixed file name in install rules

* Added find_dependency for TBB in ie_parallel.cmake

* WA for cmake bug with PACKAGE_PREFIX_DIR

* Fixed no-deprecation to fix speech-library build

* Reverted version from 2.1.0 to 2.1

* Revert "Reverted version from 2.1.0 to 2.1"

This reverts commit 7cb5d1563c.

* Added versions to cmake

* Added versions to ie_version.hpp

* Returned custom version file back

* Added InferenceEngineConfig-version.cmake to share as well

* Disabled one more GPU test

* Added one more WA for CI

* WA for CI issue for C API

* Added InferenceEngineConfig-version.cmake to share as well

* Added verison parsing from ie_version.hpp

* Revert "[CPU] Add Roll support (#5112)"

This reverts commit 5d8f209df6.

* Revert "[CPU] windows_Interpolate_fused-FQ_nearest-mode_nspc-layout_fix (#5317)"

This reverts commit 0808975a37.

* Revert "[INT8][BF16] INT8 + BF16 feature was enabled (#5059)"

This reverts commit 7d2ec02d65.

* Support for components

* No version for IEDevScripts package

* Removed IE_VS_VER_HAS_VERSION from vs_version.rc.in

* Added compatibility for 2.x old versioning
2021-05-20 10:21:44 +03:00
Egor Shulman
98c35d6a08
[CPU] Changed math to mkldnn_math_node (#5617) 2021-05-20 10:00:38 +03:00
Alexandra Sidorova
dcc288680b
[CPU] Added Gather-7 support (#5552) 2021-05-20 09:09:28 +03:00
Ilya Lavrenov
0a629716de
Follow up for PR #5645 (#5702) 2021-05-20 07:31:34 +03:00
Ilya Lavrenov
46e1e795a2
Removed rpath for ngraph (#5688) 2021-05-20 07:11:02 +03:00
Shoujiang Ma
90a18d9cef
[AUTO] Implement auto-plugin limited devices feature (#5545)
* Update SelectDevice policy in auto plugin

Signed-off-by: Zhengtian Xie <zhengtian.xie@intel.com>

* Implement limit device list for AUTO plugin

Signed-off-by: Shoujiang Ma <shoujiang.ma@intel.com>

* Add tests for AUTO limit device feature

Signed-off-by: Shoujiang Ma <shoujiang.ma@intel.com>

* Add gpu tests for auto-plugin

Signed-off-by: Shoujiang Ma <shoujiang.ma@intel.com>

* Fix CI cpuFuncTests issue due to BATCHED_BLOB

Signed-off-by: Shoujiang Ma <shoujiang.ma@intel.com>

* Override LoadNetwork(modelPath, config) in AUTO plugin

Signed-off-by: Shoujiang Ma <shoujiang.ma@intel.com>

* Update SelectDevice() logic for LoadNetwork(model, config)

Signed-off-by: Shoujiang Ma <shoujiang.ma@intel.com>

* Update GetNetworkPrecision logic for auto-plugin

Signed-off-by: Zhengtian Xie <zhengtian.xie@intel.com>

* Address reviewers' comments

Signed-off-by: Shoujiang Ma <shoujiang.ma@intel.com>

* Add tests for AUTO:GPU,CPU case

Signed-off-by: Shoujiang Ma <shoujiang.ma@intel.com>

* Update logic in GetNetworkPrecision for auto-plugin

Signed-off-by: Zhengtian Xie <zhengtian.xie@intel.com>

* Address reviewer's comment: clean and simplify code

Signed-off-by: Shoujiang Ma <shoujiang.ma@intel.com>

* Fix wrong usage of convolution weight index

Signed-off-by: Shoujiang Ma <shoujiang.ma@intel.com>

* Address reviewer comment: fix get network precision logic

Signed-off-by: Shoujiang Ma <shoujiang.ma@intel.com>

* Fix rebase issue

Signed-off-by: Shoujiang Ma <shoujiang.ma@intel.com>

* Fix ie_core.cpp header change

Signed-off-by: Shoujiang Ma <shoujiang.ma@intel.com>

Co-authored-by: zhengtian.xie <zhengtian.xie@intel.com>
2021-05-19 23:47:54 +03:00
Ilya Lavrenov
bc15656a32
Template set precision for output (#5693) 2021-05-19 22:58:03 +03:00
Anastasia Kazantaeva
e755232a7f
fix date (#5694) 2021-05-19 22:21:51 +03:00
Anton Chetverikov
538f407829
Fix errors for VariadicSplit layer restored from serialized IR (#5613)
* Fix errors in VariadicSplit layer restored from serialized IR

* Update VariadicSplit specification and error message to allow 1D tensors on 1st input

* Update spec

* Resolve comments

* Apply comments, add unit tests

* Update unit tests
2021-05-19 19:03:58 +03:00
Anton Pankratv
ec5aa2fefd
Fixed legacy API set get user data method (#5690) 2021-05-19 18:46:10 +03:00
Mikhail Nosov
94fb9337ed
Returned back original copyrights for npy.hpp (#5692)
Original source code repo: https://github.com/llohse/libnpy
SHA of original commit: d3fd88697889cefb466b647d3034c1d7b7f615ff

In OpenVINO repo there are some modifications, thus Intel's copyrights are kept as well
2021-05-19 18:30:01 +03:00
Irina Efode
9a1f4b6829
[IE TESTS] Skip some ROI BF16 tests after comparision fix (#5697)
* [IE TESTS] Fix BF16 comparation

* Skip

* remove extra
2021-05-19 17:28:01 +03:00
Vladimir Paramuzov
d52c4d433a
[IE CLDNN] QueryAPI extension with gpu device info (#5440) 2021-05-19 16:44:40 +03:00
Andrei Gorbachev
ae9f3ebc5d
[IE CLDNN] Add Gather-7 (#5360) 2021-05-19 15:03:47 +03:00
Elizaveta Lobanova
68b94a7c9f
[GNA] Support of Matmul with const as the first input and other fixes for softmax and layer norm patterns. (#5623)
* Swap inputs pass

* [GNA] Handle case Gemm layer

* [GNA] Convert Matmul to FC

* VS tests

* Move to common optimization

* Gemm execution such as FC

* Test calc scale_factor

* Some changes

* Working version

* [GNA] Insert transpose between convolution/pooling and reshape.
Insert copy layers after concat inputs with multiple connections to the concat.
Accept networks with input connected to layers with different orientations if one of input dimensions is 1.
Fix scale factor calculation for Eltwise layer.
Fixes for Gemm quantization.

* Insert transpose after Reshape and  before Matmul

* Fix concat input alignment when it's the network input

* Comments applying

Co-authored-by: Andrey Dmitriev <andrey.dmitriev@intel.com>
2021-05-19 14:44:00 +03:00
Ilya Lavrenov
181ad06668
Auto (#5645)
* Added LoadNetwork(filename) to AUTO

* Added more files

* So pointer can be used without loading

* Changed InferencePlugin, ICore to return internal interfaces

* Added SoPointers for InferRequest, ExecutableNetwork

* Fixed Windows

* Fixed KMB

* Fixes for KMB

* Removed dereference operator

* Play with include files

* Fixed compilation with older compilers

* Fixed comments

* Fixed win build

* Try  to fix Windows

* Try  to fix Windows 2

* Fixed windows

* Fixed windows

* Removed SOPointer as a base class

* Reverted back SOPointer split

* Code review

Co-authored-by: apankratovantonp <anton.pankratov@intel.com>
2021-05-19 13:18:58 +03:00
Irina Efode
9568f8120e
[IE TESTS] Fix Comparation issue in LayerTestCommon class (#5624)
* [IE TESTS] Fix comparation in LayerTestUtils

* Fixes

* Small fix

* Int4 fixes

* remove extra

* Fix NMS

* Some fixes for tests

* Add small fix

* [IE TESTS] Remove const folding as a result engine

* Remove extra

* Revert remove constant folding (DSR test) & fix some cases for cpu

* Fix GNA
2021-05-19 13:14:35 +03:00
Ewa Tusień
ce8e1dc214
Use ShapeOf approach even for static shape. (#5620) 2021-05-19 12:12:48 +02:00
Alexander Zhogov
dde678dd13
Azure CI Mac: Disable smoke_LPT/ReduceMinTransformation.CompareWithRe… (#5652)
* Azure CI Mac: Disable smoke_LPT/ReduceMinTransformation.CompareWithRefImpl/f32_Shape

* Fix incorrect change

* Update skip_tests_config.cpp

* Fix

* Fix regexp

* Update regexp

* Disable change in cpp, and enabled in yml due to strange issues
2021-05-19 13:02:10 +03:00
Michał Karzyński
87d6664669
[ONNX] Do not reshape input to DequantizeLinear if scalar (#5260)
Co-authored-by: Ewa21 <ewa.tusien@intel.com>
Co-authored-by: bsledz <bartosz.sledz@intel.com>
2021-05-19 11:26:22 +02:00
Gleb Kazantaev
400f63aeee
Fix Execution Graph Serialization (#5599)
* Fix Execution Graph serialization

* Fix FramewrokNodeAttr copy

* Update FrameworkNodeAttr
2021-05-19 09:48:28 +03:00
Vladimir Paramuzov
58c5682944
[IE CLDNN] Removed SortType::None from TopK func tests. Enabled all func tests (#5671) 2021-05-19 08:57:09 +03:00
Patryk Elszkowski
4bbbf66a69
add SLT for activation function with integer type to check rounding (#5506)
Co-authored-by: Patryk Elszkowski <patryk.elszkowki@intel.com>
2021-05-19 08:41:35 +03:00
Aleksandr Pertovsky
76131da7ca
Add BF16 IE Precision specialization to is_float (#5654)
* Add bf16 specialization to is_float IE Precision

* Add IE precision tests
2021-05-19 07:29:03 +03:00
Evgeny Lazarev
369b427657
Fixed MO CMakeList to remove unit_tests directory (#5670) 2021-05-18 20:37:54 +03:00
Victor Kuznetsov
c907fb9f52
Log have time measures nested (#5402) 2021-05-18 18:00:10 +03:00
Maxim Andronov
d798858b28
Disable check on result in CheckExecGraphInfoBeforeExecution (#5650) 2021-05-18 17:00:14 +03:00
Dmitrii Khurtin
21370c70b2
s/1191/1226 (#5636) 2021-05-18 14:50:11 +03:00
Vladislav Golubev
49a8714ee5
[CPU] FakeQuantize: new cases support (#5497) 2021-05-18 14:40:13 +03:00
Krzysztof Bruniecki
0face0e7cb
Use compile target in export tests for SUE (#5594) 2021-05-18 14:32:48 +03:00
Szymon Irzabek
5db77bf9e6
GNA padded2conv tests & fixes (#5589)
* add conversion of padded to valid convolution without other parameters change

* [GNA] Fix graph loop when multiple connections exist from single layer to concat

* [GNA] Add 1d and 2d conv test cases

Add models covering all transform scenarios.
Add test cases covering 1d and 2d convolutions.
Update transform with the newest code.
Add minor fixes in transform and elsewhere.

* [GNA] Remove debug code

* [GNA] Fixes after review

* [GNA] Fix failing tests

Co-authored-by: prozen <piotr.rozen@intel.com>
2021-05-18 14:31:23 +03:00
Roman Kazantsev
b1d1f9287f
Implement nGraph transformation to decompose Einsum-7 operation (#5529)
* Implement nGraph transformation to decompose Einsum-7 operation

Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>

* Use MatMul instead of Eltwise-multiplication and ReduceSum

Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>

* Add description for new methods

Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>

* Fix code style

Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>

* Fix code style #2

Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>

* Remove unused variables.py

Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>

* Apply feedback after review: fix comments, new_register_node use

Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>

* Add Reshape if needed and apply code-review feedback

Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>

* Fix code-style

Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>

* Remove unused variable

Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
2021-05-18 13:17:50 +03:00
Gleb Kazantaev
8be740a5aa
Enable Pruning transformation by default inside Model Optimizer (#5633) 2021-05-18 12:48:01 +03:00
Sergey Lyubimtsev
b835c6e60a
Added Troubleshooting section (#5625)
* Added Troubleshooting section

* correct gamma
2021-05-18 12:28:42 +03:00
Sergey Lyubimtsev
bcbc3fe8cd
Update EULA link for PyPI install guides (#5452) 2021-05-18 12:25:37 +03:00
Dmitry Kurtaev
3dbf4b340b
Use extern template instantiation only for Clang (RTTI mess) (#5647)
* Remove extern template from headers for RTTI classes

* Moove instantiation out of the namespace

* Use __ANDROID__ conditional compilation for TBlob

* One more attempt
2021-05-18 11:51:26 +03:00
Maksim Derbasov
61108f1147
Fix warnings, cl compiler (#5641)
* Fix warnings

* make cpplint happy
2021-05-18 07:32:53 +03:00
Gabriele Galiero Casay
6a8f8a0761
Enable zero epsilon attribute in BatchNormInference operation (#5657) 2021-05-18 07:30:10 +03:00
Vladimir Zinoviev
e41e25533d
[LPT] ConvolutionBackpropData support (#5313)
* [LPT] ConvolutionBackpropData support

* minor fixes

* [Transformations] Legacy subtract precision keep

* [LPT] ConvolutionBackpropData tests improvements

* [LPT] ConvolutionBackpropData weights folding when can't be transformed

* [LPT] CanBeTransformed unification and convolution weights folding

* [LPT] GPU INT8 optimizations condition flag

* [LPT] Concat precision predict improvement

* [LPT] Turn off asymmetric quantization for Deconvolution on GPU

* [LPT] Improvements from review

* [LPT] Check if layer after concat isQuantized and require per-tensor quantize

* [LPT] Improvement for Deconv->FQ pattern

* [LPT] Commented failing tests
2021-05-18 00:59:01 +03:00
Ilya Lavrenov
f84b25722c
Removed legacy dependency on snippets (#5656) 2021-05-18 00:24:37 +03:00
Irina Efode
4d6d088c02
[IE TESTS] Add tag to the report (for identification scope) && add handling of exception in merge_xmls (#5660) 2021-05-17 23:08:42 +03:00
Mikhail Treskin
71b87255ab
Skip Assign and ReadValue from extractor. (#5663) 2021-05-17 22:47:29 +03:00
Ilya Lavrenov
02b31b2cc7
Follow-up for PR 5638 (#5659) 2021-05-17 21:02:56 +03:00
Ivan Tikhonov
6dc343d745
NGraph reference implementation for Memory (#4956)
* Reference implementation for memory

* memory reference implementation tests, fixes

* new class Variable context

* fix ngraph code style

* add new evaluate method to ngraph::function

* unordered_set instead of set in find_variables method

* added a new Memory base class; automatiс memory allocation for Variable context in Assign ops; refactoring

* ngraph codestyle

* ngraph codestyle

* temporary disable the check of variables in ngraph::function

* fix for  evaluate hides overloaded virtual function warning

* ngraph codestyle

* uncomment a check in validate_and_infer method

* Removing a check (not backward compatible); adding docs

* Auto detect Parameters/Variables, new constructors in ngraph::function

* use zero initial values in ReadValue v6 evaluate

* fix unit tests

* fix codestyle

* fix build (werror)

* ngraph codestyle

* update unit tests, refactoring

* ngraph codestyle

* refactoring, docs, new unit tests

* Resolve review remarks

* rt_attributes likeapproach in EvaluationContext, codestyle

* fix build and unit tests

* resolve review comments

* resolve review comments

* codestyle

* export public API
2021-05-17 16:57:04 +03:00