Commit Graph
936 Commits
Author SHA1 Message Date
Roman Kazantsev 5e8d1ccf92 Implement Einsum reference in nGraph interpreter (#5923)
* Implement Einsum reference in nGraph interpreter

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

* Apply code-style patch and fix build issues

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

* Fix CI build

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

* Fix fast build and apply code review feedback

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

* Add visitor API tests, check for input type and reduce memory consumption

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

* Apply code style

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

* Add visitor API tests

Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
2021-06-04 11:08:30 +03:00
Ilya Lavrenov 11400135de Developer package update (#5970)
* Updated developer package generation

* Try to fix

* Reuse find_package(InferenceEngine) inside DeveloperPackage

* Fixes for ARM

* Fixed double InferenceEngineDeveloperPackage include

* WA for OpenCV
2021-06-03 12:45:12 +03:00
Mikhail Nosov e5622738e7 Exposing 'Dimension' class to Python nGraph API (#5997) 2021-06-03 08:46:34 +03:00
Ilya Churaev d56cf51c81 Reshape should support reshape to zero shapes (#5828)
* Reshape should support reshape to zero shapes

* Fixed comments

* Fixed backward compatible check

* Fixed myriad tests

* Removed header

* Fixed myriad tests

* Disabled Myriad tests

* Fix tests

* Fixed evaluate

* Fixed comments

* FIxed tests

* Fixed tests

* Fixed code style

* Fixed Myriad tests

* Added more tests
2021-06-03 06:26:30 +03:00
Mateusz Bencer f28c8b199a do not move temporary object (#5962) 2021-06-02 17:17:14 +02:00
Tomasz Dołbniak 3bb91c4e5a Fix of some nGraph python tests (#5778) 2021-06-02 12:57:57 +02:00
Ewa Tusień c77a13ae20 Add support for SparseTensor in Constant op (#5871) 2021-06-02 12:30:33 +02:00
Ilya Churaev 34b02a5254 Fixed KW issues (#5977) 2021-06-02 12:35:27 +03:00
Ilya Churaev df331381e7 Fixed get_all_data_elements_bitwise_identical() method (#5873) 2021-06-02 11:14:02 +03:00
Szymon Durawa 662a8e6db3 Remove redundant constructor_validate_and_infer_types() calls. (#5832) 2021-06-02 10:15:53 +03:00
Jozef Daniecki 143fc069a6 Fix 'operands of different size in bitwise operation' klockwork issue. (#5914)
* Fix 'operands of different size in bitwise operation' klockwork issue.

* Changed 'byte_idx' type to size_t.
2021-06-02 08:50:10 +03:00
Mikhail Nosov 5765a7e35c NGraph FrontEnd Manager - Basic API (#5470)
* NGraph - FrontEndManager - common API
Added Mock frontend for unit testing

* Comment out installation rules

* Fixed review comment
Introduced environment variable OV_FRONTEND_PATH for frontend paths

* Additional cmake cleanup

* More fixes of cmakelists

* Changing template file name for frontends

* Changed copyrights

* Reuse ngraph-utils for file-related operations

* Correct of frontend file extension for macos
More code coverage

* Renamed all methods to according to ngraph-style
In case of unset or empty OV_FRONTENT_PATH - load plugins from current working directory

* Fix review comments
Add clang format target for frontend_manager and mock frontend plugin

* Update docs for FrontEndCapabilities

* Use constants for flags instead of 'enum'

* clang style fix

* Fix comment: using namespace ngraph...

* Fix comment: use replace "frontend_manager" with ${TARGET_NAME} in CMakeLists.txt

* Comment fix: rename 'generic' folder to 'frontend_manager'

* Update documentation comments

* Set FrontEndManager class as 'final'

* Apply review comments

* renamed get_place_by_name_and... to get_place_by_operation_name_and...

* Separated frontend_manager.hpp into 4 header files
2021-06-01 18:25:48 +03:00
Ilya Lavrenov 53ca9b26bb Windows build fix against prebuilt package (#5957)
* Revert "Fixed nGraph lib files for Windows (#5904)"

This reverts commit 442bb4e23a.

* Added inference_engine_transformations.lib back on Windows
2021-06-01 18:21:50 +03:00
Ilya Churaev 442bb4e23a Fixed nGraph lib files for Windows (#5904)
* Fixed nGraph lib files for Windows

* Fixed comments
2021-05-31 16:24:53 +03:00
Evgenya Stepyreva 749fed6805 ExperimentalDetectron* dynamic shape propagation (#5872) 2021-05-28 12:15:53 +03:00
Maxim Andronov 9424272cce [CPU] Fix QueryNetwork for ReferenceNode (#5809)
* has_evaluate() was added
2021-05-28 09:24:38 +03:00
Jozef Daniecki 04f42d8442 Fix IE_CPU.exp_* nGraph UT on Mac (#5796)
* Revert "Azure CI: Exclude IE_CPU.exp_* nGraph UT on Mac"

This reverts commit c9672ee9ec.

* Increased tolerance in exp_* backend tests.
2021-05-28 08:36:51 +03:00
Tomasz Dołbniak ef5ded7878 Obsolete tests removed (#5786) 2021-05-28 07:48:38 +03:00
Tomasz Socha 87a47aa117 🦒Nonzero-adjustment (#5863) 2021-05-27 17:42:52 +03:00
Tomasz Socha 62d15ed59c [nGraph] Make make_broadcast dynamic (#5834) 2021-05-27 15:41:32 +02:00
Vladimir Gavrilov fe8443d9f8 Implement reference nGraph implementation for operations "ExperimentalDetectronDetectionOutput", "ExperimentalDetectronPriorGridGenerator" (#4004)
Implemented reference nGraph implementation for operations "ExperimentalDetectronDetectionOutput" and "ExperimentalDetectronPriorGridGenerator" #43928
2021-05-27 15:17:09 +03:00
Mateusz Bencer 55c73abd7e add editor tests to CI (#5812) 2021-05-27 00:04:39 +03:00
Vladimir Gavrilov 91fd2574df Implement reference nGraph implementation for the operation "ExperimentalDetectronTopKROIs" (#5675)
* Started to write nGraph reference implementation of the operation ExperimentalDetectronTopKROIs.

* Written cpp-file for the nGraph reference implementation of the operation ExperimentalDetectronTopKROIs.

* Code style fixes.

* Started to write evaluate() (in evaluates_map.cpp) for the nGraph operation ExperimentalDetectronsTopKROIs.

* Code style fixes.

* Written evaluate() for ExperimentalDetectronTopKROIs.

* Small fixes.

* Written test for ExperimentalDetectronTopKROIs evaluation.

* Small fix.

* Fixed Apache license header.

* Some changes.

* int64_t was replaced with size_t in the body of ngraph::runtime::reference::experimental_detectron_topk_rois().

* Added more test for evaluation of ExperimentalDetectronTopKROIs.
2021-05-26 17:49:33 +03:00
Egor Duplensky e754a6b46f [CPU] Fix RegionYolo (v3) node and Ngraph reference implementations (#5748) 2021-05-26 11:44:36 +03:00
Anastasia Kuporosova b5c5b6b974 [Python API] Add MemoryState API (#5731)
* [Python API] Add MemoryState API

* use inferRequest instead of IInferRequest

* implement VariableState through cpp

* small fixes + add tests for preprocess_info
2021-05-26 10:46:44 +03:00
Evgenya Stepyreva 94f814bf4e Squeeze with scalar axis (#5811) 2021-05-26 00:41:57 +03:00
Jan Iwaszkiewicz c3ca8d048e [ONNX] ArgMin/ArgMax support for select_last_index (#5661)
* Add Reverse Op to opset

* Worksave with Reverse path

* Add last_index support

* refactor argminmax factory

* Remove old xfail, add new one

* Fix proto file for argmax

* Rewrite test for select_last_index

* Add CPU tests to Manifest

* Update manifest

* Remove Reverse from opset7

* Refactor arg_min_max factory

* Added example comment in arg_min_max

* Codestyle changes
2021-05-25 20:37:07 +03:00
Mateusz Tabaka d509fe64ab [ONNX] Use Reshape instead of Broadcast in v6 operators: Add, Div, Mu… (#5711) 2021-05-25 15:30:01 +02:00
Bartosz Lesniewski 2d0707dd1a Revise Result Op (#5637)
* Add type prop tests for shape and type propagation

* Add visitor test

* Add SLT test class for result op

* Add SSLT for result op

* Add CPU SLT

* Add backend test

* Applying review comments - fix typo in slt, replace type info with NGRAPH_RTTI_DEFINITION

* Applying changes after review comments

* Add result to trusted ops list

* fix adding redundant nodes in slt
2021-05-25 07:06:04 +03:00
Ilya Lavrenov 11af0bd904 CVS-56141 (#5746)
* CVS-56141

* Added dev component for C API
2021-05-25 02:31:15 +03:00
Katarzyna Mitrus eba2410411 Remove deprecated legacy transpose ref function (#5765) 2021-05-24 20:05:29 +03:00
Ivan Tikhonov 0c30ccc120 Single layer tests for Assign/ReadValue ops (#5735)
* add single layer tests for Assign/ReadValue ops

* fix windows build, revert debug changes
2021-05-24 18:58:48 +03:00
Ilya Churaev 25999222b4 Added has_evauate to Node API (#5708) 2021-05-24 14:57:27 +03:00
Alexandra Sidorova a74ba7b18e Fixed Softplus ref (#5755) 2021-05-24 14:34:12 +03:00
Jozef Daniecki 9eb7bfdfc0 More unit tests for Convert reference implementation. (#5745)
* Add Convert unit tests to check C++ to LP types convertion.

* Add unit tests to check LP types to C++ ints.

* Disable LP to C++ ints tets in CPU plugin.

* Remove f64 support from Convert evaluate.
2021-05-24 13:05:54 +03:00
Mikhail Treskin 66d98530d9 Handle 3rd optional input in CTCGreedyDecoderSeqLen evaluate (#5669)
* Handle 3rd optional input in CTCGreedyDecoderSeqLen evaluate

* Add test for OP without blank_index input

* Fix default blank_index calculation
2021-05-24 12:24:46 +03:00
Tomasz Socha 97f020481a [ONNX][ONNX Editor] Generate an input with unknown shape and type for operators without schema. (#5531) 2021-05-24 11:04:11 +02:00
Ilya Churaev d55b9193c5 Fixed AlignedBuffer destructor (#5752) 2021-05-24 11:41:26 +03:00
Mateusz Bencer 3dc1d7f457 [ONNX Editor] Use port indices instead of tensor names, new naming convention of inputs (#5668) 2021-05-21 12:24:51 +02:00
Jozef Daniecki 9e46be75af Low precision types support in Convert operation (#5640)
* Add initial version of u1 type support.

* Turn off u8_to_u1 test in IE.CPU.

* Fix compilation issue.

* Replace std::memset with std::fill.

* Add u4 type support.

* Add i4 support.

* LP types support generalized.

* Remove std::copy optimization.

* Fix backend test for LP types.

* Fixed arm plugin compilation.

* Add LP types to Serialization SLT.

* Add Convert to summarize.py report.
2021-05-21 13:11:43 +03:00
Piotr Szmelczynskiandjdanieck 4b860890ed Revise floor (#5618)
* create type_prop tests

* add visitors test

* fix bug in visitor test

* add RTTI macro

* fix bug in visitors test

* add newline

* update spec

* update spec

* update RTTI definition

* move RTTI definitioion to the top of he file

* Remove broadcast from attribute tests.

* Add Floor-1 to summarize.py report.

Co-authored-by: jdanieck <jozef.daniecki@intel.com>
2021-05-21 07:55:26 +03:00
Vladimir Gavrilov 6bb5a2c3cb Add proper signal_size handling for reference nGraph implementation for operations DFT and IDFT (#5610)
* Added tests for 2D DFT when we have signal_size and axes [0, 2].

* Rewritten reference implementation of DFT and IDFT.

* Code style fixes.

* Reverted changes.

* Added debug prints.

* Temporarily commented some functions.

* Reverted changes in (I)DFT reference.

* Added more debug prints (in evaluates_map.cpp, to evaluate() for IDFT).

* Added setting output shape for DFT and IDFT evaluate() in evaluates_map.cpp.

* Added more tests for signal_size case of DFT.

* Written tests for signal_size case of IDFT.

* Deleted debug prints from (I)DFT reference implementation (the file fft.cpp).

* Deleted debug prints from evaluate() for DFT and IDFT.

* Deleted debug prints from tests for DFT.

* Deleted debug prints from IDFT tests.

* Code style fixes.

* Enabled CPU evaluation tests for DFT and IDFT in CPU supported cases.

* Enabled CPU (I)DFT layer tests.

* Copied fix for specialization of function is_float() for (b)float16 from Pertovsky Aleksandr's PR 5654.

* Reverted changes in the function is_float() from ie_precision.h.

* Disabled BF16 CPU FuncTests for (I)DFT.

* Deleted filling 'buffer' by zeros. Simplified the function lengths_except_given_axis.

* Small fix.

* Code style fix.

* Reverted deleting 'std::fill(buffer.begin(), buffer.end(), complex_type{0.0f, 0.0f});'

* Reverted changes in the function lengths_except_given_axis().

* Changes in the function lengths_except_given_axis().

* Small fix.

* Deleted commented code.

* Simplifications in the function lengths_except_given_axis().

* Deleted commented code.

* Enabled BF16 (I)DFT CPU FuncTests.

* Fixed comments before disabled (I)DFT IE_CPU tests.
2021-05-20 17:57:39 +03:00
Katarzyna Mitrus 82b84c0b61 Fix ng python ShuffleChannels group attribute (#5678) 2021-05-20 12:31:19 +02:00
Ilya Lavrenov 2bdd955d6e Inference engine versioning (#5562)
* 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.

* Added versions to cmake

* Added versions to ie_version.hpp

* 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

* Added InferenceEngineConfig-version.cmake to share as well

* Added verison parsing from ie_version.hpp

* Revert "[CPU] Add Roll support (#5112)"

This reverts commit 5d8f209df6.

* Revert "[CPU] windows_Interpolate_fused-FQ_nearest-mode_nspc-layout_fix (#5317)"

This reverts commit 0808975a37.

* Revert "[INT8][BF16] INT8 + BF16 feature was enabled (#5059)"

This reverts commit 7d2ec02d65.

* Support for components

* No version for IEDevScripts package

* Removed IE_VS_VER_HAS_VERSION from vs_version.rc.in

* Added compatibility for 2.x old versioning
2021-05-20 10:21:44 +03:00
Ilya Lavrenov 46e1e795a2 Removed rpath for ngraph (#5688) 2021-05-20 07:11:02 +03:00
Irina Efode 9568f8120e [IE TESTS] Fix Comparation issue in LayerTestCommon class (#5624)
* [IE TESTS] Fix comparation in LayerTestUtils

* Fixes

* Small fix

* Int4 fixes

* remove extra

* Fix NMS

* Some fixes for tests

* Add small fix

* [IE TESTS] Remove const folding as a result engine

* Remove extra

* Revert remove constant folding (DSR test) & fix some cases for cpu

* Fix GNA
2021-05-19 13:14:35 +03:00
Ewa Tusień ce8e1dc214 Use ShapeOf approach even for static shape. (#5620) 2021-05-19 12:12:48 +02:00
87d6664669 [ONNX] Do not reshape input to DequantizeLinear if scalar (#5260)
Co-authored-by: Ewa21 <ewa.tusien@intel.com>
Co-authored-by: bsledz <bartosz.sledz@intel.com>
2021-05-19 11:26:22 +02:00
Roman Kazantsev b1d1f9287f Implement nGraph transformation to decompose Einsum-7 operation (#5529)
* Implement nGraph transformation to decompose Einsum-7 operation

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

* Use MatMul instead of Eltwise-multiplication and ReduceSum

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

* Add description for new methods

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

* Fix code style

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

* Fix code style #2

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

* Remove unused variables.py

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

* Apply feedback after review: fix comments, new_register_node use

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

* Add Reshape if needed and apply code-review feedback

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

* Fix code-style

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

* Remove unused variable

Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
2021-05-18 13:17:50 +03:00
Maksim Derbasov 61108f1147 Fix warnings, cl compiler (#5641)
* Fix warnings

* make cpplint happy
2021-05-18 07:32:53 +03:00