Commit Graph
3483 Commits
Author SHA1 Message Date
iliya mironov 642a62d0e2 Add axis support (#5242)
* Add axis support

* Update dequant extractor

* Update qdeq ops

* Refactoring quantize

* Update dequantize resolver

* Update dequantize op

* Refactoring dequantize

* Some fixes for quantize and dequantize

* Update unit tests

* Reafctoring quantize/dequantize axis support

* Move quantize/dequantize resolvers to middle

* hot fix

* Fix unit tests

* Fix unit tests

* Update quintize resolver comment

* Refactoring code according to code review

* Fix according to review

* Change order for transforms quantize pipline
2021-05-17 15:03:22 +03:00
Ilya Churaev c029b07d34 Deprecate unused Tensor methods (#5630) 2021-05-17 14:16:44 +03:00
Patryk ElszkowskiandPatryk Elszkowski 8300e9d5a1 update reshape spec (#5575)
* update reshape spec

* fix input description

* use T_SHAPE instead T_INT

Co-authored-by: Patryk Elszkowski <patryk.elszkowki@intel.com>
2021-05-17 13:44:31 +03:00
Mikhail Nosov d20900e235 [Caching] Add caching options to benchmark app (#4909)
* Python API for LoadNetwork by model file name

* BenchmarkApp: Add caching and LoadNetworkFromFile support

    2 new options are introduced
    - cache_dir <dir> - enables models caching
    - load_from_file - use new perform "LoadNetwork" by model file name

    Using both parameters will achieve maximum performance of read/load network on startup

    Tests:
    1) Run "benchmark_app -h". Help will display 2 new options. After available devices there will be list of devices with cache support
    2) ./benchmark_app -d CPU -i <model.xml> -load_from_file
    Verify that some test steps are skipped (related to ReadNetwork, re-shaping etc)
    3) Pre-requisite: support of caching shall be enabled for Template plugin
    ./benchmark_app -d TEMPLATE -i <model.onnx> -load_from_file -cache_dir someDir
    Verify that "someDir" is created and generated blob is available
    Run again, verify that loading works as well (should be faster as it will not load onnx model)
    4) Run same test as (3), but without -load_from_file option. Verify that cache is properly created
    For some devices loadNetwork time shall be improved when cache is available

* Removed additional timing prints

* Correction from old code

* Revert "Removed additional timing prints"

Additional change - when .blob is chosen instead of .xml, it takes priority over caching flags

* Removed new time printings

As discussed, these time measurements like 'total first inference time' will be available in 'timeTests' scripts

