Commit Graph

5070 Commits

Author SHA1 Message Date
Anastasia Kuporosova
799be77e33
[Python API] Move samples and docs to the new directory (#7851)
* [Python API] Move samples and docs to the new directory

* move samples to the new directory

* try to fix build and pychecks

* fix links

* fix pychecks

* fix cmake

* fix cpack installation

* Update inference-engine/ie_bridges/python/CMakeLists.txt

Co-authored-by: Sergey Lyubimtsev <sergey.lyubimtsev@intel.com>

Co-authored-by: Sergey Lyubimtsev <sergey.lyubimtsev@intel.com>
2021-10-14 14:49:35 +03:00
Ilya Churaev
eb838d5699
Cleanup Core API added common header (#7994) 2021-10-14 12:58:43 +03:00
Ilya Lavrenov
d2a671b3cd
FEM test (#7899) 2021-10-14 12:38:42 +03:00
Anastasia Kuporosova
21fba21667
[Python API] remove requirements installation to common python (#7986) 2021-10-14 12:36:22 +03:00
Jade Cho
d4820b1bc7
[GPU] Fix a bug of remove redundant reorder pass (#7995)
+ Avoid dangling node exception
2021-10-14 11:59:10 +03:00
Anton Pankratv
5b176f28cc
Added remote objects type check (#7606) 2021-10-14 11:32:19 +03:00
Roman Kazantsev
1752298e17
Merge TensorFlow Frontend Implementation (#7855)
* Migrate POC for TensorFlow frontend

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

* Refactor InputModelTensorFlow API

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

* Repack POC to official API

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

* Remove tensorflow API from public include

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

* Make TF frontend work from MO and clean-up code

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

* Apply codestyle

* Fix win biuld

* Fix Linux build

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

* Implement Place class

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

* Determine outputs from graph

* Implement all Place classes

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

* Make small clean-up

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

* Apply code-style corrections

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

* Determine cut nodes

* Apply codestyle

* Rework to use places

* Fix conversion issue

* Fix build

* Fix conversion

* Small fixes

* Add test for tf frontend

* Add tests

* Implement partial conversion

* Use dynamic type in TFFrameworkNode

* Fix build on Linux

* Implement InputModelTF class

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

* Fix code by replacing InputModelTensorFlow to InputModelTF

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

* Fix to pass getPlaceByTensorName test

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

* Refactor and clean the code

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

* Finalize refactoring code

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

* Support freezing inputs

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

* Add support for pruning input ports as new model output

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

* Apply code-style fixes

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

* move op convertors to separate files, refactoring

* openvino codestyle

* openvino codestyle

* fix crash of layer tests

* fix missprint

* Implement TensorFlow NodeContext and DecoderTFProto classes

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

* Switch to new NodeContext

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

* Remove ngraph_builder class and node_context_impl class

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

* Move decoder/graph_iterator to separate files and remove old files

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

* Document Decoder, GraphIterator, and NodeContext classes

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

* Apply code style

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

* Remove empty file graph_iterator_proto.cpp and redundant comments

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

* Use base class for GraphIterator in model class and correct exception class

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

* Use ends_with from util library

* Remain only InputModelTF constructor with GraphIterator and adopt other code

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

* Correct code after merge

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

* Apply code style

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

* Fix code based on feedback: delete extra namespace usage, etc.

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

* Make legacy TF frontend default in MO and avoid reading tf models from ReadNetwork

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

* Fix build issue with FrameworkNode after upstream merge

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

* Correct frontend name in test and clean the code

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

* refactoring of tf FrontEnd: rename namespaces, delete default opset

* codestyle

* fix e2e tests

* change namespaces of external classes

* resolve review comment

* codestyle

* Clean useless comments and fix tests

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

* Add copyright for proto files

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

* Make op translators a part of FrontEndTF

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

* Align CMakeLists.txt file with other frontends

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

* Add job_pool into CMakeLists.txt for tensorflow tests

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

* Remove cout and WA in ie_network_reader.cpp

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

* Correct DecoderBase and FrontEndTF methods, clean the code from if 0, utility.hpp, ngraph_conversions.hpp

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

* Clean operation translator code and remove empty implementation

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

* Extend cmake template files with tensorflow frontend

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

* Apply code-style

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

* Fix build issues on MacOS and apply review feedback

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

* Remove ConstantFolding pass, add destructors for DecoderBase, GraphIterator, and fix Win build

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

* Fix Windows build issue

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

* Apply code-style fix

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

* Fix issues with code style: remove virtual keyword, OpMap removal

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

* Resolve review remarks

* Resolve review remarks

* codestyle

* resolve review remarks

* fix copyright

* resolve review comments

Co-authored-by: Maxim Vafin <maxim.vafin@intel.com>
Co-authored-by: Ivan Tikhonov <ivan.tikhonov@intel.com>
2021-10-14 10:36:10 +03:00
Wilson Seok
a8f0109584
Migrate ngraph backend test/activations (#7973)
* Remove fp16 of Convert layer test from skip_tests.config.cpp as it works now

* update repo

* create new PR from PR7849

* remove backend tests of activation operations
2021-10-14 09:38:30 +03:00
Jade Cho
595222e9c6
[GPU] Merge minor updates. (#7975)
+ Prevent to fuse PRelu if convolution is onednn impl.
+ Prevent to remove input reorder if onednn conv converts format from bfyx to b_fs_yx_fsv32.
+ Add a value to optimal lws values for eltwise kernel selector.
+ Fix a condition of remove redundant reorder. (try_fuse_reorder_bfyx_to_fsv32)
2021-10-14 14:06:05 +09:00
Ilya Churaev
594da7e99d
Fixed export of AttributeAdapter for broadcast spec (#7990) 2021-10-14 07:46:47 +03:00
Efode, Irina
1393c9c805 Remove old dynamism 2021-10-14 01:34:14 +03:00
Efode, Irina
fadf43ecb7 Eltwise 2021-10-14 01:27:24 +03:00
Efode, Irina
49633d43c6 Adopt eltwise 2021-10-14 00:52:41 +03:00
Alexey Lebedev
db1eadac26
[PYTHON API] Tensor api for python (#7881)
* Bind ov Tensor

* Fix code style

* Fix code style

* Parse dtype for np.array in one constructor

* move dtypes map to common

* fix test

* remove empty constructor

* Add new constructor with numpy parameters

* pass numpy literal in constuctor

* Add comments about future removal

* fix code style

* add py::arg

* Add constructors

* add test

* add roi constructor

* Add test

* Add test

* Add test

* Fix code style

* Fix code style

* use np.all() in tests

* Fix strides

* Add test

Co-authored-by: Anastasia Kuporosova <anastasia.kuporosova@intel.com>
2021-10-14 00:41:49 +03:00
Efode, Irina
bb2b6e2f76 fix softmax 2021-10-13 23:49:28 +03:00
Efode, Irina
77fceb6478 Remove extra 2021-10-13 22:04:29 +03:00
Nikolay Shchegolev
0ed1c24cd2
[CPU] If-8 operation implementation. (#7253) 2021-10-13 20:45:24 +03:00
Efode, Irina
568116859a Merge remote-tracking branch 'upstream/master' into layer_test_common 2021-10-13 20:19:58 +03:00
Efode, Irina
707d549ce8 Add configure model 2021-10-13 20:19:43 +03:00
Ivan Tikhonov
7b1a418bf4
MakeStateful transformation (#7417)
* ReplaceInOutWithMemory transformation in ngraph

* add unit tests

* add ReplaceInputsOutputsWithMemory transformation in python

* update codestyle

* rename the transformation

* fix codestyle

* add Dynamic shapes check in the transformation and unit test

* fix codestyle

* rename files

* fix python API

* fix codestyle

* fix codestyle

* update python API

* fix codestyle

* fix build

* codestyle

* fix unit test

* fix RTTI declaration

* Apply suggestions from code review

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

* review comments

* openvino codestyle

* change the name of Variable in the transformation

* fix build

* delete MakeStateful transformation from ie_transformations

* Resolve review comments

* codestyle

* fix missprint, codestyle

* delete unused variable

Co-authored-by: Gleb Kazantaev <gleb.nnstu@gmail.com>
2021-10-13 19:02:42 +03:00
Svetlana Dolinina
fd97a62263
add selectv2 extractor mapped selectv2 to select (#7847)
* add selectv2 extractor mapped selectv2 to select (broadcast already implemented in select transformations/implementations)

* added SelectV2 to supported layers list
2021-10-13 14:53:15 +03:00
Efode, Irina
d09dc07a3f Fix cpuFuncTests 2021-10-13 14:33:14 +03:00
Victor Kuznetsov
9e79f997e4
[Memory tests] Add timeout to proc_exec (#7942)
* add timeout to proc_exec

* add framework field for db

* upd db fields name
2021-10-13 14:25:44 +03:00
Elizaveta Lobanova
b746c734f8
[GNA] More precized calculation of Log pwl and pwl with sf < 1 (#7884)
* [GNA] More precized calculation of Log pwl and pwl with sf < 1

* [GNA] Added tests

* [GNA] Types correction

* [GNA] Added comment for absolute threshold calculation in the test
2021-10-13 14:14:52 +03:00
Ilya Churaev
02f3a175d0
Fixed build of RTInfoSerialization tests (#7978) 2021-10-13 13:50:30 +03:00
Elizaveta Lobanova
917a29255e
[GNA] Fixes for convolution handling (#7861)
* [GNA] Fixed errors with convolution handling

* [GNA] Tests added

* [GNA] Fixed the problem with Convolution Filter

* [GNA] Allow scale factors near 0, comments apply
2021-10-13 13:08:24 +03:00
Taylor Yeonbok Lee
a93a67da78
[GPU] Fix issue of prepare_output (#7783) 2021-10-13 12:50:43 +03:00
Ilya Churaev
50b0dc1182
Deprecated old evaluate methods (#7937)
* Deprecated old evaluate methods

* Suppress node

* Fixed some warnings

* Fixed documentation and warnings

* Fixed some warnings

* Disable some warnings
2021-10-13 12:47:14 +03:00
Vladimir Paramuzov
efcdaac4a6
[GPU] Added a couple of supported SIMD size checks (#7919) 2021-10-13 12:22:08 +03:00
Ilya Churaev
82f8f19d11
Moved serialization pass to public (#7862)
* Moved serialization pass to public

* Fixed unit tests

* Fixed code style

* Fixed tests

* Fix link

* Fix kmb

* Fixed build

* Removed InferenceEngine::Core from ngraph tests

* Add missed models

* Restore IR weights

* Fixed code style
2021-10-13 11:17:53 +03:00
Victor Kuznetsov
6d9a7a108e
Stress, Memory tests update to comply with new OMZ tools layout (#7886)
* work with omz: change hardcoded paths for memory_tests, fix paths for memcheck get_testdata.py script

* change paths to omz tools

* revert mo changes

* remove mo from arguments

* remove extra var from cmd string

* remove is_db_used check

* add timeout to proc_exec

* merge master
2021-10-13 10:42:00 +03:00
Mateusz Tabaka
db527fff41
Fix performance on resnet50 quantized models (#7670)
* Fix performance on resnet50 quantized models

LP transformations won't work on the model unless the last 4 inputs to FakeQuantize
are constants. In order to meet that requirement, we need to perform constant folding
for those inputs in QuantizeLinear ONNX operator.

Ticket: 65375

* fix "Cannot find blob with name: y" exception during onnx_model_quant_conv_linear

* remove linking with onnx_ngraph_frontend

* fix exclude path
2021-10-13 10:18:37 +03:00
Ilya Churaev
0d020974f9
Removed commonTestUtils from ngraph tests (#7956)
* Removed commonTestUtils from ngraph tests

* Fixed build
2021-10-13 09:56:12 +03:00
Ilya Churaev
972524f1cc
Use runtime::Tensor instead of Blob in read_model (#7951)
* Use runtime::Tensor instead of Blob in read_model

* Fixed the memory ownership
2021-10-13 09:13:11 +03:00
Min, Byungil
d23ec24fd8
[GPU] Onednn integration for handling reorders (#7764)
Signed-off-by: Min, Byungil <byungil.min@intel.com>
2021-10-13 15:06:53 +09:00
Kelvin Choi
e72200dbe1
Allow normalize included model to use fsv16 (#7906)
(cherry picked from commit 1880d65158)
2021-10-13 12:38:00 +09:00
Andrew Kwangwoong Park
4e2cc3e370
[GPU] Add GPU plugin metric to get statistics of GPU memory allocated by engine (#7758) 2021-10-13 05:40:51 +03:00
Vladimir Dudnik
9e1231ac8d
limit supported formats by MNIST database only, added lenet.labels file (#7947)
* limit supported formats by NIST database only, added lenet.labels file

* shortened line

* apply code style fix
2021-10-12 18:17:58 +03:00
Maxim Vafin
25c2d5c6c4
[MO] Fix axes in FusedBatchNorm -> MVN transformation (#7679) (#7913) 2021-10-12 16:47:29 +03:00
Ilya Churaev
c323775f2c
Add input/output to ov ExecNetwork (#7650)
* Added template for new tests

* Fixed simple test

* Added output tests

* Removed get_result/get_parameter methods

* Fixed documentation

* Fixed functional tests

* Fixed caching tests

* Added new test for import

* Added new tests

* Fixed code style

* Fixed comments

* Fixed tests

* Fixed code style

* Save version in the function
Fixed pre-post processing

* Change IR version

* Fixed documentation

* Fixed MockICore

* HETERO almost works

* Fixed tests and core logic

* Disabled some CPU tests

* Tmp disable fp16 for template

* Fixed tests and clang-format

* Small fixes

* Fix

* Simplified code in templatePlugin

* Added IE precisions checks

* Simplified hetero plugin

* Added ieImportExportedFunction test

* Added MYRIAD test

* Skip tests directly in tests

* More correct filter for CPU

* Fixed CPU tests

* Template plugin tests

* Some comments

* FIxed clanf-format

* Removed myriad tests

* Fixed comment

* small changes

* Fixed condition

* Fixed unit tests

* clang-format

* Comment

* Hetero plugin update

* Fixed tests

* Moved re-create under ig

* Fixed clang-format

* Fixed some caching_tests

* Disable some caching_tests

* Fixed setLayout with dynamic case

* Fixed clang-format

* Disable execution graph

* Disabled one more CPU test

* Simplified regex

* Disabled GNA tests

Co-authored-by: y <ilya.lavrenov@intel.com>
2021-10-12 13:11:25 +03:00
Mateusz Bencer
29eaa0af60
Handle PlaceOpONNX and PlaceOutputEdgeONNX by extract_subgraph (#7908) 2021-10-12 11:54:41 +02:00
Sergey Lyubimtsev
a10f40d6d4
Set scikit-image~=0.18.3 for python versions >=3.7 (#7910)
* Set scikit-image~=0.18.3 for python versions >=3.7

* Set scikit-image>=0.17.2 (0.17.2 is not available for >=3.7)
2021-10-12 11:49:42 +03:00
Vladimir Dudnik
1ba4f4caf6
print hint option (#7876) 2021-10-12 11:48:04 +03:00
Vladimir Dudnik
d790204575
fix typos in README.md (#7887) 2021-10-12 00:45:31 +03:00
Efode, Irina
4df40629b0 fix size of expected 2021-10-12 00:09:10 +03:00
Efode, Irina
4e32737bc2 try adopt softmax 2021-10-11 21:20:58 +03:00
Efode, Irina
c66d8626e4 Init 2021-10-11 18:23:26 +03:00
Vladislav Volkov
6d322722c6
[CPU] Fix for possible uninitialized variable in MKLDNNInputNode constructor (#7882) 2021-10-11 09:59:04 +03:00
Gleb Kazantaev
b80b87b2d9
Split Transformations between MOC and Common pipelines (#7580)
* Split Transformations between MOC and Common pipelines

* Test

* Split passes

* Fix int8 issue

* Small refactoring
2021-10-08 19:07:41 +03:00
Maxim Shevtsov
492fdadba9
Resetting the GPU hints baseline to let the validation switch the perf tetsing to these (and see no delta first) (#7868) 2021-10-08 17:26:11 +03:00