Commit Graph

692 Commits

Author SHA1 Message Date
Irina Efode
afee06ec3d
[IE TESTS] Small refactoring of test infrastructure (#1332) 2020-07-16 14:20:08 +03:00
Nadezhda Ageeva
0887a7c0d6
Allow python benchmark_app load onnx model (#1283) 2020-07-16 13:53:43 +03:00
Roman Kazantsev
682e4d3e94
Specify operation CTCLoss-4 (#1189)
* Specify operation CTCLoss-4

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

* Correct documentation for CTCLoss after #1 review

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

* Correct documentation for CTCLoss after #2 review

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

* Correct documentation for CTCLoss after #3 review

* Correct documentation for CTCLoss after #4 review

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

* Correct layout for logits and add more description for unique attribute

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

* Correct types for length and indices tensors

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

* Correct formulas and punctuation

Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
2020-07-16 12:36:15 +03:00
Alexander Chaiko
0746f47e8a
[IE CLDNN] Adjustment of layouts to choose optimal deconvolution (#781) 2020-07-16 11:54:24 +03:00
Vladislav Volkov
5b2ec7840a
Header length for supported model detection is increased (#1340) 2020-07-16 11:12:40 +03:00
Anton Pankratv
b5e092c00b
Added default multi threaded configuration (#1310)
* Added default multythreaded configuration

* Fixed typo
2020-07-16 10:33:22 +03:00
Nikita Kudriavtsev
804a579be9
[IE Myriad] Remove Myriad 2 from supported devices in XLink (#1331) 2020-07-16 10:29:56 +03:00
Ilya Churaev
317a60545b
remove nGraph deprecated methods (part 1) (#1314)
* Remove remove_goe

* Remove traverse_nodes

* Removed deprecated constructors

* Removed deprecated tensor methods

* Fixed IE build

* Fixed code style
2020-07-16 06:03:59 +03:00
Gladilov, Gleb
3b6cb0e0cd
[IE][VPU][nGraph]: Enables merging subsequent DSR operations (#1326)
Myriad plugin treats DSR operation in a way removing such operations
and connecting inputs with each other (replacing output with one of them).
Semantic of connection is one inputs contains shape of another.
Since the same data object can have exactly one shape it's prohibited
to have DSR inputs connected with another data objects
(the only allowed exception is inputs that are already connected between
each other).

As a result of nGraph -> CNN conversion some operations could be optimized
out which in turn could lead to subsequent DSR operations where each has
its own shape sub-graph. Even if shape sub-graphs are identical it's not
visible to plugin that sees incorrect inputs (inputs of DSR are already
connected, but now with each other, when second DSR is parsed).

To overcome such issue (the reason is when operations are optimized out,
their shape sub-graphs are still there), additional ngraph
transformation should be introduced to merge subsequent DSR into single
DSR operation.

Signed-off-by: Gladilov, Gleb <gleb.gladilov@intel.com>
2020-07-15 22:21:19 +03:00
Gladilov, Gleb
a0d60abef7
[IE][VPU][nGraph]: Fixes Reshape's shape infer method (#1327)
Previously, if Reshape had input pattern with values [0, -1] - it
propagated dynamic shape through a function. At the same time,
taking "0" and "-1" interpretation into consideration, it turns out
in such cases we could just propagate the same input shape in case of
2D input.

For Faster-RCNN this fix makes static dimensions on dynamic paths static.

Signed-off-by: Gladilov, Gleb <gleb.gladilov@intel.com>
2020-07-15 22:17:36 +03:00
Gladilov, Gleb
2803498995
[IE][VPU][nGraph]: Fixes StridedSlice DTS (#1328)
* In case of Begin/End/Stride inputs of StridedSlice have rank less
than input data rank - remaining dimensions must be kept unchanged.
* Previous, implementation had UB in such cases - out of bound
vector element access

Signed-off-by: Gladilov, Gleb <gleb.gladilov@intel.com>
2020-07-15 19:43:31 +03:00
Jan Iwaszkiewicz
db09547087
Add Input and Output class to Py API (#1284) 2020-07-15 15:32:24 +02:00
Adam Osewski
173ce2c907
[ONNX] Exception handling refinements. (#1266) 2020-07-15 14:02:18 +02:00
Andrew Bakalin
382b442ab3
[IE Common][Tests] saturated_cast: refactoring & tests (#1304)
* [IE Common] Refactor saturated_cast

* [IE Common][Tests] Add tests for saturated casts

* [IE Common] Review fixes

* [IE Common] Make enable_if check a template parameter
2020-07-15 13:48:57 +03:00
Jan Iwaszkiewicz
8fe1ef0b41
Reverse Sequence code clean up (#1303) 2020-07-15 12:48:53 +02:00
iliya mironov
ac5217d17f
Added mish layer doc opset (#1149)
* Added mish layer doc opset

* Refactoring mish spec

* Update mish spec

* Change output description of Mish layer

* Fix Mish according to review

* Refactoring Mish and GELU spec according to code review

* Update formula for ops in spec

* Refactoring spec text

* Update Mish opset

* Change Mish version from 1 to 4

* Sort opset4

Co-authored-by: Your Name <you@example.com>
2020-07-15 10:30:33 +03:00
Vladimir Gavrilov
f2aba7cdf6
Specify, review and approve operation Interpolate-4 (#1035)
* Added documentation for Interpolate-3.

* Some fixes.

* Fixed some typos.

* Now Interpolate-3 is Interpolate-4.

* Fixed typo.

* DEleted unused 'mode' 'area'.

* Fixed some typos.

* Now 'axes' attribute is an input of Interpolate.

* Added description of variants of nearest_mode.

* Added descriptions of coordinate transformation modes.

* Now 'axes' is an optional input.

* Fixed typo.
2020-07-15 10:27:56 +03:00
Anton Zaytsev
24961638cc
[IE TESTS] Add ShapeOf SingleLayerTest (#1285)
* [IE TESTS] add single layer test ShapeOf

* [IE TESTS] update for master

* [IE TESTS] add subgraph test

* [IE TESTS] update todo in skip_tests_config

* [IE TESTS] update skip_tests_config

* [IE TESTS] update skip_tests_config

* [IE TESTS] update opset3
2020-07-14 23:55:32 +03:00
Alexey Suhov
d7cb5ba4ba
update system requirements (#1321) (#1322)
* update system requirements

* update release version in readme
2020-07-14 22:06:55 +03:00
Maxim Shevtsov
4b5ce75c46
Fix that brings back the MULTI's ability to add/remove devices (to the priorities list) on the fly. Presumably was lost during refactoring. (#1309)
the point is that we should check the ORIGINALLY (largest) list of the devices (actually ExecutableNetworks for them) to see if the device is just added back
2020-07-14 19:15:52 +03:00
Edward Shogulin
d791962464
[LPT] FuseFakeQuantizeAndScaleShift transformation for last layer fix (#1291)
* [LPT] FuseFakeQuantizeAndScaleShift transformation for last layer fix

* [LPT] refactoring

* [LPT] FuseFakeQuantizeAndScaleShift test: last layer name validation was added
2020-07-14 18:55:06 +03:00
Jedrzej Hajduczenia
0607b7b0f7
[IE CLDNN] WA to use bfyx format if applicable for bf(w)zyx Gather input (#1056) 2020-07-14 18:00:51 +03:00
Jedrzej Hajduczenia
92a38b305f
[IE CLDNN] Disable inserting reorders if num_dims mismatch (#1023) 2020-07-14 17:59:20 +03:00
Rafal Blaczkowski
07f0d1c492
Add OpenVINO-ONNX CI check (#688) 2020-07-14 14:57:27 +02:00
Andrew Bakalin
c18f3aff91
[IE][VPU][Tests]: Fix M2 on deprecated tests for StridedSlice (#1300)
* Disable reorder in Myriad2 cases in StridedSlice deprecated_tests
2020-07-14 13:13:56 +03:00
Adam Osewski
ed4bbb3a0a
[ONNX] Quantize linear using FakeQuantize (#1169) 2020-07-14 10:55:07 +02:00
Adam Osewski
b16c8faceb
Enable importing of TF_NASNet_Mobile (#1252) 2020-07-14 10:54:39 +02:00
Ilya Churaev
e8ce8523ed
Removed max pool v0 (#1277)
* Removed MaxPool v0

* Removed atan2

* Removed and operation
2020-07-14 10:27:51 +03:00
Ilya Churaev
32d7959b92
Added U32 precision (#1297) 2020-07-14 10:27:10 +03:00
Mikhail Letavin
91ec946865
[IE CLDNN] Optimize kernel cache memory usage in GPU plugin (#1233) 2020-07-13 18:33:32 +03:00
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