Commit Graph

3379 Commits

Author SHA1 Message Date
Ilya Lavrenov
39717aea39
Revert "Reuse existing cmake variables" (#5550)
This reverts commit ff583ce868.
2021-05-07 12:17:50 +03:00
Sergey Lyubimtsev
d339cbebfb
Updated list of supported OS for PyPi (#5525)
* Updated list of supported OS for PyPi

* merge of Helena branch

* 55103: add instructions to install Microsoft* Visual C++ Redistributable Package
2021-05-07 12:04:51 +03:00
Elizaveta Lobanova
696aa37c37
[GNA] Fix compilation of topologies with only 2 functional layers: convolution and pooling (#5501) 2021-05-07 12:01:44 +03:00
Ilya Lavrenov
349e2910fe
Openvino autogenerated cmake (#5484)
* Exclude xbyak from install

* Added automatically generated InferenceEngineConfig.cmake

* Reverted a version back

* Fixed issues with target aliases

* Make TBB dependency private

* Made ie_parallel.cmake self-sufficient

* Don't expose ie_paralle.cmake to end users

* Fixed compilation with TBB

* Fixes for TBB

* Fixed vpu_graph_transformer compilation

* Fixed tests compilation

* Added install of ie_parallel.cmake

* Switched ENABLE_ALTERNATIVE_TEMP to OFF. Fixed COMPONENTS for TBB

* Fixed file name in install rules

* Added find_dependency for TBB in ie_parallel.cmake

* WA for cmake bug with PACKAGE_PREFIX_DIR

* Fixed no-deprecation to fix speech-library build

* Reverted version from 2.1.0 to 2.1

* Revert "Reverted version from 2.1.0 to 2.1"

This reverts commit 7cb5d1563c.

* Returned custom version file back

* Added InferenceEngineConfig-version.cmake to share as well

* Disabled one more GPU test

* Added one more WA for CI

* WA for CI issue for C API

* WIP
2021-05-07 11:57:51 +03:00
Mikhail Nosov
8a3d826d69
Add VerifyAndClearExpectations for mocked object stored as shared_ptr (#5541)
It is a known internal issue in gtest when holding a shared_ptr to mocked object, which sometimes reports about memory leak
It is recommended to use Mock::VerifyAndClearExpectations at the end of each test when mock object is not needed anymore

After adding this, issue with incorrect TestThrowOnImport expectations is observed
2021-05-07 11:47:57 +03:00
Szymon Irzabek
ed255eee71
[GNA] Additional PWL segments are added to avoid saturation (#5399)
* [GNA] Additional PWL segments are added to avoid saturation

After design phase for PWL segments has finished,
additional segments are added to avoid saturation.

This commit also reduces the number of PWL segments created
for some layer types.

* [GNA] Make PWL unit tests take into account saturation errata
2021-05-07 11:13:05 +03:00
Vladimir Gavrilov
0c288d506c
MO support for operations DFT and IDFT (#5197)
* Written MO classes for DFT and IDFT operations.

* Added class to read TF (I)FFT operations.

* Written extractors for TF operations FFT, FFT2D, FFT3D, IFFT, IFFT2D, IFFT3D.

* Written MO Roll operation and TF Roll operation extractor.

* Started to write needed transformations.

* Written transformation StridedSlices + Complex + Roll + (i)FFTxD + Roll + (Imag, Real) + Pack -> Roll + (I)DFT + Roll.

* Written transformation for Complex + ComplexAbs.

* Written correction of axes of Roll.

* Small fix.

* Small fix.

* Some fixes.

* Some changes.

* Now TF Roll is read as TFRoll. Written inserting Transposes before and after (I)DFT.

* Small fix.

* Written tests for the transformation TFRollToRoll.

* Added comments to some transformations.

* Deleted redundant import.

* Written tests for the transformation TransposeDFT.

* Fixes in MO IR Reader to read/write (I)DFT.

* Fixes in the list of supported TF layers.

* Started to write tests for SSliceComplexRolledFFTPackBlockReplacement transformation.

* Written tests for the MO transformation SSliceComplexRolledFFTPackBlockReplacement.

* Written tests for the MO transformation ComplexAbs.

* Tests for transformations were moved into unit_tests directory.

* All extractors for (I)FFTxD are in one file now.

* Deleted redundant transformations.

* Fixed extractor for TF Roll: now this operation is read as MO Roll.

* Added comments to TFFFT operation.

* The method insert_transpose of classes TransposeDFT and LayoutChangeForGatherND was moved into the separate function in the file model-optimizer/extensions/middle/InsertLayoutPropagationTransposes.py.

* Fixed comment for the transformation TransposeDFT.

* Small fix.

* Some fixes.

* Deleted shape infer function for the operation TFFFT. Sorted imports in complex_abs.py.

* Small fixes.

* Deleted redundant import.

* Fixes in some asserts.

* Small fix.

* Added names for created nodes in the transformation ComplexAbs.

* Added comments to the method canonicalize_axes.

* The transformation SSliceComplexRolledFFTPackBlockReplacement was split into the sequence of transformations SSliceComplexRollReplacement -> RollRealImagPackReplacement -> TFFFTToDFT.

* Written tests for the transformation SSliceComplexRollReplacement.

* Written tests for the transformation RollRealImagPackReplacement.

* Written tests for the transformation TFFFTToDFT.

* Deleted commented code.

* Fixed types of constants in the transformation ComplexAbs.

* Written tests for canonicalization of signal_size value.

* Deleted 'Replacement' from names of files and classes.

* Used comarison of ids, not names.

* replace_sub_graph was replaced with find_and_replace_pattern.

* Now the transformation RollRealImagPack is executed before running transformation model-optimizer/extensions/front/Pack.py.

* The body of the function create_dft_from_tffft is a part of the transformation TFFFTToDFT body now.

* Now method correct_roll_axes of classes RollRealImagPack and SSliceComplexRoll is moved to the function in mo/front/tf/graph_utils.py.

* Small changes.

* Added comment before mark_input_as_in_correct_layout(roll, 2).

* Now the functions correct_roll_axes generates sub-graph in the input port 2 of Roll.

* Corrected tests for the transformation SSliceComplexRoll.

* Corrected tests for the transformation RollRealImagPack.

* Deleted commented code.

* Some renaming.

* Added decomposition of the separate operation ComplexAbs (without Complex before it).

* Added comment to the transformation ComplexAbsAfterComplex.

* Optimized imports for the transformation TFFFTToDFT.

* The transformation SSliceComplexRoll was split into the sequence SSliceComplex -> CorrectRollAxes and disabled.

* Written tests for the transformation ComplexAbs.

* Written tests for the transformation SSliceComplex.

* Written tests for the transformation CorrectRollAxes.

* Deleted the transformation SSliceComplexRoll.

* Deleted renaming nodes.

* Fixed comment.

* Small fixes.

* Small fix.

* The attribute need_correction was renamed as input_rank_changed.

* Small fixes.

* Deleted commented code.

* Now we iterate over all complex_node.out_port(0).get_connection().get_destinations() input ports and mark the corresponding nodes with the marker attribute.

* Added the attribute 'in_ports_count' into the class FFTBase.

* Tests for the transformation TransposeDFT were rewritten using helper functions.

* Now the transformation RollRealImagPack uses existing Roll node instead of creating new one.

* Small fixes.

* Fix in the documentation.

* Written class to read MxNet (I)FFT operations. Written corresponding extractors.

* Corrected shape infer function for MXFFT operation. Written transformation to convert MXFFT to (I)DFT.

* Fixed shape infer function.

* Fixed the conversion MXFFT to (I)DFT.

* Written tests for the transformation MXFFTToDFT.

* The function correct_roll_axes was replaced with more generic function add_constant_to_negative_values.

* Fixes in classes TFFFT, FFTBase, DFT, IDFT, MXFFT.

* Added asserts in constructors of operations TFFFT and MXFFT.

* Refactored transformation MXFFTToDFT: conversion of DFT and IDFT were moved into separated functions.

* Moved some commented code.

* Fixed BOM file.

* Written function convert_ifft_to_dft.

* Started to rewrite tests for MXFFTToDFT transformations, in the case is_inverse=False.

* Small fixes.

* Fixes in the transformation RollRealImagPack.

* Renaming tests class for the transformation SSliceComplex.

* Fixes in the function compare_graphs. Now we get all output nodes of op node, and these output nodes are sorted by names.

* Fixed tests for the transformation MXFFTToDFT.

* Fix in the transformation ThresholdedReluDecomposition: added disconnect for trelu input port.

* Fixes in test for the transformation TFSliceToSlice.

* Small fix in the transformation ObjectDetectionAPIPreprocessor2Replacement.

* Small fix in comment.

* Optimized imports.

* Used remove_node in the transformation ThresholdedReluDecomposition and remove_nodes_from in the transformation RollRealImagPack, instead of ports disconnection.

* Deleted commented code.

* Deleted test case test_slice_replacer_begin_with_2_inputs.
2021-05-07 09:44:24 +03:00
Vladimir Zinoviev
8645c08396
[LPT] Zero point insertion in case of zero value on FQ output high (#5467)
* [LPT] Zero point insertion in case of zero value on FQ output high

* [LPT] Change precision in test on the real default precision[0]
2021-05-06 21:48:36 +03:00
Ilya Lavrenov
a8289b58c4
Fixed TBBBind_2.4 usage for RelWithDebInfo (#5535) 2021-05-06 21:21:23 +03:00
Artemy Skrebkov
a8b5f1f4a3
Update opencv package for yocto (#5536) 2021-05-06 20:57:59 +03:00
Roman Donchenko
2c755aaf6f
Fix incorrect plural: childs -> children (#5532) 2021-05-06 20:08:42 +03:00
Gorokhov Dmitriy
a19413c0c0
[CPU] Plugin migration on ngraph (#4344) 2021-05-06 19:49:24 +03:00
Poliksenov Ivan
2bb8e9facc
[IE][VPU]: Removed constant DDR_MAX_SIZE = 512. (#4372)
* Removed constant DDR_MAX_SIZE = 512.
Removed the DDR_MAX_SIZE constant as it could potentially lead to incorrect behavior of devices with a different DDR size (Prism Creek can be up to 2 GB in size). Removed the use of this constant in methods.
2021-05-06 17:29:06 +03:00
Jozef Daniecki
2896b3af8c
Convert op specification refactoring. (#5530)
* Convert op specification refactoring.

* Minor readability improvements.

* Fixed 'category' formatting.
2021-05-06 17:16:52 +03:00
Anton Chetverikov
b3c1dd9de3
Add sys_platform environment marker to version checker (#5437)
* Add sys_platform environment marker

* Update sys_platform check

* Add unit tests for sys_platform marker

* apply review comments

* Fix typo

* Update checker and tests, apply comments

* Update comments parsing and tests

* Fix commrnt

* Resolve comments and update check logic

* Update tests and fix bug with negative tests

Co-authored-by: achetver <anton.chetverikov@.intel.com>
2021-05-06 16:20:37 +03:00
Anton Chetverikov
e86b9b17b0
Update Gather-7 specification (#5441)
* Allow nagative values for batch_dims

* Update formula

* Update spec according to comments

* clarified cases when batch_dims and axis less than zero and enhanced restriction for index types

Co-authored-by: Pavel Esir <pavel.esir@intel.com>
2021-05-06 16:01:53 +03:00
Vladimir Zinoviev
ec7b1f4416
[LPT] Improve Etlwise branch selection logic (#5208) 2021-05-06 15:54:56 +03:00
Andrey Zaytsev
5e4cd1127b
Integrate UAT fixes (#5517)
* Added info on DockerHub CI Framework

* Feature/azaytsev/change layout (#3295)

* Changes according to feedback comments

* Replaced @ref's with html links

* Fixed links, added a title page for installing from repos and images, fixed formatting issues

* Added links

* minor fix

* Added DL Streamer to the list of components installed by default

* Link fixes

* Link fixes

* ovms doc fix (#2988)

* added OpenVINO Model Server

* ovms doc fixes

Co-authored-by: Trawinski, Dariusz <dariusz.trawinski@intel.com>

* Updated openvino_docs.xml

* Edits to MO

Per findings spreadsheet

* macOS changes

per issue spreadsheet

* Fixes from review spreadsheet

Mostly IE_DG fixes

* Consistency changes

* Make doc fixes from last round of review

* integrate changes from baychub/master

* Update Intro.md

* Update Cutting_Model.md

* Update Cutting_Model.md

* Fixed link to Customize_Model_Optimizer.md

Co-authored-by: Trawinski, Dariusz <dariusz.trawinski@intel.com>
Co-authored-by: baychub <cbay@yahoo.com>
2021-05-06 15:37:13 +03:00
Victor Kuznetsov
4790c79eb4
Add time_tests dir path to sys.path (#5498) 2021-05-06 14:57:50 +03:00
Polina Brzezinskaya
a411af1668
[IE][VPU]: Fix for crash in Myriad plugin during LoadNetwork with Hetero plugin (#5222) 2021-05-06 14:47:10 +03:00
Egor Duplensky
5bd6343ce5
Extend filling roi data for other precisions (#5432)
by making it template.
2021-05-06 14:44:01 +03:00
Yegor Kruglov
abb1ca657e
Implementation of ArgMin ONNX + TF extractors (#5126)
* implement argmin extractors

* reconsidering argmax to topk

* arg ops refactoring

* rename ArgMaxToTopK

* added unittests

* update docs

* move unittest file to new folder

* conversations resolving

* revert changes with argmax.py, move argmin op to a new file

* rename ArgMaxSqueeze

* updated BOM file

* little fix

* code refactoring in ArgMaxOp, updated unittests

Co-authored-by: yegor.kruglov <ykruglov@nnlvdp-mkaglins.inn.intel.com>
2021-05-06 13:41:49 +03:00
Yegor Kruglov
e3ea9bf4dd
fix incorrect input names for mean values (#5508) 2021-05-06 13:33:51 +03:00
Irina Efode
935405ad2d
[IE TESTS] Remove dummy file for beh tests (#5436) 2021-05-06 12:56:09 +03:00
Victor Kuznetsov
5834eef8f0
Change model_path to model_name in timeline report (#5457) 2021-05-06 11:54:16 +03:00
Vladimir Paramuzov
30b9d2ba13
[IE CLDNN] Disabled vectorized ocl path for modes with bool output (#5521) 2021-05-06 11:33:14 +03:00
Vladimir Paramuzov
fa4a67ab25
[IE CLDNN] Fixed FQ in byxf layout and pooling in fsv32 with int8 input (#5431) 2021-05-06 11:31:29 +03:00
Vladislav Golubev
49a53854e2
ConcatTransformation fix (#5482)
* [LPT] ConcatTransformation: fixed naming of outputs after split

* [LPT][TESTS] Concat with split tests: added verification of output names
2021-05-06 10:58:34 +03:00
Mikhail Nosov
dde837c4eb
Add InferenceEngine::Core::LoadNetwork(modelPath, deviceName) to API_Changes (#5514) 2021-05-05 19:20:38 +03:00
Vladimir Gavrilov
62b1f655c0
DFT and IDFT nGraph Python API (#5387)
* Added nGraph Python API for operations DFT and IDFT.

* Written tests for the DFT Python API.

* Written tests for IDFT nGraph Python API.

* Small fixes.

* Started to add tests for the signal_size case.

* Written tests for signal_size case of DFT.

* Written tests for signal_size case of IDFT.

* Some code style fixes in IDFT nGraph Python API tests.

* Code style fixes in tests for DFT nGraph Python API.

* Now DFT nGraph Python API tests are used numpy FFT ressults as expected results of tests.

* Now IDFT nGraph Python API tests without signal_size are used numpy FFT result as input data.

* Now IDFT nGraph Python API tests use numpy IFFT as expected results for signal_size cases.

* Deleted redundant function.

* Formatting fix.

* Now test data for DFT and IDFT nGraph Python API are randomly generated.

* Added seed initialization.
2021-05-05 17:17:46 +03:00
Patryk Elszkowski
34060eb5f8
add Constant v1 to verified operations (#5412)
Co-authored-by: Patryk Elszkowski <patryk.elszkowki@intel.com>
2021-05-05 16:47:25 +03:00
Ilya Lavrenov
1c2eaca49e
Fixed memory leak in IR reader (#5507) 2021-05-05 16:25:11 +03:00
Tomasz Socha
c362b3e105
[ONNX] Fix missmatches for opset13 *Max operators. (#5443) 2021-05-05 13:34:26 +02:00
Patryk Elszkowski
dc49035eaa
update tanh v1 spec (#5413)
* update tanh v1 spec

* Apply review suggestions

* add rounding info

* Move Tanh to activation functions

* reorganize spec and add rounding rule for integers

* back to arithemtic functions

* Update `short description` to adjust with new EW description template

Co-authored-by: Patryk Elszkowski <patryk.elszkowki@intel.com>
2021-05-05 14:27:51 +03:00
Evgeny Lazarev
98783b88ac
Removed transformation which removes Const->Result sub-graphs (#5295)
* Removed transformation which removes Const->Result sub-graphs

* Removed one more MO transformation which removes Const->Result sub-graph during the front phase
2021-05-05 14:24:05 +03:00
Ilya Lavrenov
67e2a17db1
Reuse existing cmake variables (#5511) 2021-05-05 14:08:07 +03:00
Jan Iwaszkiewicz
511cddb87f
[nGraph] Add documentation strings (#5418) 2021-05-05 10:15:07 +02:00
Tomasz Dołbniak
2867aab94d
[IE CLDNN] Fix for a segfault discovered in ONNX Pad tests (#5444) 2021-05-05 10:00:49 +03:00
Andrey Dmitriev
ffb3a4d32b
[GNA] Run caching test (#5477) 2021-05-05 09:55:27 +03:00
Ilya Lavrenov
49c9f2e6b0
Removed IE API version print (#5502) 2021-05-04 20:43:04 +03:00
Andrei Molotkov
f93c5e09aa
[IE CLDNN] Fix bug with incompatible node and memory layouts (#5499) 2021-05-04 17:06:57 +03:00
Gleb Kazantaev
b291ca8cfa
Use Serialization as a default engine in MO (#5347)
* Use Serialization as a default engine in MO

* Added cmd option to use old serialization

* Added mapping file generation

* Test mapping file generation

* Fix setBatchsize parameters order; fix mapping file generation

* Added FrameworkNode; added method to read models with custom ops but without extensions

* Added python API for read_network_without_extensions function; updated mo not to use IECore

* Added read_model_without_extensions to IReader and IParser

* Fix V7 IR reader

* Fix pword value

* Fix dllexport macro usage

* Add metainfo to IR

* Fix nGraph code style

* Fix license header

* Restore prepare_emit_ir behaviour

* Fix compare_function to resolve situation when Result input port has multiple names

* Update Compare Functions

* Fix FrameworkNode validation

* Self-review

* CodeStyle check

* --use_fallback -> --use_legacy_ir_generation

* Sort imports in main.py

* --path_to_model -> --input_model

* Use logging instead of print

* Code simplifucation&cleanup

* Fix offline_Transformations key

* Fix GeneraeMappingFile comments

* Use Extension approach to work with custom ops

* Fix versions check

* Code clean-up

* Moved FrameworkNode to inference_engine_transformations library

* Fix FrameworkNode includes

* Code clean-up
2021-05-04 16:40:20 +03:00
Vladimir Zinoviev
866515184c
[LPT] Checks to not transform layers with incorrect zero points (#4764)
* [LPT] Checks to not transform layers with incorrect zero points

* [LPT] Fold not transformed weights

* [LPT] Minor fixes; review from #5313
2021-05-04 16:02:27 +03:00
Nico Galoppo
895b605c06
[IE CLDNN] Fix OpenCL dependency for clDNN tutorials (#5491) 2021-05-04 15:52:33 +03:00
Olesya Martinyuk
d16c215fde
Add CPU info to time tests (#5451) 2021-05-04 14:49:10 +03:00
Egor Duplensky
2a580e7c26
Extend blobs dumping with filtering by environment variables (#5113)
* Extend blobs dumping with filtering by environment variables

The idea is to dump blogs without rebuilding

We cannot just use environment variables without compile-time flag
because of security flaws.

Instead, it is expected that developers just always set additional
macro (BLOB_DUMP_PATH) which is not set for the production builds:

export CXXFLAGS="-DBLOB_DUMP_PATH=\\\"mkldnn_dump\\\""

This macro activates blob dump filtering using environment variables.

To prevent unnecessary dumping, blobs are not dumped by default even
if macro is defined.
2021-05-04 14:36:28 +03:00
Roman Kazantsev
d716db4acc
Extend Python nGraph API with Einsum-7 and test nGraph reader (#5486)
* Extend nGraph Python API and test IE IR reader for Einsum

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

* Format description for test auxiliary function

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

* Remove print from the python test

Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
2021-05-04 14:04:21 +03:00
Ilya Lavrenov
e8a2ca6fb6
Added precompiled headers to inference_engine_obj (#5490) 2021-05-04 12:27:48 +03:00
Paul Youngsoo Ahn
29a8be523d
[IE CLDNN] Extended eltwise fusing (#5181)
* [cldnn] Add initial fused conv eltw POC

- Add cldnn unit test
- Add fused dependency list to the fused_primitive_desc
- fuse_nodes update for saving fusing history and depenecies
- Modify Jitter to create jit constants using fused dependencies
- Add cldnn unit-test cases for multiple serial and parallel eltwise fuse pattern
- Modify Jitter and add default values in sum input

Signed-off-by: Ahn, Paul Y <paul.y.ahn@intel.com>

Co-authored-by: Andrew Kwangwoong Park <andrew.kwangwoong.park@intel.com>

* [cldnn] Update fused_conv_eltwise cldnn unit test

- Add execute and compare function
- Add cldnn unit-test case for multiple parallel eltwise and additional eltwise
- Add cldnn unit-test case for combination of multiple parallel eltw
- Add cldnn unit-test cases for serial and diverged quantize and eltwise

Signed-off-by: Andrew Kwangwoong Park <andrew.kwangwoong.park@intel.com>

* [cldnn] Modify checking fusibility of eltwise fusing

- Add new checking fusibility rule in prepare_primitive_fusing
- Move cldnn eltwise fusing test to fusing_gpu_test.cpp
- Modify method to get input var name in  jitter

Signed-off-by: Ahn, Paul Y <paul.y.ahn@intel.com>

* [cldnn] Fix fusing item type and activation fusibility checking condition
- Extract input_data_supports_fusings from fuse_activaion_f
- Fix checking supported mode bug

Co-authored-by: Andrew Kwangwoong Park <andrew.kwangwoong.park@intel.com>
2021-05-04 09:57:06 +03:00
Ilya Lavrenov
b47d11e31e
Removed useless iostream include (#5357)
* Removed useless iostream include

* Fixed samples compilation

* Klockwork fixes for template plugin
2021-05-03 17:12:00 +03:00