Commit Graph

347 Commits

Author SHA1 Message Date
Chenhu Wang be044a7003
[CPU] Interpolate operation improvements (#2366)
* interpolate improvement

* JITTED cubic mode

* fix 'code is too big' when JIT

* extend test to cover tail code path

* transformation of interpolate1 to interpolate4

* add low precision transformation for interpolate4
2020-11-17 10:42:34 +03:00
Irina Efode dc710d6090
[IE TESTS] Move main.cpp to shared lib from plugin functional tests (#3157) 2020-11-17 10:11:17 +03:00
Irina Efode 8d855fb654
[IE TESTS][IE CPU] Add smoke prefix for broadcast SLT (#3158) 2020-11-17 10:10:45 +03:00
Maxim Andronov a166f95acc
[IE TESTS] Added test for NMS (#2830) 2020-11-17 09:33:19 +03:00
Anton Voronov 6467a9f5b8
[CPU] added MergePermuteAndReorder optimization + added test (#2519) 2020-11-17 09:04:49 +03:00
Ivan Tikhonov b45e1a25a5
LSTM/GRU/RNN Sequences : support for seq_lengths input (#2788)
* sequences to ti transformations, support for seq_lengths input, update reference implemetations, add new tests

* fix python api, update sequences to ti transformation

* fix sequences to ti transformation

* Update sequences to TI transformation: fix reverse sequence support

* update single layer tests, fix TI reference impl, fix Sequences to TI transformations

* ngraph code style

* fix build

* fix ngraph python api

* resolver review comments, refactoring

* Resolve review remarks

* delete xfail
2020-11-17 07:04:20 +03:00
Irina Efode e9de4daee7
[IE TESTS] Remove extra dependency from Shared lib (#3006)
* [IE TESTS][IE CMAKE] Add cmake option for configuration to skip tests

* [IE TESTS] Remove extra dependency from IE tests shared lib

* Revert to add flag
2020-11-16 22:29:02 +03:00
Maksim Kutakov ca36b91a73
[CPU] Broadcast check has been added to the ConvertPowerToPowerIEMatcher transformation. (#3132)
* [CPU] Added broadcast check to the ConvertPowerToPowerIE transformation.

* [CPU] Eltwise single layer test instance extended with a two inputs case.
2020-11-16 15:58:10 +03:00
Roman Kazantsev 10b18a00c6
Improve reshapeability of models with eltwise nodes influencing shapes (#2767)
* Fix ElementwiseInputReshape transformation

Reshape node always needs to be inserted
in order to preserve ShapeOf nodes (reshapability of a model) that can potentially be above
elementwise node.

Refactor EltwiseInputReshape_test and EltwiseInputNormalization_test since the logic of maintaining reshape for eltwise has been changed.

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

* Merge EltwiseInputNormalization and EltwiseInputReshape transformations

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

* Remove Unsqueeze from Fused_op

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

* Fix code after code review #1

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

* Fix code after review #2

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

* Fix code review #4

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

* Perform full normalization based on shapes of all inputs to eltwise

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

* Refactor much to avoid old API and edges with unsqueeze_dims attribute

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

* Fix code after review

Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
2020-11-16 09:50:41 +03:00
Ilya Lavrenov fec3bc0990
Propogate DEVICE_ID for functions working with RemoteContext (#3109)
* Propogate DEVICE_ID for functions working with RemoteContext

* More fixes for RemoteContext

* Fixed tests compilation with VariableState
2020-11-13 19:44:40 +03:00
Anna Alberska d87fdbe89b
[GNA] fix 4d batch size eltwise issue (#3127) 2020-11-13 19:28:02 +03:00
Kamil Magierski 9f54989824
[GNA] 4D concat align pass (#2970)
* [GNA] Fix RemovePermutationsNHWCToNCHWPass in cases that permute input has many outData

* style

* [GNA] linux test fail fix
2020-11-13 18:12:45 +03:00
Andrew Bakalin 0681cdf1c5
[VPU][NGraph] Extend TopK K propagation (#2943)
* [VPU][NGraph] Support ShapeOf and Gather in TopK K propagation

* [VPU] Save calculated K value

* [VPU][Tests] Introduces tests

* [Tests] Review fixes
2020-11-13 07:50:31 +03:00
Andrew Bakalin 9379247076
[IE][VPU]: GatherND DTS transformation (#3025)
* Implement GatherND DTS
* Introduce tests on DTS
* Introduce tests on DSR+GatherND
2020-11-12 17:30:41 +03:00
Elizaveta Lobanova a10f71feeb
[GNA] Added tests for negative memory layer offset and split - trivial permute - concat scenario (#2989) 2020-11-12 17:07:38 +03:00
Alexandra Sidorova a8e581ff8b
[CPU] Converted Pad Layer to MKLDNNNode and added more optimized implementations (#2586)
Pad-1: fixed ngraph reference for symmetric mode and added cpu tests
2020-11-12 14:25:42 +03:00
Daria Mityagina 121f75f49d
[IE][VPU][TESTS]: support different modes for Interpolate (#2963) 2020-11-12 13:51:48 +03:00
Svetlana Dolinina 7bd76dc12b
Move QueryState from ExecutableNetwork to InferRequest (#2818)
* QueryState moved to InferRequest

* deprecate ExecutableNetwork::QueryState,chaged tests (without any check yet)

* fix build

* review fixes + build fix

* build fix + review changes

* remove blank line

* style fixes

* test build fixes

* style fix

* style fix

* fixed build of tests

* fix

* mac build fix

* hddl plugin build fix

* clean up unneeded implementation for method

* fixed tests build

* add implementation for getstate, correct getName for MklDNN

* fixed description of state API in comments

* lint fixes

* Rename MemoryState to VariableState

* added tests for cpu for VariableStates, several small fixes in tests and code

* merge fix

* lint fix

* remove whitespaces

* spaces fix

* fix in test to make it workable for all plugins

* fix typo

* fix test for gna

* remove extra comment

* fix test for gna
2020-11-12 12:40:43 +03:00
Mikhail Treskin 809c504d0a
Summary report generator for layer and subgraph tests (#2707)
* Initial summary dumper implementation

* Handle Tensoriterator body + add parser script

* Add support of XML reports merging + report OP names with versions

* Remove debug device name change

* Fix windows building issue

* Add --disable_test_skips command line option

* Gtest failure with logging

* Change skipping logic and resolve linkage errors caused by extern

* Get graph body from Loop

* Fix disable_tests_skipping symbol redefinition

* Fix inline for currentTestIsDisabled

* Rollback get_body for Loop

* Handle cases with skip in test SetUp

* Report Loop and TI ops along with ops in subgraph body

* Resolve some PR comments

* Dummy commit to kick pre-commit validation

Co-authored-by: Efode, Irina <irina.efode@intel.com>
2020-11-12 12:33:23 +03:00
Maksim Doronin 9420b6e599
[IE][VPU]: Implement VPU Ngraph EIP->ReorgYolo transformation (#3066)
* We need to convert ExtractImagePatches op to ReorgYolo to restore the working capacity of myriad plugin while compiling Yolo-v2 models.
* It was previously removed in #2687
2020-11-11 22:04:59 +03:00
Andrew Bakalin b20f76967a
[IE][VPU][Tests]: Fix NMS DTS outputs naming + tests (#3040)
* Fix dynamic output case in interpreterFunction. For dynamic output cases, we can't call get_shape on the result because it's shape is dynamic, instead, we should take the real output shape from output HostTensor
* Fix outputs naming as it's done in other DTS transformation for operations with multiple outputs (Split, TopK, etc).

Ticket - #-42421
2020-11-11 13:52:42 +03:00
Roman Lyamin 6b09d5769f
[IE CLDNN] Added LogSoftmax-5 operation (#2945) 2020-11-11 08:53:30 +03:00
Nikolay Shchegolev eb82adeb3a
[CPU] Proposal layer. Check img info input. (#2456) 2020-11-11 00:36:38 +03:00
Andrey Dmitriev bd091500cd
[GNA] Added Multiplication 1x1x1 (#2470)
* [GNA] Broadcast power primitive

[GNA] Broadcast power primitive

[GNA] Added Multiplication 1x1x1

[GNA] Broadcast power primitive

Added secondary changes

* Added fix test
2020-11-10 20:56:21 +03:00
Andrey Sokolov 634109acfa
[IE][VPU]: support new operation CEILING (#3004)
Add new Operation "Ceiling" for VPU Myriad
task: -42885
2020-11-10 19:28:53 +03:00
Andrey Dmitriev 4a0170dcb0
[GNA] fixed case when input connected to concat from left and const from right (#2874)
* Added test

* Added fix

* Fix comment

* Fix conflict
2020-11-10 16:37:03 +03:00
Ivan Tikhonov c309bb77d2
Reference implementations for Loop and TensorIterator ops (#2978)
* Loop op ngraph implementation, update IE IR Reader and ngraph to cnn converter

* refactoring SubGraphOp class

* type prop unit tests

* ngraph code style

* update comment

* single layer tests for Loop operation

* fix file name

* Add SpecialBodyPorts attribute in Loop op, update single layer tests

* first debug version

* more tests

* missing test file

* removed not needed shapes from test data

* move test data to new folder

* shape infer tests

* Added execution tests

* add several new tests cases, strict checks in Loop impl, temporary disable single layer tests

* ngraph codestyle, refactoring, clone_new_args test

* resolve review remarks

* fix build

* fix tests

* more execution tests

* add a new constructor of Loop op, resolve review remarks

* execution tests

* synchro with current version

* handle scalars and more tests

* scalar test enabled

* loop reference impl

* bug fixes in tests, onnx importer part and in the ref implementation of the Loop op

* applied remarks

* handle unsupported cases

* rewrite unit tests

* update INTERPRETER manifest

* is_termination_condition_always_true simplification

* [TEST] update python models tests

* review remarks

* added xfail to tiny_yolov3

* missing model test

* revert test data

* fixed numbers of failing tests

* fixed failed test description

* fix test message

* fix xfail test

* reference implementation for ngraph::function

* update loop reference implementation

* Refactor loop reference implementation

* ngraph codestyle

* Refactoring

* Submodule update

* Skip check for Reduce ops in mkl for scalar cases, support for yolov3

* fix ngraph reader tests

* revert ceiling op, renaming

* Add allias(Ceiling) for Ceil op in mkl

* delete xfails

* fix build

* single layer tests for tensor iterarator

* Refactor TensorIterator and Loop ref impls

* revert dynamic tensor creation, disable some dynamic test cases

* fix warning

* Resolve review remarks

* revert Predefined values in Loop tests

Co-authored-by: Mateusz Bencer <mateusz.bencer@intel.com>
2020-11-10 15:49:59 +03:00
Liubov Batanina 0a71ada75e
[IE TESTS] Replaced size_t with int64_t (#2699)
* Replaced size_t with int64_t

* Fix gpu plugin
2020-11-10 11:35:24 +03:00
Gorokhov Dmitriy ae1f2be763
[CPU] Fixed Eltwise node endless loop in case nthreads = 1 (#3008) 2020-11-10 10:56:22 +03:00
Mateusz Bencer eeafc8e7dc
Revise Broadcast reference implementation (#2715)
* change tile reference implementation

* remove tile tests from interpreter manifest

* add repeats parameter to tile

* improve tile reference implementation

* add repeats parameter to tile reference call in tile evaluate method

* style apply

* include <numeric>

* add unnamed namespace to helper functions. Change stdio.h to cstdio. Change input_rank to be constant int

* add const reference to parameter repeats in tile reference function

* change createPitches function to use partial_sum instead of accumulate

* change a little bit createPitches function

* style-apply

* fix function naming

* style-apply

* fix calling functions name bug

* Add description of create_pitches function

* first version with debug logs

* reduce footprint

* single layer tests

* added more tests

* fixed handling bool type

* styles applied

* fix tile

* [ONLY DEBUG] print error scenario message

* fixed problem with e2e tests

* fixed casting of start_axis for numpy mode

Co-authored-by: pszmel <piotr.szmelczynski@intel.com>
2020-11-10 10:42:26 +03:00
Anna Alberska 1220fb2fe8
[GNA] Add support for SubstituteSoftSign for pattern with addition (#2789)
* [GNA] add changes for SubstituteSoftSign for IRv10

* cpplint fix

* [GNA] add requested changes & change SoftSign test validation

* [GNA] SubstituteSoftsign refactor

* [GNA] enable 3d input tests for softsign
2020-11-09 16:40:31 +03:00
Ivan Tikhonov 1c3208ffe0
Low Latency transformation (#2869)
* initial draft of adding sinks to ngraph::Function

* style fixes

* code style fixes

* code style fixes

* code style fix

* review fix+build fix

* code style fix

* fix build

* API changed according to latest discussion

* review fixes

* review fixes + tests

* initial draft of adding sinks to ngraph::Function

* style fixes

* code style fixes

* code style fixes

* code style fix

* review fix+build fix

* code style fix

* fix build

* API changed according to latest discussion

* review fixes

* review fixes + tests

* added 1 more ctor

* style fixes

* used new api in ir parser

* fixed build

* update low latency transformation, fix unroll transformation, add unit tests, modify subgraph tests

* fix low latency transformation

* Update low latency transformation, unit and sub-graph tests

* update LowLatency transformation and tests

* ngraph codestyle

* fix build, update description

* resolve review remarks

Co-authored-by: Svetlana Dolinina <svetlana.a.dolinina@intel.com>
2020-11-06 14:11:11 +03:00
Alexandra Sidorova d622c08580
[CPU] Added LogSoftmax-5 support (#2743) 2020-11-06 13:22:02 +03:00
Vladimir Paramuzov 6e7db6fb37
[IE CLDNN] Plugin-side kernels caching (#2871) 2020-11-05 23:44:45 +03:00
Anna Alberska be406fd7a6
[GNA] support for 3D [1,1,X] import/output (#2893)
* [GNA] support for 3D [1,1,X] import/output

* [GNA] add check for C == 1 and H == 1

* [GNA] fix input dimensions restrictions for 3d
2020-11-05 19:31:55 +03:00
Ilya Lavrenov 5be7f32f95
Enable LTO only for Release (#2968) 2020-11-05 11:31:32 +03:00
Jozef Daniecki 5d7f83f399
Fix testcase CheckExecGraphInfoSerialization (#2973)
* Generate unique output file names in CheckExecGraphInfoSerialization testcase.

When multiple instances of this test were executed in parallel the same
file was accessed by multiple threads which was the cause of flakiness.

* Enable ExecGraphTests.CheckExecGraphInfoSerialization on GPU
2020-11-05 07:16:24 +03:00
Nikolay Shchegolev d3ecfe56d4
[CPU] CTCLoss sporadic issue. (#2934)
* [CPU] CTCLoss sporadic issue.

* [Tests] Enable CTCLoss tests.
2020-11-04 21:16:53 +03:00
Rafik Saliev d225ba6e53
[IE] Add batched blob support (#2203)
* [IE] Add batched blob support

New `class BatchedBlob : public CompoundBlob` defined to allow to pass multiple blobs as 1 InferRequest input.

Motivation: There is the special user case when a number of plain images (e.g. `NV12Blob`) should be passed as one input for network which batch size > 1.

`class CompoundBlob` is not applicable for such cases due to:
1. `NV12Blob` is `CompoundBlob` which prevents to combine multiple NV12 images to a CompoundBlob
2. The default behavior in most of plugins - do not accept generic CompoundBlob as `SetBlob()` argument

Adding `SetBlob(name, vector<Blob::Ptr>...)` to `class IInferRequest`, `class InferRequest`, `class IInferRequestInternal`, ...  - is not effective solution due to limited and specific use cases for `batched inputs`.

+ Apply rule-of-zero to CompoundBlob and inherited classes.

* Add "BATCHED_BLOB" optimization capability metric

* Add BatchedBlob usage to hello_nv12_input_classification

* Apply offline code review outcome:

1. Revert CompoundBlob public .ctors signatures
2. Remove 'workaround' .ctor for `BatchedBlob`
3. Revert tensor descriptors of `I420Blob` `NV12Blob` back to the 'fake' value.

* Code review fix

* Add functional tests for CPU, GPU, MULTI, HETERO

* update doc comment

* Apply code review change requests.
2020-11-03 21:19:26 +03:00
Irina Efode a66c728a46
[IE TESTS] Fix reg exp for issue 42029 (#2957) 2020-11-03 18:12:24 +03:00
Andrew Bakalin 1c6772a9fc
[IE][VPU]: Support for Bidirectional mode in Broadcast DTS (#2873)
* [VPU][DTS] Update broadcast DTS to support BIDIRECTIONAL mode
* [VPU][Tests] Update tests with inference
* [VPU][Tests] Extend DTS tests
2020-11-03 11:59:06 +03:00
Andrey Sokolov f3ac97e9f4
[IE][VPU]: Interpolate - reuse "interp", "resample" layers (#2932)
Reuse existing "interp", "resample" layers
task: #-29955
2020-11-03 11:56:55 +03:00
Kamil Magierski 3f4d8b49ff
Fix cases when identities inserted identites are separated by nonFunctional layers (#2771) 2020-11-03 10:49:58 +03:00
Andrey Dmitriev d79263fcd0
[GNA] Added export input/output names (#2601)
* [GNA] Added export input/output names

* fix comment

* Change version
2020-11-03 10:45:08 +03:00
Alexandra Sidorova 5596c7c841
[CPU] Added eltwise Round-5 (#2347) 2020-11-02 18:44:50 +03:00
Aleksandr Korolev 5ffa2cd5e3
[IE TESTS] Split Layer Test refactoring (#2915)
Co-authored-by: kora6 <kora6@github.com>
2020-11-02 16:29:59 +03:00
Alexander Peskov 0a4509914a [TEST] One more trivival loop test
Signed-off-by: Alexander Peskov <alexander.peskov@intel.com>
2020-11-02 12:37:48 +03:00
Alexander Peskov 5ac26ff3b6 [TEST] One more trivial test case on Loop
Also fixed compilation with gcc4.8

Signed-off-by: Alexander Peskov <alexander.peskov@intel.com>
2020-11-02 12:37:48 +03:00
Alexander Peskov d7e3e92b64 [TEST] Several more Loop test with static shapes
Signed-off-by: Alexander Peskov <alexander.peskov@intel.com>
2020-11-02 12:37:48 +03:00
Alexander Peskov 56dc06d09f Avoid '-' symbol for test name
Signed-off-by: Alexander Peskov <alexander.peskov@intel.com>
2020-11-02 12:37:48 +03:00