Commit Graph

2085 Commits

Author SHA1 Message Date
Krzysztof Bruniecki
9b85d67cce
Add test for RESULT_NOT_READY returned from Wait() in async mode (#2793)
* Add shared test for RESULT_NOT_READY return from Wait() in async mode

* Instantiate test for RESULT_NOT_READY for GNA Plugin only

* Fix compile error

* Increase model size for the RESULT_NOT_READY test

* Reuse most of the test

* Apply review

  - Fix typo

* Make the test deterministic

* Use callback timestamp

* Apply review

* Use promise and future
2020-11-23 16:18:17 +03:00
Szymon Durawa
1c7cfb7c7d
Deserialization implementation for Constant op. (#2573)
* Deserialization implementation for Constant op.

* Add Cont op implementation for NodeConverter.

* Refactor functional tests, remove Const op from layer and node cretaors.

* Remove Constant op from NodeConverter.

* Refactor smoke test.

* Correct parameter in addBlob function.

* Update Constant op representation for myriad functional tests.

* Correct Const op representation for TopK model test.

* Add changes accroding to review comments.

* Refactor constant test.

* Add review changes.

* Add custom op for testing on_adapter(void*).

* Correct library path.

* Correct test fixture class for custom op test.

* Apply review remarks, remove creators from DeconvolutionIE.

* Refactored test ReadCustomAddConstNetwork, corrected on_adapter().

* Remove on_adapter() for CoordinateDiff which is specific to Convolution op.

* Apply review remarks.

* Apply teview remarks.

* Correct Const op in non_max_suppression tests.

* Resolve conflicts after rebase.
2020-11-23 15:41:59 +03:00
Maxim Andronov
a555efe287
Fixed static analysis issues (transformations) (#3281) 2020-11-23 14:16:23 +03:00
Tomasz Dołbniak
7e2305543a
Accept dynamic rank and negative axes in ONNX reduction ops (#3162) 2020-11-23 10:26:17 +01:00
Anna Alberska
f86065ce7a
[GNA] Fixed incorrect output layout for convolution (#2426)
* [GNA] add permute for NCHW Convolution H=1

* [GNA] fix permute after convolution case

* [GNA] fix Reshape1DOps transformation case

* [GNA] fix rm_cnn4a tests

* [GNA] fix wsj model tests

* quick fix

* [GNA] fix sw_exact mode

* [GNA] Add rotateOutput for convolution op instead of permute

* [GNA] fix CI

* [GNA] apply changes from review
2020-11-23 12:23:57 +03:00
Jozef Daniecki
55dd8b0a2d
Align nGraph serialization to specification & MO behaviour (#2990)
* Align MaxPool op attribute 'rounding_type' to spec.

Attribute name should be in lower case.

* Remove obsolete "cacheable" attribute from Parameter.

* Translate ReLU & SoftMax ops type names from ngraph to IR convention.

* Remove <data> node when op has no attributes.

* Translate all operation attributes values to lower case.

* Revert "Align MaxPool op attribute 'rounding_type' to spec."

This reverts commit 243eeccff3.

* Revert "Translate all operation attributes values to lower case."

This reverts commit d4c24175b3.

* Align MaxPool op attribute 'rounding_type' to spec.

Attribute name should be in lower case.

* Align auto_pad & auto_broadcast operation attributes to spec.

They should be written in lowercase.

* Rename op:PadType 'none' to 'explicit'.
2020-11-23 06:43:39 +03:00
Mateusz Tabaka
37f6c0caf9
Update xfail issue numbers for models that fail with AssertionError: … (#3246)
* Update xfail issue numbers for models that fail with AssertionError: zoo models results mismatch

* update xfail reason with model name
2020-11-23 06:39:35 +03:00
Nikolay Shchegolev
e4ec55bea4
[CPU] NormalizeL2. Support 3D layout. (#3259) 2020-11-22 20:18:14 +03:00
Nikolay Shchegolev
92ec30c54b
[CPU] NMS. Fill the rest of first out blob. (#3258) 2020-11-22 20:06:33 +03:00
Ivan Tikhonov
ff1046c0e1
Fix opset5::Loop specification for sliced input (#3230)
* Disable v10 serealizer (#3184)

* Disable v10 serealizer

* Fixed comments

* Backport of PR #3092 - TopK sorting fix (#3195)

* [IE] - Interpolate ONNX workaround (#3203)

Co-authored-by: DariaMityagina <daria.mityagina@intel.com>

* Fix NMS1/3/4 to Legacy conversion (#3210)

* Fix NMS1/3/4 to Legacy conversion

* Added functoinal tests

* [LPT] Transpose, MatMul: Klocwork fixes (#3192)

* Update install_openvino_dependencies.sh (#3196)

* [ MO TF ] TF FakeQuantize normalization fix (#3180)

* Specify sliced input of Loop op

* Enable back rpecalcu;ated ref falues for TrivialLoop tests

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

* [NGRAPH] Add sliced input to Loop op

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

* Add loop test with input slicing

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

* One more test on loop

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

* [ nG: TI ] Fix for reshaping TensorIterator

* Trigger CI

* Fix dyn auto slicing tests

* ngraph codestyle

* misprint

* style

* style

* Fix reshaping Loop

* ngraph codestyle

* delete unnecessary comments

* Revert "Disable v10 serealizer (#3184)"

This reverts commit 5abbe2fec5.

Co-authored-by: Ilya Churaev <ilya.churaev@intel.com>
Co-authored-by: Tomasz Jankowski <tomasz1.jankowski@intel.com>
Co-authored-by: Andrey Sokolov <andrey.sokolov@intel.com>
Co-authored-by: DariaMityagina <daria.mityagina@intel.com>
Co-authored-by: Gleb Kazantaev <gleb.kazantaev@intel.com>
Co-authored-by: Vladislav Golubev <vladislav.golubev@intel.com>
Co-authored-by: Dmitrii Denisov <dmitrii.denisov@intel.com>
Co-authored-by: Evgenya Stepyreva <evgenya.stepyreva@intel.com>
Co-authored-by: Alexander Peskov <alexander.peskov@intel.com>
2020-11-22 13:29:14 +03:00
Tomasz Dołbniak
6899a95e1c
ConstantFolding as a FunctionPass instead of GraphRewrite (#3065)
* Redundant op::Max CF removal

* Redundant op::Min CF removal

* Redundant op::Sum & op::Product CF removal

* CF Min and Max using evaluate()

* Arithmetic reduction CF pass removal

* Quantize op CF pass removal

* Convert op CF pass removal

* Logical reduction CF pass removal

* Select op CF pass removal

* OneHot CF pass removal

* Code formatting

* ScatterElements CF pass removal

* Gather CF pass removal

* Disable a Quantize op test that fails in CI

* CF pass cleanup

* Convert op cleanup and test adaptation to spec

* Possible fix for failing VPU tests

* Limit the types used in OneHot::evaluate

* Quantize op evaluator removal

* Refactor of Gather evaluator

* CF pass cleanup and adaptation to FunctionPass interface

* New CF pass implementation

* Fix the Tile::evaluate method for dynamic shapes

* Node shapes revalidation in CF pass

* Obsolete code cleanup

* Obsolete include removal

* Recursively fold subgraph nodes

* Obsolete include removal

* Revalidate each node in CF

* PR feedback

* Missing RTTI symbol definition
2020-11-20 20:36:05 +03:00
Evgenya Stepyreva
4b22a99a69
[ nG: TI ] Fix for reshaping TensorIterator (#3247)
* [ nG: TI ] Fix for reshaping TensorIterator

* comments

* style
2020-11-20 17:43:21 +03:00
Bartosz Sochacki
fc1a3ce2f1
[GNA] Fake quantization layer support for int-8 mode for GNA plugin (#2937)
* [GNA] added support for per-channel FakeQuantise layer

* [GNA] added quantisation types detection in FQ enabled networks, and added input scale factors detection from FQ connected to input layer

* added FakeQuantize callback that will be use to cast integer values stored as float in FakeQuantized layer

* fixed per-channel multiplier calculation for int8 case

* precision improvements for int8 fake quantization and support for propagating scale factors to activation layers

* added initial int16 support

* added support for fake quantize layer with many connected output layers and support for FQ data encoded as FP16

* added support for already quantized weights

* Shared single layer test

* Added subgraph test

* Fix comment

* int8

* Enabling FQ tests on GNA

Co-authored-by: Eugene Smirnov <eugene.smirnov@intel.com>
Co-authored-by: Andrey Dmitriev <andrey.dmitriev@intel.com>
2020-11-20 16:40:19 +03:00
Vladimir Paramuzov
27be33ba53
[IE CLDNN] Minor fixed to NMS and TopK (#3225) 2020-11-20 15:37:55 +03:00
Ilya Lavrenov
f3358ed89d
Removed typo (#3248) 2020-11-20 14:32:29 +03:00
Szymon Durawa
1e1eaa582a
Add functional tests and remove leayer creator for Add opp. (#2759)
* Add functional tests and remove leayer creator for Add opp.

* Remove batchNorm template.
2020-11-20 14:03:47 +03:00
Vitaliy Urusovskij
dee00cdc92
Add new model to tgl_test_config.yml (#3236) 2020-11-20 13:33:57 +03:00
Pavel Esir
1076d32467
[MO] cli_parser fix when input contains substring with matching scale/mean values (#3146)
* fix MO cli_parser when input contains substring with matching scale/mean values

* some additions to cli_parser unit-tests

* fixed numpy array comparisons -- added assert_ prefix

* more general solution for mean/scale cli_parser, names with only digit values are processed correctly

* minor corrections
2020-11-20 11:42:42 +03:00
Vitaliy Urusovskij
b5930eb58e
Fix "results" uploading to DB in time_tests (#3215) 2020-11-20 10:49:31 +03:00
Vladimir Paramuzov
989a910f45
[IE CLDNN] FuseBias pass + new layouts for deconvolutions (#2774) 2020-11-20 10:14:09 +03:00
Gleb Kazantaev
2ed92688dd
Fix NMS1/3/4 to Legacy conversion (#3210) (#3229)
* Fix NMS1/3/4 to Legacy conversion

* Added functoinal tests
2020-11-19 20:48:06 +03:00
Evgenya Stepyreva
84e775af29
[ MO TF ] TF FakeQuantize normalization fix (#3223) 2020-11-19 18:38:27 +03:00
Roman Kazantsev
0925d80e2a
Complete CTCGreedyDecoder implementation in nGraph and add tests (#3190)
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
2020-11-19 18:32:25 +03:00
Krzysztof Bruniecki
0342f51cd0
Remove from unwaited requests ids if request aborted (#3160) 2020-11-19 18:08:04 +03:00
Krzysztof Bruniecki
3f2ac0ff55
Print GNA lib version on error using Gna2GetLibraryVersion (#3154) 2020-11-19 18:02:51 +03:00
Roman Donchenko
50fb87aec2
Fix spelling errors in tools (#3217) 2020-11-19 16:56:47 +03:00
Edward Shogulin
0f2c5aae03
[LPT] tests are marked as smoke (#3221) 2020-11-19 15:49:37 +03:00
Vladislav Golubev
3bdd09e107
[LPT] Transpose, MatMul: Klocwork fixes (#3191) 2020-11-19 15:15:59 +03:00
Bartek Szmelczynski
e32d2ec8ff
add 4 tests for operators based on model zoo (#3181)
* add 4 tests for operators based on model zoo

* fix wrong names of the models
2020-11-19 15:09:43 +03:00
Ilya Churaev
a264ff9eee
Removed delayed_validate_and_infer_types (#3220)
* Removed delayed_validate_and_infer_types

* Fixed code style
2020-11-19 15:08:58 +03:00
Dmitrii Ryzhkov
70c02d0fea
ngraph constant mem reuse (#2548)
* Memory re-use for nGraph Consstant

* Code style fixes

* Did remove setWeights from public API

* Fixes for tests

* Moving setWeightsPtr to CNNNetwork

* Removing setWeights function, set blob ptr directly to preallocated ngraph buffer

* Fix for code style

* Preallocated buffer refactored, rename to Shared, remove declaration from AlignedBuffer

* Fix for code style

* Remove setWeightsBlobPtr from mock classes.

* fixing bugs after merge

* Test fix

* Fix for cpu Functional tests

* Fix for Windows build

* Try to fix GNMT test failure.

* Releasing pointers what holds CNNNetwork

* Fix after merge

* mkl-dnn submodule update

* reverting back cloned network cleanup

* Fix for double allocation

* Code style...

* update mkl-dnn

* update mkl-dnn

* mkl-dnn bump

* update mkl-dnn

* update mkl-dnn

* bump mkl-dnn

* update mkl-dnn

* bump mkl-dnn

* update mkl-dnn

* update mkl-dnn

* bump mkl-dnn

* mkl-dnn bump

* bump mkl-dnn

* update mkl-dnn

* update mkl-dnn

* bump mkl-dnn

* update mkl-dnn

* bump mkl-dnn

* update mkl-dnn

* bump mkl-dnn

* mkl-dnn bump

* update mkl-dnn

* update mkl-dnn

* bump mkl-dnn

* update mkl-dnn

* bump mkl-dnn

* update mkl-dnn

* bump mkl-dnn

* mkl-dnn bump

* update mkl-dnn

* update mkl-dnn

* bump mkl-dnn

* update mkl-dnn

* bump mkl-dnn

* update mkl-dnn

* bump mkl-dnn

* mkl-dnn bump

Co-authored-by: Tony Reina <g.anthony.reina@intel.com>
2020-11-19 14:03:12 +03:00
Dmitry Kurtaev
b77bedcb64
Remove Java bindings (#3216) 2020-11-19 13:59:20 +03:00
Irina Efode
b85cc60eb1
[IE TESTS] Move ExecGraph serialization tests from InferenceEngine functional tests to the shared library (#3170)
* [IE TESTS] Move ExecGraphSerialization tests to the shared lib

* Apply coments

* Apply comments. Part 2

* Update CMakeLists.txt
2020-11-19 13:38:04 +03:00
Egor Churaev
3c1e73e892
[IE CLDNN] Improve fsv16 i8 pooling kernel (#3005)
JIRA: 40392
2020-11-19 11:47:38 +03:00
Yuta Fukasawa
a40f54ddc0
Minor markdown fix: adding back-quotes (#3204) 2020-11-19 11:31:06 +03:00
Szymon Durawa
af80bd8bf8
Add auto_broadcast attribute to spec. (#2955) 2020-11-19 10:31:30 +03:00
iliya mironov
b4d93c027f
Update docs (#3189)
Co-authored-by: Your Name <you@example.com>
2020-11-19 10:29:42 +03:00
Jedrzej Hajduczenia
281c01725c
[IE CLDNN] Add padding directly to input tensor in conv unit tests (#3014) 2020-11-19 10:17:32 +03:00
Maxim Shevtsov
fd0e03286a
Refactor multi into separate files (#3209)
* splitting the MULTI into separate hpp/cpp files per class, to simplify further dev

* scrubbing redundant include files
2020-11-19 10:07:45 +03:00
Vladimir Gavrilov
3aed19a46a
XLNET models bugs (#1199)
* Started to write equality comparator for StridedSlice layers.

* Now considered only unique StridedSlice consumers of non-constant data nodes.

* Fixed test for the transformation ConvertGroupedStridedSlice.

* Deleted commented code.

* Small fixes.

* Moved functions unique_by and group_by_with_binary_predicate to mo/utils/utils.py.

* Deleted function collect_sequences.

* Added asserts into the constructor of StridedSlice.

* Written test for the case when 1) there are 4 StridedSlice operations; 2) 2 of StridedSlice have the same data; 3) 2 others StridedSlice have the same data; 4) all StridedSlice operations outputs are consumed by different operations.

* Added some comments.
2020-11-19 10:07:30 +03:00
Mateusz Tabaka
2ec0904d40
Remove obsoleted v0::Dot and v0::QuantizedDot (#3128)
* Remove obsoleted v0::Dot and v0::QuantizedDot

* fix ngraph unit tests
2020-11-19 09:06:19 +03:00
Dmitrii Denisov
3ca0b94a7f
Update install_openvino_dependencies.sh (#3197) 2020-11-19 01:30:08 +03:00
Tomasz Dołbniak
a1d858c502
Remove the assert that could terminate the process, throw an exception instead (#3205) 2020-11-18 22:27:51 +03:00
Mikhail Ryzhov
39ec38383a
Reduced usage of batch in python samples (#3178)
* Reduced usage of batch in python samples

And corrected input arguments
2020-11-18 20:43:59 +03:00
Jedrzej Hajduczenia
123b9ab66e
[IE CLDNN] Fix fsv4 input pad in mmad bfyx to fsv32 conv kernel (#3194) 2020-11-18 19:20:59 +03:00
Ilya Lavrenov
5cc7314f75
Ngraph static lib (#3193)
* Fix: ITT_INCLUDE_DIR was not correctly detected

* Added NGRAPH_STATIC_LIBRARY CMake flag to optionnaly compile ngraph and link it as a static library instead of a dynamic one
- Definition of NGRAPH_STATIC_LIBRARY macro in callee and caller code to avoid dllexport/dllimport decoration
- Adding missing definitions of the explicit instantiation of FactoryRegistry<>::get
- Removed message about a non existent variable: NGRAPH_IE_STATIC_LIB_ENABLE
- Removed install export directive for ngraph in case of static library

* * Code style fix

* Added NGRAPH_STATIC_LIBRARY CMake flag to optionnaly compile ngraph and link it as a static library instead of a dynamic one
- Definition of NGRAPH_STATIC_LIBRARY macro in callee and caller code to avoid dllexport/dllimport decoration
- Adding missing definitions of the explicit instantiation of FactoryRegistry<>::get
- Removed message about a non existent variable: NGRAPH_IE_STATIC_LIB_ENABLE
- Removed install export directive for ngraph in case of static library

* - Removed redundant symbol definition
- Indented properly some comments

* - Making sure onnx is always compiled as a static library no matter what is the value of BUILD_SHARED_LIBS

* - Making sure onnx is always compiled as a static library no matter what is the value of BUILD_SHARED_LIBS

* Fixed incorrect suppression of directive

* Using BUILD_SHARED_LIBS (defaulted to ON) instead of a custom CMake option NGRAPH_STATIC_LIBRARY

* Removed useless comma

* Forcing pugixml to be static event when BUILD_SHARED_LIBS=ON globally.

* Forcing gtest for ie tests to be compiled as a static library.

* Made protobuf and gtest from ngraph always static.
Factorized all the force static logic for ngraph's externals in ngraph's CMakeLists.txt instead of external_*.cmake

* gflags is always static

* Solving cross compilation from Debian 9

* using the same pattern for other ngraph externals

Co-authored-by: emmanuelattia-philips <66060489+emmanuelattia-philips@users.noreply.github.com>
Co-authored-by: Emmanuel Attia <emmanuel.attia@philips.com>
2020-11-18 18:09:41 +03:00
Daria Mityagina
257b420ed6
[IE][VPU]: Interpolate ONNX workaround (#3182) 2020-11-18 17:23:46 +03:00
Tomasz Jankowski
c36aaf8621
nGraph: Fix TopK output sorting by index (#3092) 2020-11-18 14:14:33 +01:00
Piotr Szmelczynski
f90e7b7443
Hard sigmoid ref impl (#3100)
* update HardSigmoid spec

* create HardSigmoid ref impl

* add HardSigmoid to int_executable

* create unit-tests for HardSigmoid

* create onnx_model_hard_sigmoid test

* create onnx prototxt model for hard sigmoid

* add backend/hard_sigmoid to CMakeLists

* Change hard sigmoid prototxt to use attributes

* Change hard_sigmoid onnx model test to have 1 input

* style apply

* Change alpha and beta parameters to be pass by value
2020-11-18 15:52:33 +03:00
Mateusz Bencer
aa622003a8
update tests status (#3186) 2020-11-18 13:32:59 +01:00