Commit Graph

562 Commits

Author SHA1 Message Date
Gladilov, Gleb
543559f58c
[IE][VPU][nGraph]: Enables dynamic Reshape with non-const pattern support in myriad plugin (#1159)
* [IE][nGraph]: Introduces PartialShape ctor from values vector

Signed-off-by: Gladilov, Gleb <gleb.gladilov@intel.com>

* [IE][VPU][nGraph]: Moves evaluateTargetShape to common utilities

The same functionality - get upper-bound shape estimation for dynamic
input - is needed in dynamic Reshape along with dynamic Broadcast.
Return value type has been changed from PartialShape to vector<int64_t>.
The reason is Reshape encodes special values (0, -1) into input values
that define output shape. Representing those values (which upper-bound
provides evaluateTargetShape) as PartialShape leads to incorrect
representation vector with -1 as dynamic shape - which is not expected.

Signed-off-by: Gladilov, Gleb <gleb.gladilov@intel.com>

* [IE][VPU][nGraph]: Introduces StaticShapeReshape

In comparison with original Reshape StaticShapeReshape propagates
upper-bound shape through a function in case of dynamic input. To do so,
shape inference method gets upper-bound shape from evaluateTargetShape,
decodes special values (0, -1) in it and then propagate the result.

Output shape processing happens only once, because if shape inference
were called after ShapeOf operations have been optimized out on dynamic
path, then evaluateTargetShape will require evaluate method for all
operations that appear in function before current Reshape. Since
evaluate method is implemented not for all operations it lead to
Faster-RCNN compilation error.

Signed-off-by: Gladilov, Gleb <gleb.gladilov@intel.com>

* [IE][VPU][nGraph]: Updates Reshape DTS on StaticShapeReshape

In case of non-const Reshape input that defines output shape DTS uses
StaticShapeReshape which propagates upper-bound shape evaluated from
this input through a function.

Signed-off-by: Gladilov, Gleb <gleb.gladilov@intel.com>

* [IE][VPU][nGraph][Tests]: Refactoring DTS Reshape tests

The only changes are:

* header files include reordering
* indentation/wrapping fixing

Signed-off-by: Gladilov, Gleb <gleb.gladilov@intel.com>

* [IE][VPU][nGraph]: Moves ShapeOf transformation out of DTS scope

In comparison with DTS ShapeOf transformation needs to work on whole
function. Separating these 2 transformations makes testing easier since
now it's possible to call specific DTS without ShapeOf transformation
and vice versa.

Also DynamicToStaticShapeOf has been renamed into
EliminateShapeOfAfterDSR since transformation doesn't introduce new DSR
operations.

Signed-off-by: Gladilov, Gleb <gleb.gladilov@intel.com>

* [VPU][Tests]: Introduces DTS Reshape tests with non-const pattern

New StaticShapeReshape constructor has been added as well, since test
fixture should create it from reshape parameters, not reshape itself.

Signed-off-by: Gladilov, Gleb <gleb.gladilov@intel.com>
2020-07-13 18:19:05 +03:00
Maxim Andronov
08d8d36667
fix strided slice neg out of bounds ends (#1177) 2020-07-13 17:40:24 +03:00
Anastasia Kuporosova
e05e8893f2
[IE Samples] Add api arg to classification sample (#943) 2020-07-13 14:48:40 +03:00
Egor Churaev
668abbc5d9
[IE CLDNN] LRN int8 fsv16 optimizations (#814)
JIRA: 32367
2020-07-13 13:25:15 +03:00
Maxim Andronov
9e14d8b77e
[CPU] Add check quantize ranges (#850) 2020-07-13 12:48:00 +03:00
Andrey Sokolov
17657e5f43
[IE][VPU]: adjust batch - support dynamic number of iterations (#1114)
* support dynamic number of iterations in "AdjustBatch" pass
* add unit tests for this case
2020-07-13 11:49:20 +03:00
Ilya Lavrenov
71a7e913d1
Throw special exception if IR v7 is passed, but no IR v7 reader (#1293) 2020-07-13 06:13:59 +03:00
Vladislav Volkov
bce6ca07df
Optimisations for binary operations broadcast. Phase 2. (#1295) 2020-07-13 06:11:02 +03:00
Ilya Churaev
9dedb39cfc
Remove old Scatter operations (#1265) 2020-07-13 06:02:20 +03:00
Andrew Bakalin
45d1b4eb19
[IE][VPU][GT]: Process StridedSlice stage on device as one kernel (#1244)
* Remove replacement of StridedSlice with other stages and execute it on device as one kernel.
* Refactor strided slice tests to be able to parametrize it by precision.
* Update firmware.
2020-07-10 14:32:49 +03:00
Gorokhov Dmitriy
8768313fef
[TESTS] Added Comparison and Logical single layer tests (#1242) 2020-07-10 13:56:22 +03:00
Ilya Churaev
8d1e7a705d
Removed adjoints (#1269) 2020-07-10 13:49:43 +03:00
Bartosz Sochacki
8da662b2b8
[GNA] Support in GNA plugin for power layer with non-1 exponents (#997)
* added support for power layer with non-1 exponents to GNA plugin

* reverted a change caused by merge issue

* fixes for review comments (typo fix - lrelu instead of leru, unnamed structure instead of of named one in union with arguments of activation function, name fix - input instead of inputs),

scale-shift implementation based on affine layer instead of PWL,

* fixed code style

* fixes for coding style in scale_factor_calc.hpp

* added domain for power function

* fixed review comment - power function specific methods

* added check if dynamic casting was successful

* removed I16 as it is not supported by ngraph

* fixed initialization per review comment
2020-07-10 13:39:29 +03:00
Kamil Magierski
d9706da8d0
[GNA] MemoryStateImpl (#839)
* [GNA] fix query state for GNAMemoryState

* [GNA] MemoryState implementation:

Fix shared tests
Fix smoke tests
fix SetState
Implement LastState
Fix Reset

* Move getPrecision() to GNAMemoryState

Change Smoke Reset() test to check resetting one state

* [GNA] add dequantize to getLastState()

* code refactor

Co-authored-by: Anna Alberska <anna.alberska@intel.com>
Co-authored-by: kmagiers <kmagiers@intel.com>
2020-07-10 13:37:12 +03:00
Michał Karzyński
cc23e6043a
Add nGraph-ONNX tests (#1215) 2020-07-10 11:53:56 +02:00
Roman Kazantsev
7b65ba365e
Implement ScatterND operation in MO and transform for SparseToDense (#584)
SparseToDense used in Wide and Deep model is expressed through ScatterND operation.
ScatterND is more functional than SparseToDense. Hence, it was decided to replace SparseToDense
with ScatterND. ScatterND is more useful for other models.

Remove SparseToDense from the previous opset

Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
2020-07-10 12:29:15 +03:00
Ilya Lavrenov
297c9f5272
Simplified usage of CNNNetworkIterator (#1260) 2020-07-10 11:22:49 +03:00
Andrew Bakalin
3a0f09c01e
[IE Common] Replace static_cast with saturated one (#1257) 2020-07-10 11:20:17 +03:00
Chenhu Wang
b4e3dd5c7b
[CPU] ScatterUpdate ScatterElementsUpdate and ScatterNDUpdate support (#909)
* scatter_update_series_enable

* scatter_update_series_enable

* add single layer tests
2020-07-10 11:19:23 +03:00
Roman Lyamin
8e368c5e81
[IE TESTS] Added single layer test "Ceiling" (#1271) 2020-07-10 10:49:50 +03:00
Maksim Doronin
2537174a43
[IE][VPU]: Remove dataToShape edges from unsued data (#1213)
* Check equality of shape data for the replaced and replacement input/output data in the model
* Connect data with shape in duplicateData method
* Disconnect shape with data which is being removed as unsued.
* Check that disconnected shape still have child dataToShape edges or consumers
* Refactor cleanUp to use removeUnsuedData and not duplicate code
2020-07-09 19:21:18 +03:00
Anastasia Kuporosova
c0acbe06f7
Add python API codeowners (#1254) 2020-07-09 18:09:06 +03:00
Roman Lyamin
f3848b4454
[IE CLDNN] Added Mish operation (#1125) 2020-07-09 16:57:59 +03:00
Tomasz Dołbniak
65657ea5c5
Fix the __repr__ function for dynamic shapes (#1210) 2020-07-09 15:52:25 +02:00
Anton Chetverikov
e3f9cf16cd
Swish operation specification (#1200)
* Add Swish operation specification
2020-07-09 16:50:15 +03:00
Anton Chetverikov
77bb97fee5
SoftPlus operation specification (#1128)
* Add SoftPlus operation specification
2020-07-09 16:48:59 +03:00
Tomasz Socha
708c16b257
[nGraph] Fix reshape builder if target shape is scalar (#1206) 2020-07-09 15:31:04 +02:00
Tomasz Socha
a09d45d9d5
[nGraph] Allow to use protobuf lite in onnx importer (#687) 2020-07-09 15:30:17 +02:00
Tomasz Dołbniak
130238f509
ONNX Imagescaler op (#1262)
* ONNX ImageScaler op

* UT for ImageScaler op
2020-07-09 12:19:40 +02:00
Mateusz Bencer
f4b76d4e5e
Enable importing TinyYOLOv2 (#1121)
* Fixed bugs in TinyYOLOv2 ops

* Added tests

* styles applied

* styles applied

* code review remarks introduced

* code review remarks (unit tests added)
2020-07-09 12:26:00 +03:00
iliya mironov
95677afe29
Move arithmetics spec from v1 to v4 spec docs (#1230)
* Move atanh asinh acosh to opset4

* Update opset3 tables
2020-07-09 11:28:47 +03:00
Roman Lyamin
c18c103f0f
[IE TESTS] Added single layer tests (#1137) 2020-07-09 10:22:34 +03:00
Vladimir Zinoviev
77dc21cbdf
[LPT] Eltwise Prod transformation fix (#1135)
* [LPT] Eltwise Prod transformation fix

* [LPT] ngraph Multiply lp transformation test
2020-07-09 10:19:52 +03:00
Ilya Lavrenov
1f8a8ab33c
Fixed RTTI issues for ngraph::Variant (#1258) 2020-07-09 06:13:20 +03:00
Ilya Churaev
5feeab37d4
Use ngraph.hpp in samples and documentation (#1240) 2020-07-09 06:09:28 +03:00
Anton Zaytsev
2e3378c50f
[IE TESTS] dynavic batch for mvn layer (#1010)
* [ci-skip][IE TESTS] dynavic batch for mvn layer

* update instance v0

* [ci-skip][IE TESTS] update instance for mvn layer

* [ci-skip][IE TESTS] fix

* [ci-skip][IE TESTS] add dynamic batch for singleLayer basic class

* [ci-skip][IE TESTS] update dynamic batch for singleLayer basic class

* [ci-skip][IE TESTS] removing bathFlag

* [IE TESTS] removing bathSize

* [IE TESTS] refactor dynamic batch in basic class

* [IE TESTS] refactor dynamic batch in basic class
2020-07-08 20:59:24 +03:00
Ilya Lavrenov
884389d869
Conversion via CNNNetworkImpl ctor (#1222)
* Added ctor for CNNNetworkImpl to convert from ngraphImpl

* Re-use in all places instead of manual conversion

* Hide convertToCNNNetworkImpl usage

* Remove useless test

* Fixed Gleb's comments
2020-07-08 17:26:37 +03:00
Anastasia Kuporosova
c39e32a47b
[IE Tools] Update tools with new Python API (#944) 2020-07-08 13:38:49 +03:00
Vladislav Volkov
499c976194
The supported models detection improvement (#1235)
* The supported models detection improvement

* Unit test for supported models detection
2020-07-08 12:57:21 +03:00
Vitaliy Urusovskij
c0b28daf9c
Fix MemCheckTests failures caused by change in OMZ models scope (#1214)
Run only models available in OMZ to prevent failures
Remove person-reidentification-retail-0031.xml from configs
2020-07-08 12:33:39 +03:00
Anastasia Kuporosova
b553b6ea17
[Python API] setting and getting preprocessing info through InferRequest (#1009) 2020-07-08 11:25:54 +03:00
jdanieck
8ff7e3381d
Refactoring: remove unneeded typedef from DetectionOutputAttrs struct. (#1231) 2020-07-08 11:15:15 +03:00
Ilya Churaev
71d41a992f
Removed all and allreduce layers (#1182)
* Removed all and allreduce layers

* Removed reference implementations
2020-07-08 04:16:02 +03:00
Mikhail Kozlov
bd3b6bfc5e
Add new parameters to compile-tool (#1153) 2020-07-07 20:14:47 +03:00
Alexey Suhov
8da90f8890
fix build target name in demos for Windows (#1253) 2020-07-07 18:44:11 +03:00
Vitaliy Urusovskij
e085a04d8c
[Stress] Move logging after all computations of progress_str (#1226) 2020-07-07 14:23:26 +03:00
Tomasz Dołbniak
ae6cfe12bb
ONNX DequantizeLinear op (#1123)
* DequantizeLinear 10 as a subgraph

* Enable DequantizeLinear from opset 13

* Exclude the failing tests

* Re-enable dequantize linear UTs

* Validation helper
2020-07-07 14:08:08 +03:00
Ilya Churaev
59579eb437
Removed And operation (#1183) 2020-07-07 13:32:35 +03:00
Irina Efode
476dc0f00f
[IE TESTS] Add Convert, ConvertLike single layer tests. Refactoring Range (#1212) 2020-07-07 11:47:13 +03:00
Irina Efode
ea10ad5ed4
[IE TESTS] Add Multi, hetero and Cpu plugin as dependecies to the functional tests (#1234) 2020-07-07 11:42:13 +03:00