Commit Graph

5794 Commits

Author SHA1 Message Date
Anton Chetverikov
e9a15b70f5
[MO] Update Select shape inference function to support dynamic shapes (#8892)
* Update Select shape inference function to support dynamic shapes

* Update unit test for Select shape inference
2021-12-01 05:00:55 +03:00
Anastasia Kuporosova
184b602a49
[Python API] Remove DescriptorTensor constructor (#8903) 2021-12-01 02:09:25 +03:00
Gorokhov Dmitriy
263c4d7b02
[CPU][Tests] Remove reshape_1d_ops_test cpp (#8942) 2021-12-01 00:53:44 +03:00
Irina Efode
1cd8156d3d
[IE TEMPLATE] Fix operation set in QueryNetwork (#8824)
* [IE TEMPLATE] Fix opeartion set in QueryNetwork

* Apply review comments

* Prepare for review

* Return extra removed

* code style

* Update template_plugin.cpp

* Code style
2021-11-30 23:28:59 +03:00
Mateusz Bencer
461d6e8a1d
Added RemoveConcatZeroDimInput and RemoveMultiSubGraphOpDanglingParams transformations (#8035)
* fix expand_onnx_functions

* refactor + unit test

* fixed function in function case

* fixed expand_onnx_functions

* fixed default value of shape in ValueInfo

* enable xpass model

* changed MergeFrom to Swap

* added xfail with missing test data

* added more unit tests

* styles applied

* used std::rotate, review remarks

* removed debug code

* after offline discussion remarks

* fix checking input/output names on Windows

* names comparator refactor

* replace regex with custom comparison

* review remarks

* added RemoveConcatZeroDimInput transformation

* added RemoveLoopDanglingParameters transformation

* chage place of passes during replace

* missing comment

* code refactor + unit tests

* remove unused headers

* used std::any_of in RemoveConcatZeroDimInput

* changed headers and namespaces to new ov convention

* used std::any_of in RemoveConcatZeroDimInput

* RemoveLoopDanglingParameters refactored

* changed names to RemoveMultiSubGraphOpDanglingParams

* handling multi-body cases

* Handling If case during RemoveMultiSubGraphOpDanglingParams

* comments and names refactor

* More tests for If and TensorIterator

* handle removing dagling param from one body and update all descriptors

* fixed test

* revert if change

* moved RemoveConcatZeroDimInput and RemoveMultiSubGraphOpDanglingParams to NopElimantion

* return false if node is not replaced

* added validate_nodes_and_infer_types

* Revert "moved RemoveConcatZeroDimInput and RemoveMultiSubGraphOpDanglingParams to NopElimantion" + remarks

* review remarks

* review remarks

* fixed subgraph rtti

* adjust passes to new structure
2021-11-30 23:19:26 +03:00
Ilya Lavrenov
1b0ff2979c
Small fixes in extensions docs (#8934) 2021-11-30 22:13:49 +03:00
Aleksandr Pertovsky
13f3f351b7
[CPU] Add MoveEltwiseUpThroughDataMov (#7488) 2021-11-30 19:41:14 +03:00
myshevts
43266c585e improved remote-blobs tests 2021-11-30 19:09:05 +03:00
myshevts
515a0f7591 clang 2021-11-30 17:42:53 +03:00
myshevts
e34131b83f fixed the ieUnitTests with adding CreateContext stub to the MockICore 2021-11-30 17:39:19 +03:00
myshevts
ceedfb8f53 CreateContext and LoadNEtwork with context for the Auto-Batching plus remote-blobs tests 2021-11-30 17:26:18 +03:00
Vladimir Paramuzov
9b97619687
[GPU] Move plugin to new source dir (#8890) 2021-11-30 17:26:09 +03:00
Alexey Varyzgin
9b6b184e5e
[CPU] Native 1D models support (#8168) 2021-11-30 15:30:53 +03:00
Andrei Kochin
d9acc137f8
[MO] simple change in ie bindings to avoid unnecessary warning (#8847) 2021-11-30 15:03:23 +03:00
Ilya Churaev
e07cef0191
Fixed coverage typo (#8889)
* Fixed coverage typo

* Renamed legacy

* Fixed names
2021-11-30 13:10:19 +03:00
Mikhail Nosov
84a16513df
Layout::find_permutation - support of dynamic layouts (#8766)
Covered case for 'trivial convert' where no permutation is needed
It is needed for Model Optimizer for logic which will guess model's layout, like "?c??"
2021-11-30 12:40:38 +03:00
Mikhail Nosov
e2172cd38a
[OV2.0] Preprocessing api cleanup (#8898)
* Removed 'inline' Preprocessing API

Even though this API provided a way to specify all pre/post-processing in one line - it was considered inconvinient
With 'getters' API preprocessing code looks more clear for user, so old' inline' API is removed

* Fix pyopenvino build issues

* Update after merged PR#8717
2021-11-30 12:30:13 +03:00
Anastasia Kuporosova
f6df0a9c13
[Python API] quick fix of packaging (#8870)
* [Python API] quick fix of packaging

* update tests

* fix setup.py

* small fix

* small fixes according to comments

* skip mo frontend tests
2021-11-30 12:28:34 +03:00
myshevts
1e461a3b47 brushed names a bit 2021-11-30 12:22:48 +03:00
myshevts
b5480373bb remote blobs tests for the auto-batching (old API) 2021-11-30 12:13:48 +03:00
Mikhail Ryzhov
cccec6942e
GNA Input/Output buffers reusage (#7332)
* Init implementation

# Conflicts:
#	thirdparty/ade

* Switched to shared class

* Refactoring memory commit()

* Added unit tests

* Fixed output order

* Fixed input order

* Fixed split case

* fixed compiling issue in debug mode

* Enabled compact mode by default

* Fixed default order for inputs and outputs

* Changed unit test

* Enabled compact mode bye default

* reverted compac_mode flag order
2021-11-30 10:36:54 +03:00
Vladislav Golubev
caa7d853b3
[CPU] Security fixes (#8783) 2021-11-29 22:22:13 +03:00
Maxim Vafin
e4b5c54006
Automatically detect --disable_nhwc_to_nchw option in MO (#8450)
Clean code

Fix Result runtime info

Fix documentation

Fix documentation

Apply suggestions from code review

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

Update docs/MO_DG/prepare_model/customize_model_optimizer/Customize_Model_Optimizer.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

Apply review feedback

Apply review feedback

Apply review feedback
2021-11-29 19:58:43 +03:00
Andrey Noskov
d24a48901e
[GNA] add MultipleActivationsTest (#7504)
* add MultipleActivationsTest

* renamed files, changed structure

* [GNA] switched to single layer tests

* [GNA] fix review comments

* [GNA] Test changes
   -model structure
   -test name
   -moved to subgraph tests

* Deleted commented code

* Renamed test
2021-11-29 17:44:46 +03:00
Nikolay Shchegolev
a113c823a7
[CPU] Slice-8 operation implementation. (#7521) 2021-11-29 17:28:12 +03:00
Andrey Noskov
2022b70d8b
[GNA] added test multi_input_scale (#7939)
* [GNA] added test multi_input_scale

* [GNA] fixed test params after review

* Changed scale factors
2021-11-29 16:16:55 +03:00
myshevts
d17b4acbf7 Merge remote-tracking branch 'github/master' into auto-batch-master
# Conflicts:
#	inference-engine/src/CMakeLists.txt
2021-11-29 16:08:31 +03:00
myshevts
a32d006465 removing home-baked MAX_BATCH_SZIE and swicthing to the official impl by GPU team 2021-11-29 15:59:33 +03:00
myshevts
e88f2e28f2 brushing, disabling CPU's HETERO tests until planned activity for 22.2 2021-11-29 15:52:11 +03:00
Svetlana Dolinina
980ad59ac4
Correct ReverseV2ToReverseSequence transformation (#8120)
* add subgraph instead of constant with fixed shape to allow model have undefined batch

* updated transformation (not checked yet)

* changed ReverseV2ToReverseSequence to support dynamic shapes/reshape;
added transformation to reverse_tensor_iterator to support new subgraph got from ReverseV2ToReverseSequence

* remove changes that should not be on this branch

* added tests;
fixed old transformation

* added delete of reversesequences to avoid run of transformation twice

* fixed pattern check for case with dynamic value for input of reversesequence

* Revert "fixed pattern check for case with dynamic value for input of reversesequence"

This reverts commit 0c04164e

* Revert "added delete of reversesequences to avoid run of transformation twice"

This reverts commit fcb7de9c

* reversed changes in reverse_tensorr_iterator for Squeeze case;
update reverse_tensor_iterator with shapeof subgraph
added permutations for attributes to pass layer test

* minor fix for dynamic shape

* updated test;
fixed backward compatibility in reverse_tensor_iterator transformation

* revew comments fixed:
added comments;
refactoring done;
fixed framework name saving for rank = 1

* minor review fixes

* small fix
2021-11-29 15:29:00 +03:00
Vitaliy Urusovskij
c084f8aa42
Clean up evaluate of boolean (#8843)
Remove  evaluate of `boolean` for ops
inherited from `UnaryElementwiseArithmetic`
2021-11-29 15:24:17 +03:00
Ilya Churaev
7678ab2b18
Move hetero plugin (#8872) 2021-11-29 14:05:08 +03:00
Tingqian Li
b0da652e46
[CPU] Native dynamic shapes support in the ReorgYolo node (#8642) 2021-11-29 13:31:23 +03:00
Edward Shogulin
e2ed99a93e
[CPU] Dynamism support for EmbeddingSegmentsSum & EmbeddingBagOffsetSum & EmbeddingBagPackedSum nodes (#8387) 2021-11-29 12:28:16 +03:00
Maxim Andronov
c8d5b20c95
[CPU] Interpolate dynamism support (#8717) 2021-11-29 12:16:14 +03:00
Vladislav Golubev
63822e0bdb
ROIAlign cpu tests disabled (#8887) 2021-11-29 12:03:21 +03:00
Mateusz Tabaka
541c8721c7
[GPU] fix Constant handling when it has multiple users and one if it … (#8832)
* [GPU] fix Constant handling when it has multiple users and one if it is bprop conv

When constant is connected to ConvolutionBackpropData or GroupConvolutionBackpropData weights,
we need to swap 'O' and 'I' dimensions. That can be problematic if the same constant
is also connected to other nodes - since after swap - the dimensions may not match
the other node's dimensions.
To handle that, we can create a copy of that constant, replace backprop convolution weights
with that copy and create additional (to the original constant) cldnn::data primitive with swapped dimensions.

* fix windows build

* address review comments
2021-11-29 11:53:08 +03:00
Kelvin Choi
2d996c1354
[GPU] Update GatherND primitive (#8813)
* Cldnn output memory size at GatherND functional-test is aligned with TensorDesc of output blob
* Add param for rank of input data
* Update unittests to add rank of input data
* Update gpu fusing tests
2021-11-29 11:51:19 +03:00
Yuan Hu
d50f20b977
Add log utils for Auto plugin (#8309)
* add log utils

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

* optimize

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

* remove env support in log util

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

* add IE LOG CONFIG support in auto model

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

* Add LOG

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

* fix compile error

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

* add test

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

* fix set config error

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

* fix code error

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

* add more log and support no arguments format string

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

* fix some review issue

change name from HDEBUG to LOG_DEBUG and so on
remove redundance code
move log config into log util

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

* modify log hpp name

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

* try to fix macos support issue

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

* enable env AUTO_LOG_LEVEL

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

* add comment for WaitActualNetworkReady()

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

* add error log when all device failed

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

* fix rebase issue

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

* fix add log in code cause auto_select_device_failed_test failed issue

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

* add test code

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

* change the Name from AUOT_LOG_LEVEL to OPENVINO_LOG_LEVEL

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

* use just GLOB_SOURCES in cmake

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

* add singleton test

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

* try to fix macos compile issue

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

* move printing config info to async loading

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

* keep CheckConfig as origin code

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

* fix compile issue caused by icore->GetMetric API change

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

* use confMutex instead of a new mutex

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

* try to fix windows compile issue

Signed-off-by: Hu, Yuan2 <yuan2.hu@intel.com>
2021-11-29 16:41:48 +08:00
Elizaveta Lobanova
b10409da5b
[GNA] Support NHWC convolutions with 3d transposes (#8599)
* [GNA] Support NHWC convolutions with 3d transposes

* [GNA] Removed calculation of permutations for unsupported layouts

* [GNA] Added comments
2021-11-29 10:55:31 +03:00
Chen Xu
f38fa4d845
[CPU] Reduce node dynamism support + perf optimizations (#8555)
* Reduce node feature extension

* Reduce node dynamism support
2021-11-29 10:28:11 +03:00
Ilya Churaev
a148e126b8
Fixed coverage paths (#8873) 2021-11-29 09:38:06 +03:00
Bo Liu
25b2131d21
priorbox_8 ngraph and inference-engine parts (#8114)
* ngraph and inference-engine parts

* add priorbox_8 python api

* remove 'PriorBoxAttrs' and 'PriorBox' from outside of opset namespace

* add common nGraph transformation 'ConvertPriorBox8To0'

* remove redundant alias of PriorBox::Attributes

* use new Tensor api for evaluate method

* change v0operation back to the former api, pass Attribute structure to the reference implement

* use new Tensor api for constant_fold

* add support for dynamic shapes of constant_fold new Tensor api

* fix Node 'create temp tensors' issue when shape==0'

* revert to 'HostTensor' api for PriorBox8

* Apply suggestions from code review and 'template_plugin reference' testcase replaced 'backend INTERPRETER' testcase

* transformation part Apply suggestions from code review

* python init file updated for opset8

* keep backward compatibility to fix CI issue

* rebase to new structure of OpenVINO repo

* revert 'thirdparty/onednn_gpu' mistake changes
2021-11-29 07:28:49 +03:00
Ilya Churaev
07651aa5c0
Fixed some inference-engine paths (#8878) 2021-11-29 07:17:36 +03:00
Sergey Shlyapnikov
497aaf9b46
[GPU] Relax batch size limitaions for DO GPU implementation usage for some of Gen12HP dGPUs (#8801) 2021-11-29 11:41:39 +09:00
Ilya Churaev
a09f4ded79
Fixed codeowners (#8875) 2021-11-29 01:15:56 +03:00
Ilya Lavrenov
c02fe4b813
Static OpenVINO frontends (#8868)
* Static OpenVINO frontends

* ONNX tests with shared extension CustomOpUser_ONNXImporter

* Resolved issues with ONNX's NCC style check

* Reverted openvino => ngraph for frontend includes install

* Try to fix ONNX / Protobuf

* Try to fix CI

* Try

* Fixed cmake stage with BUILD_SHARED_LIBS

* Fixed export for linkable frontends

* Fixed warnings on Linux

* Fixed after ngraph => src
2021-11-28 21:36:24 +03:00
Mang Guo
cf3c9ae04b
[CPU]Adaptive pooling dynamic shape support (#8703) 2021-11-28 17:45:29 +03:00
Chenhu Wang
7edcf47454
[CPU] CTCLoss dynamism support (#8777) 2021-11-28 17:44:07 +03:00
Ilya Churaev
77f6a0076b
Move core components (#8869)
* Moved openvino to src

* Moved ngraph and frontends to src

* Fixed cmake generation

* Moved inference_engine libs to src

* Moved C API to src

* Fixed CMake generation

* Moved readers to tests, snippets and preprocessing to common

* Fixed CMake

* Moved transformations and lp_transformations

* Fixed transformations cmake

* Fixed build

* Fixed unit-tests and ci paths

* Fixed docs

* Fixed C API build

* Try to fix static build

* More clear order

* Renamed inference_engine_legacy_api to legacy

* Fixed some cmake scripts

* Fixed path to legacy

* Fixed Myriad plugin

* Fixed v7 reader

* Fixed plugin.hpp

* Fixed developer config

* Fixed ie_parallel
2021-11-27 18:53:12 +03:00