Commit Graph

966 Commits

Author SHA1 Message Date
Ilya Lavrenov
51f97c4a34 Fixed issue #41619 (#2827)
* Fixed issue #41619

* More descriptive error message
2020-10-29 12:50:46 +03:00
Ilya Lavrenov
f1cf207663 Split java CMakeLists.txt into several ones (#2734)
* Split java CMakeLists.txt into several ones

* Replaced openjdk to OpenJDK

* Build Java library before tests
2020-10-29 12:48:03 +03:00
Konstantin Satunin
5493dfe5c8 Fix for collision of #1932 and #2731 (#2890) 2020-10-29 12:37:55 +03:00
Maxim Andronov
fdbfab8546 [CPU] Add tests for SetBlob + I64 (#2402) 2020-10-29 11:34:29 +03:00
Ilya Lavrenov
901f1e0436 Removed InferenceEngine dependency on Legacy library (#1932)
* Split libraries

* Small fixes

* Fixes after self-review

* Minimized legacy usage

* Fixed IE_CPU.onnx_prior_box

* Fixed linkage

* Temp WA for private plugins

* removed comments

* Reverted OneHot changes back
2020-10-29 10:54:57 +03:00
Jedrzej Hajduczenia
c95d8e242d [IE CLDNN] Fix accuracy bug in fsv16 imad conv + other minor fixes (#2876) 2020-10-29 09:33:05 +03:00
Gorokhov Dmitriy
4d84d7ed1c [Transformations] Hswish fusion to be called before Hsigmoid fusion (#2845) 2020-10-29 09:07:51 +03:00
Zoran Zomborat
4021e144b5 [IE] Add RTTI macro to ReshapeFullyConnectedFusion ngrap pass (#2837) 2020-10-29 07:33:55 +03:00
Evgenya Stepyreva
347e1206d5 setBatchSize: getting rid of ConstantFolding (#2842)
* setBatchSize: getting rid of setBatchSize

* Trigger CI

* Feedback adressed

* Trigger CI

* f -> specialized_function
2020-10-28 22:49:12 +03:00
Evgenya Stepyreva
13a9ba6a2b [ SSR ] Transpose->MatMul (#2525)
* [ SSR ] Reshape->Softmax->Reshape

* Call DepthToSpaceFusion during SmartReshape

* rtti

* remove softmax wa
2020-10-28 20:06:42 +03:00
Bartosz Sochacki
9b4f499930 Extended test infrastructure to call per plugin configure function before running a test. The function allows to pass plugin specific configuration (#2731) 2020-10-28 14:57:46 +03:00
Vladislav Vinogradov
50645befb7 [IE][CMAKE] Fix build issues with custom configuration (#2851)
* FASTER build enabled
* MYRIAD plugin disabled
2020-10-28 12:20:26 +03:00
Irina Efode
1689634574 [IE TESTS][IE MKLDNN] Disable CtcLoss SLT due to sporadic failures (#2852) 2020-10-28 12:00:11 +03:00
Gladilov, Gleb
18f7e4f4f0 [IE][VPU]: Improves myriad plugin API (#2816)
LoadNetwork takes network argument by constant reference.
Myriad plugin implementation applies transformations to
given network in order to get compiled model.
Transformations take network argument by non-constant
reference, so at some point of time network copy must be
acquired. ICNNNetwork is neither copyable nor movable, so
the only way to get network copy is using special utility
returning std::shared_ptr.

Myriad plugin does not expose any ownership strategy,
so prefers to take network argument by simple reference.
Plugin also requires nGraph -> CNN conversion during
LoadNetwork implementation. Conversion utilities returns
std::shared_ptr, which makes plugin to use workaround for
lifetime of converted object (to have 2 "pointers" to
network: raw pointer to input network and smart pointer to
converted network). Such workarounds make code more
error-prone, because using wrong pointer to semantically
the same object may lead to unexpected results.

To overcome these issues API has been changed in a way to
make interfaces more clear (do not expose ownership strategy
or mutability) and get rid of unnecessary workarounds.

Signed-off-by: Gladilov, Gleb <gleb.gladilov@intel.com>
2020-10-28 11:14:14 +03:00
Gleb Kazantaev
91afa14901 Add dynamic shape checks for legacy transformations (#2783)
* Added dynamic shape checks for ConvertInterpolate pass

* Added dynamic checks for ConvertLRNToLegacy pass

* Added dynamic checks for ConvertMatMul* pass

* Added dynamic checks for ConvertPadToLegacy pass

* Updated TileIE; added dynamic checks to ConvertTileToLegacy pass

* Added dynamic checks to FCBiasFusion pass

* Added dynamic checks to Reshape1DOps pass

* Added dynamic checks to ReshapeFCFusion pass

* Added dynamic checks to ReshapeFC pass

* Updaed Reshape1DConvolution pattern
2020-10-28 10:36:16 +03:00
Vladimir Paramuzov
c7661078d9 [IE CLDNN] Removed unused DO gpu impl (#2809) 2020-10-28 09:24:22 +03:00
Gorokhov Dmitriy
abb8817cf6 [CPU] Generic JIT Eltwise implementation (#1464) 2020-10-28 09:16:28 +03:00
Mateusz Tabaka
186e00fa2a Remove obsoleted v0::Product op (#2860) 2020-10-28 07:12:52 +03:00
Maksim Doronin
07fbf93a0d [IE][VPU]: Implement HSwish layer with tests (#2775)
* Implement HSwish layer with tests
* Disable HSwish decomposition by a predicate
* Update vpu firmware
2020-10-28 00:38:10 +03:00
Andrey Kamaev
a6520995fe MSVC warnings fix (#2620)
* Fix MSVC build warnings in Ngraph

* Fix MSVC build warnings in transformations library

* Fix MSVC build warnings in core,legacy,preprocessing

* Fix MSVC build warnings in XLink

* Fix MSVC build warnings in Myriad plugin
2020-10-27 12:24:57 +03:00
Monica-elena Burger
314ec2df72 [IE][VPU]: Config key to disable weights analysis pass (#2714)
* Add config key to disable weights analysis pass in graph transformer
2020-10-27 11:52:18 +03:00
Polina Brzezinskaya
0040d47b00 [IE][VPU]: Bidirectional mode for broadcast on vpu (#2627)
* Support for bidirectional broadcast mode
2020-10-27 11:49:35 +03:00
Roman Lyamin
77365bcb4c [IE CLDNN] Added Round-5 operation (#2838) 2020-10-27 10:56:15 +03:00
Mikhail Ryzhov
dc52ec7880 [Samples] Python: added support of onnx models (#2782)
* [Samples] Python: added support of onnx models

* [Docs] Python: added support of onnx models

Updated documentation
2020-10-27 10:23:25 +03:00
Jozef Daniecki
c6fc247f99 Add nGraph function serialization. (#2579)
* Add nGraph function serialization.

* Turn of execption throwing on failed visitation.

* CNNNetworkNgrapImpl serialize also support fallback to v7 serialization.

* Add error message for legacy IR not implemented case.

* Store tests models in files.

* Add tests with multiple layers.

* Style aligned to IE rules.

* Add visit_attributes to ExecutionNode.

* Layer version XML atribute implementation.

* Fix opset atribute creation for ExecutionGraph. Refactoring.

* Add missing header.

* Move opset collecting to private scope.

* Add missing header.

* Add test wit multiple oututs. Fix found issues: constant name, result
outputs.

* Move serialization to transformation library.

* Add versioning to serialization transformation.

* Add functional tests with ONNX importer path.

* Add nodes unique name checking and correction.

* Add checks for unsuported cases: dynamic shapes & GenericIE node

* General refactoring.

* Add comment describing type name translations.

* Add serialization deterministicity tests.

It's needed to ensure that subsequent calls to serialize() on the same function are giving the same results.

* Serialization in CNNNetworkNGraphImpl::serialize executed via pass::Manager.

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

* NGRAPH_CHECK messages refactored.

* Performance and const correctness refactoring.

* Style formatting applied.

* Code simplifaction.

* Serialize transformation documentation refactoring.

* Changed compare_function() to throw on functions with multiple outputs.

Before this check was implemented with assert which means it was working
only in debug builds. Now it is working also in release build.

* Adjust tests to new compare_functions() behaviour.

* Replace cmakes add_definitions with more modern target_compile_definitions

Co-authored-by: Gleb Kazantaev <gleb.nnstu@gmail.com>
2020-10-27 06:57:48 +03:00
Alexander Peskov
6e5a4714ac Make MVN behaviour deterministic (#2458)
* Change default parallel reduce alg into deternimistic way

Signed-off-by: Alexander Peskov <alexander.peskov@intel.com>

* Introduce ie::parallel_for semantic with group_id parameter

Signed-off-by: Alexander Peskov <alexander.peskov@intel.com>

* [CPU] Make MVN behaviour deterministic

Signed-off-by: Alexander Peskov <alexander.peskov@intel.com>
2020-10-26 21:01:38 +03:00
Evgenya Stepyreva
40a4ae3cfa [SSR] Transformation mimicking oldSetBatchSize logic (#2597)
* [SSR] Transformation mimicking oldSetBatchSize logic

* Self-review

* gkazanta comments adressed

* support for opset1::Proposal and  opset4::Proposal. Use of pattern predicates

* Constant Folding during setBatchSize

* StridedSlice->Squeeze resolver

* SR tests added

* Squeeze->StridedSlice

* Comments

* getting rid of folding

* comment

* sq->ss transformation

* Revert "sq->ss transformation"

This reverts commit 9731b1cf52.

* Revert "comment"

This reverts commit a57b4f863e.

* Revert "getting rid of folding"

This reverts commit 85405dab0a.
2020-10-26 20:51:59 +03:00
Jedrzej Hajduczenia
8884791362 [IE CLDNN] Improve LO rules for expected FQ format (#2790) 2020-10-26 20:36:00 +03:00
Ivan Tikhonov
735c8747b5 Loop operation: IE IR Reader update (#2766)
* ie_ir_reader update, Loop implementation update

* fix ie ir reader
2020-10-26 19:30:14 +03:00
Alexandra Sidorova
de686fce39 [CPU] Added operation HSigmoid-5 (#2005) 2020-10-26 18:42:30 +03:00
Edward Shogulin
5007cba70a [LPT] bfloat enabling fix (#2819) 2020-10-26 16:02:11 +03:00
Mikhail Ryzhov
0267cbd286 Fixed ngraph sample logical errors (#2600)
* Fixed ngrapth sample logical errors

- added batch size, because sample accepts several images
- set label file as optional
2020-10-26 15:36:49 +03:00
Ilya Lavrenov
166ab89b95 Reorganize LPT: (#2803)
- inference_engine_lp_transformations keep ngraph LPT
- inference_engine_lp_transformations_legacy keep old CNNLayer based LPT
2020-10-26 14:10:17 +03:00
Patryk Elszkowski
5036b12544 enable reference implementation in CTCGreedyDecoder single layer test (#2680)
* enable reference implementation for CTCGreedyDecoder single layer tests

* update unit test to have blnak_index

* remove merge_repeated disable flag for CPU test because CPU impl always
merge

* add CTCGreedyDecoder single layer tests for CPU

* changes to match xPU implementations

* apply reviewers suggestions

Co-authored-by: Patryk Elszkowski <patryk.elszkowki@intel.com>
2020-10-26 13:34:50 +03:00
Aleksandr Korolev
d34dc7e206 [IE][VPU]: Add runtime precision info in MYRIAD plugin (#2535)
* Add runtime precision info in MYRIAD plugin
2020-10-26 11:32:43 +03:00
Evgeny Latkin
77ba9acada [IE][VPU][Myriad]: Mish layer optimization (#2648)
* Myriad: new firmware version 1426
2020-10-26 10:50:37 +03:00
Vladimir Paramuzov
c722f6a05a [IE CLDNN] Fixed fusing config for fsv16 eltw kernel (#2807) 2020-10-26 09:03:00 +03:00
Tomasz Dołbniak
6c341df85a ONNX models validation tweak and test (#2798)
* Test checking the current ONNX ir_version support

* Model stream rewinding in ONNX reader only

* Fix for CentOS
2020-10-26 06:35:20 +03:00
Mateusz Tabaka
4d2674962d Remove obsoleted v0::Broadcast and BroadcastLike operators (#2779)
* Remove obsoleted v0::Broadcast and BroadcastLike operators

* remove NGRAPH_DEPRECATED marks from autobroadcast functions

* restore NGRAPH_SUPPRESS_DEPRECATED_START in autobroadcast.cpp
2020-10-26 06:32:49 +03:00
Vladimir Paramuzov
980bbd172a [IE CLDNN] Enabled more functional tests and added several fixes into ops implementations (#2763) 2020-10-24 23:38:13 +03:00
Jedrzej Hajduczenia
7bd8391aba [IE CLDNN] Fix narrowing conversion error on VS2017 (#2804) 2020-10-24 00:57:30 +03:00
Alexey Suhov
2087b39cb4 Add OpenCV for CentOS 8 and RHEL 8 to dependencies.cmake (#2806) 2020-10-23 23:58:33 +03:00
Mikhail Ryzhov
dea5f43c9a Added onnx support for C samples (#2747)
* ngraph python sample

This sample demonstrates how to execute an inference using ngraph::Function to create a network
- added sample
- added readme
- added lenet weights

* Added onnx support for C samples

* Revert "ngraph python sample"

This reverts commit 8033292dc3.

* Added onnx support for C samples

Fixed codestyle mistake

* Removed optional code

Co-authored-by: Alexander Zhogov <alexander.zhogov@intel.com>
2020-10-23 21:47:01 +03:00
Vladislav Vinogradov
d846969a1c [IE] Fix UNITY build (#2799) 2020-10-23 19:21:02 +03:00
Gleb Kazantaev
33371ca1ac Added dynamic check for convertFunctionToCNNNetwork functoin (#2797)
* Keep changes

* Added dynamic check for convertFunctionToCNNNetwork

* Fixed test
2020-10-23 18:17:26 +03:00
Anton Chetverikov
c020fd3e7e Remove ExtractImagePatchesToReorgYolo transformation (#2687)
Co-authored-by: Anton Chetverikov <anton.chetverikov@.intel.com>
Co-authored-by: Ilya Churaev <ilya.churaev@intel.com>
2020-10-23 17:32:54 +03:00
Andrew Bakalin
cab7a77cba [IE][VPU][GT][DTS]: Update MyriadPlugin to work with dynamic NMS-5 (#2698)
* [VPU][GT][NGraph] Get rid of DynamicNMS and transformation
* [VPU][NGraph] Update DTS for NMS
* [VPU][NGraph] Update StaticShapeNMS to be inherrited from NMS-5
* [VPU][GT] Update StaticShapeNMS stage to work with updated NGraph op
* [VPU][Tests] Update tests
* [VPU][GT] Fix StaticShapeNMS to be inherited from NonMaxSuppressionIE3
* [VPU][GT] Remove unused NonMaxSuppression
2020-10-23 17:04:36 +03:00
Gleb Kazantaev
c4e0b74fb1 Add dynamic shape checks to nGraph transformations (#2735)
* Added dynamic shape checks for BatchNormDecompositoin pass

* Added dynamic shapes checks for FQTranspose fusion pass

* Added patter::has_static_rank predicate

* Added dynamic shapes checks for BroadcastToTiles pass

* Fixed BN inputs order

* Add dynamic shape checks for DepthToSpace/SpaceToDepth passes

* Added dynamic check for ReduceToPooling pass

* Updated BN transformation

* Fix PR comments

* size_t to int64_t

* Updated reduce to pooling pattern
2020-10-23 15:39:47 +03:00
Alexey Ershov
8c97127aa7 [IE][VPU]: Proposal: Implemented support for optional 2nd output (scores) (#2762)
* Proposal stage: added support for optional 2nd output
* firmware updated
2020-10-23 15:19:20 +03:00
Krzysztof Bruniecki
9c78a4855a Remove CNN GNA1/2 compatibility enforcement when other GNA device detected (#2745) 2020-10-23 13:30:16 +03:00