* Fix clang-format issues
2021-05-17 13:41:15 +03:00
Vladimir Paramuzov 647acffd1d [IE CLDNN] Fixed eltwise shrink when node has fused ops (#5570) 2021-05-17 13:21:24 +03:00
Mikhail Treskin c1a38109c7 [SubgraphsDumper] Extract statistics instead of constants with weights. (#5149)
* Store weights range in meta info instead of cloning whole constant

* Add command line option for constants size serialization threshold

* Update IR Runner to handle OP meta information

* Fix interpolate type_prop tests

* Skip new failures in SLT

* Fix models count

* Add dynamism elimination option.

* TopK shape propagation changed

* Fix type_prop tests for TopK
2021-05-17 12:13:02 +03:00
Krzysztof BrunieckiandElizaveta Lobanova 606d0f363a [GNA] Fix concat scale factors calculation (#5454)
* [GNA] Fix concat scale factors calculation

* Add tests with Input | Constant -> Strided Slices -> Concat

  Topology:
       Constant                Parameter
        |   |                    |   |
    +---+   +---+            +---+   +---+
    |           |            |           |
  SS_1c  ...  SS_Nc        SS_1p  ...  SS_Np
    |           |            |           |
    |           +----+  +----+           |
    |                |  |                |
    +-------------+  |  |  +-------------+
                   \ |  | /
                    Concat
  Legend:
      SS == Strided Slice

* Apply review

Co-authored-by: Elizaveta Lobanova <elizaveta.lobanova@intel.com>
2021-05-17 11:59:34 +03:00
Mateusz Bencer 880b45a770 Add high level API to ONNX Editor (#4927) 2021-05-17 10:11:49 +02:00
Szymon Durawa d5a8861475 Update specification for ConvolutionBackpropData. (#4679)
* Update specification for ConvolutionBackpropData.

* Add backticks to attribute types, changed layout description for input, filter and output.

* Correct xml example.

* Add new examples.

* Add link with convolution backprop description.

* Repleace additional link with argxiv website.

* Insert enumeration for examples.

* Fix example with output_shape input.
2021-05-17 09:21:07 +03:00
Aleksandr Pertovsky d2fb57dfe0 [CPU] Add DFT/IDFT ops (#5383) 2021-05-17 08:45:34 +03:00
Pavel Esir c3b4181183 [nG] Add upgrading transformation Gather-1 -> Gather-7 (#5571)
* add upgrading gather1 -> gather7 transformation

* added G1->G7 to common_optimizations list but by default in turned off

* fixed a couple of typos in comments

* corrected validation error messages for GatherBase

* removed redundant comments

* clang format fix

* coNverts v1::Gather into v7::Gather

* added explicit batch_dims = 0, corrected axis bound check for dynamic data_rank
2021-05-17 08:11:17 +03:00
Szymon Durawa 4dd31d0798 Ref implementation transposed convolution visitor test (#5474)
* Add visitor test for convolution_backprop.

* Add test to CMakeLists, corrected input shapes.

* Add checking attributes count.

* Extend test for all autoPad types.
2021-05-17 06:58:28 +03:00
Ilya Lavrenov 1353ed1f85 Support old TBBs in cmake (#5638)
* Support old TBBs

* Don't reset environment

* Removed useless NO_CMAKE_FIND_ROOT_PATH

* Fixed build with old TBB for Windows

* Fixed ngraph code style
2021-05-15 11:42:09 +03:00
Edward Shogulin 56bff02a8b [LPT] [CPU] Convert dequantization shift in low precision before FP32 conversion in CPU (#5247)
* [LPT] [CPU] Convert dequantization shift in low precision before FP32 conversion in CPU

* [LPT] Avoid not neccessary conversion to FP32

* [LPT] Split workaround: replace_node manual handling

* [nGraph] [LPT] Q/DQ representation on weights extension: update transformation for conversion to old format

* review notes fix

* [LPT] checkZeroPoint reuse
2021-05-15 08:48:00 +03:00
Evgeny LazarevandGleb Kazantaev 717499cf2f Common telemetry (#5032)
* Moved telemetry to repo root directory from MO

* New telemetry package in the "openvino" sub-directory

* Removed telemetry from the MO BOM

* Updated MO BOM and added stub file for telemetry

* Fixed license header

* Fixed license headers and cleaned up the telemetry setup.py

* Fixed import

* Added temporary dependency for openvino-telemetry

* Added ignore for pylint issues

* Fixed import statements

* Updated imports in the telemetry library

* Removed telemetry library. Added link to another private repo

* Removed redundant start_session event for the MO

* Changed approach to import the telemetry library

* Minor code refactoring

* Updated MO telemetry events sending messages

* Refactor sending events for the IE runtime check

* Disable forcing warnings for deprecated methods

* Removed changes from the requirements.txt to install telemetry library to avoid merge conflicts

* Update copyright in the model-optimizer/mo/utils/telemetry_stub.py

Co-authored-by: Gleb Kazantaev <gleb.nnstu@gmail.com>

Co-authored-by: Gleb Kazantaev <gleb.nnstu@gmail.com>
2021-05-14 21:56:03 +03:00
Ilya Lavrenov c500f0a783 Removed CPU GEMM cmake stuff (#5642)
* Removed CPU GEMM cmake stuff

* Fixed code style
2021-05-14 21:27:12 +03:00
Andrei Molotkov c67c2f4691 [IE CLDNN] Improving graph initialization step (#5602) 2021-05-14 19:35:08 +03:00
Alexander Zhogov 150b9478e1 Azure CI: Enable IB for CPU func tests (#5639) 2021-05-14 19:27:18 +03:00
Ilya Lavrenov a3448032ca Minimized legacy usage in tests (#5591)
* Minimized legacy usage in tests

* Use legacy only for specific files

* Fixed code style

* Fixed linkage

* Removed old CPU / GPU tests binaries

* Test

* Disabled IB console

* Disabled test for AUTO QueryNetwork from parallel threads
2021-05-14 18:47:54 +03:00
Gleb Kazantaev 500b922457 Set default InitConstMask treshold to zero (#5515) 2021-05-14 18:47:13 +03:00
Sergey Lyubimtsev addf7dc1e0 remove package_data and entry_points (#5635) 2021-05-14 18:02:35 +03:00
Ilya Naumov a810db0302 Set more strict requirements for IE python samples (#5223)
* set more strict requirements for IE python samples

* change opencv-python requirement to >=

* set opencv-python requirement  to 4.5.x.x
2021-05-14 17:48:27 +03:00
Ivan KochinandKochin, Ivan 8c0f24d4bd Remove temporary CMake solution and use updated tbbbind_2_4 package (#5598)
* Remove temporary cmake solution and use updated tbbbind_2_4 package

* Remove testing version of dependency

* Add versioning

Co-authored-by: Kochin, Ivan <ivan.kochin@intel.com>
2021-05-14 16:21:37 +03:00
Ilya Naumov e8eebf4ccc Align pip requirements of benchmark tool, cross check tool, IE Python API (#5199)
* align pypi deps of benchmark, cross check tool, python API

* move cython from python API requirements to requirements-dev

* change requirements to >= for most packages

* update requirements

* set pinned numpy major version in wheel requirements

* set more strict pip requirements-dev in wheel

* change scikit-image version to 0.17
2021-05-14 16:05:38 +03:00
Ilya Naumov 3e076a88aa Align MO pip requirements (#5171)
* Align MO pip requirements

* fix missing mxnet on platforms other than Windows or Linux

* remove spaces near environment markers
2021-05-14 16:05:25 +03:00
Ilya Lavrenov 167aa8eb66 Added custom versiob of find_dependency (#5628) 2021-05-14 16:03:49 +03:00
Gorokhov Dmitriy 76cc22beb3 Revert "Added MVN fusion for case with constants inside (#4961)" (#5632)
This reverts commit 621e36ee79.
2021-05-14 15:41:11 +03:00
Vladislav Volkov d2c9bddff1 Convert operation optimization for FP16 -> INT8 and FP32 -> INT8 (#5275)
Improvements for ConvertPrecision transformation pass
2021-05-14 13:48:02 +03:00
azhogov c9672ee9ec Azure CI: Exclude IE_CPU.exp_* nGraph UT on Mac 2021-05-14 13:41:35 +03:00
Alexandra Sidorova b737e6ec96 [CPU] Fixed blocked layout conditions for DepthToSpace, SpaceToDepth (#5569) 2021-05-14 13:22:03 +03:00
Maksim Derbasov 4d1cd0e79d Warnings fix for tests. Spotted by cl compiler (#5616) 2021-05-14 13:08:23 +03:00
Yury Gaydaychuk 79e197218e [CPU] Reducenode handles negative input (master) (#5494) 2021-05-14 13:05:22 +03:00
Vladimir Paramuzov 0bac48d5ba [IE CLDNN] Disable blobs reuse if shapes differ (#5567) 2021-05-14 12:12:04 +03:00
Pavel Esir 5fa899a39e [nG] Gather-7 update for negative batch_dims (#5522)
* corrected negative batch_dims normalization, some improvements in dynamism for Gather_7

* corrected transformation

* added batch_dims and axis normalization for reference

* updated INTERPRETER backend tests; replaced sizet_t -> int64_t in Gather evaluate

* returned back size_t in reference

* made Gather-1 source compatible with previous ngraph library versions

* added unittest for v7->v1, with nonzero batch_dims transformation should not be executed

* fix axis validation error message

* fix batch_dims gettter

* fixed v7->v1 unittest for nonzero batch_dims
2021-05-14 10:31:36 +03:00
Maksim Kutakov 75fa5057e1 [CPU] Disable zp fusing for 3d dw conv (#5563) 2021-05-14 10:15:42 +03:00
Alexandra Sidorova 621e36ee79 Added MVN fusion for case with constants inside (#4961) 2021-05-14 07:52:05 +03:00
Bartosz Lesniewski 61e9d020d4 Revise Unsqueeze op - tests (#5579)
* Add visitor test, separate backend test from common fused op file

* Add SSLT, separate empty axes squeeze case in SLT

* Add unsqueeze to trusted op list

* removing trailing whitespaces

* Add missing newlines at file end

* Review comments - actually running backend tests, fixed typo in visitor test
2021-05-14 07:44:48 +03:00
Bartek Szmelczynski 314a1d7de3 Revise gelu (#5327)
* add type_prop and backend tests for gelu op

* add visitor test for gelu op

* add additional type_prop and backend tests and remove gelu from manifest

* resolve conflicts

* fix indentation and remove unecessary includes

* remove gelu from manifests
2021-05-14 07:39:48 +03:00
Ilya Churaev 6e6e4b7c3a Added additional check for friendly names (#5586)
* Added additional check for friendly names

* Fixed Functional tests
2021-05-13 23:20:53 +03:00
Gabriele Galiero Casay 4bc98766ed Revise single layer tests for Reduce ops (#5557)
* Add serialization single layer tests for reduction operations

* Add ReduceSum to the list of trusted ops

* Minor changes in single layer tests for reduction ops
2021-05-13 22:15:01 +03:00
Ilya Lavrenov f88611e5a2 Removed FPGA constant from tests (#5626) 2021-05-13 21:53:08 +03:00
Sergey Lyubimtsev 5af767a0a2 Add MO extras requires for supported DL frameworks (#5615)
* Add extras requires for supported DL frameworks

* fix pylint issues

* codestyle (PEP8)

* Indentation
2021-05-13 20:20:41 +03:00
Shoujiang Maandmyshevts 40ffca6fa2 [Auto Plugin] Auto plugin component in IE (#5366)
* Implement AUTO plugin

Usage:
	1. -d AUTO
	2. -d ""

Signed-off-by: Shoujiang Ma <shoujiang.ma@intel.com>

* Add tests for AUTO plugin

Signed-off-by: Shoujiang Ma <shoujiang.ma@intel.com>

* cleaned impl, that was incorrect from the async perspective, ansl also capturing the blobs in the constructor

* Revert benchmark_app modification

Signed-off-by: Shoujiang Ma <shoujiang.ma@intel.com>

* Address reviewer's comments: need CI tests to verify

Signed-off-by: Shoujiang Ma <shoujiang.ma@intel.com>

Co-authored-by: myshevts <maxim.y.shevtsov@intel.com>
2021-05-13 17:04:38 +03:00
Krzysztof Bruniecki 05b62258c7 [GNA] Improve CNN2D kernels/weights quantization (#5370)
* Introduce heuristic for weight reducer
     * handle kernels 3x3 and 7x1 to avoid saturation
     * enable tests
     * issue 54140
2021-05-13 16:31:23 +03:00
Vladimir Zinoviev 9248a5887d [LPT] Split mixed precision support (#5596) 2021-05-13 15:03:23 +03:00
Chenhu Wang 516479ae20 [CPU]shuffle_channel optimization (#4978) 2021-05-13 13:43:42 +03:00
Tatiana Troilova 5c40613247 updated third-party-programs.txt (#5607) 2021-05-13 13:30:20 +03:00
Vladimir Paramuzov c1b1e2e7af [IE CLDNN] Fixed FC weights check (#5568) 2021-05-13 09:17:32 +03:00
Ilya Lavrenov 07a49184c0 Fixed typo in length (#5611) 2021-05-13 07:52:55 +03:00
Bartosz Lesniewski 39fde540d2 Revise Unsqueeze op - op class (#5555)
* revise unsqueeze op class

* Added checks and tests for second input incorrect type and shape

* Remove axes type constraints to keep backward compatibility
2021-05-13 07:45:29 +03:00