Commit Graph

732 Commits

Author SHA1 Message Date
Gleb Kazantaev
c307f206dc Optimize Function Topological Sort (#8519)
* Initial optimization implementation

* Add tests

* Updated function and node accessors

* Avoid using static mutex in get_ordered_ops

* Apply comments

* resolve PR comments

* Move mutex up

* Simplify shared info

* Fix info copying in node copy c-tor

* Move friend declarations to public

* Fix to support node access from multiple functions in different threads
2021-11-17 11:43:19 +03:00
Ilya Lavrenov
51b9dff1bc Windows static (#8578)
* Enable LTO for oneDNN GPU

* Use importer target for onednn_gpu

* Fixed install of OpenCL, ittapi

* Try to enable samples build

* Fixed ie_wheel build

* Disabled samples

* Fixed incorrect install of pugixml in dynamic build

* Fixed clDNN_unit_tests64 link

* Minimized a number of hardcoded paths

* Switched off ITT

* Disable TBBBind for static Windows

* Fixed link on Windows

* Fixes

* Static build for Window

* Disable unit-tests

* Disabled TF

* Fixed add dependency for PDPD unit tests

* Disabled GNA

* Enabled ngraph test utils

* Fixes

* Fixes

* Disable clDNN for static build on Windows

* Dynamic MCVS runtime for OpenCL

* Disable ITT traces for static libs

* Ability to switch TBBBind_2_5 OFF

* Disabled GPU on Windows build

* Fixed libGNA link

* Disabled some GNA tests

* Fixed multiple definitions issue

* Hide FrontEnd::load in DLL

* Install libGNAStubs

* Trying to fix Windows

* Trying to fix frontends

* Passed compilation on Windows

* Updated install rules for ngraph backends

* Try CPU, TEMPLATE tests

* Enabled unit-tests

* Enabled ngraph tests

* Try to fix unit-test

* Fixed unit-test on Linux

* Fixed compilation with ENABLE_IR_V7_READER=OFF

* Fixed tests on Linux

* Enable cpuFuncTests only in static build

* Try to fix testMockPluginFrontEnd test

* Try to enable TF

* Fixed python tests

* Partial revert

* Removed OV_FRONTEND_PATH
2021-11-17 01:22:04 +03:00
Mikhail Nosov
c2d09afab9 PreProcess API change: (#8629)
- PrePostProcessor takes 'function' argument in constructor
- PrePostProcessor::build() doesn't take any function anymore
- PrePostProcessor::input() method to get reference to input
- PrePostProcessor::output() method to get reference to output
- InputInfo - add getters of tensor, preprocess, network
- OutputInfo - add getters of tensor, preprocess, network

Samples:
ClassificationSampleAsync - use new getters

Inference engine:
- Use new getters in ie_network_reader.cpp

TODO: Consider removal of builder-like API in PrePostProcessor, InputInfo, OutputInfo
2021-11-17 00:51:19 +03:00
Katarzyna Mitrus
c171be238f Slice-8 to StridedSlice transformation (#8295)
* SliceToStridedSlice transformation

* Slice SLT

* ONNX import

* Disable throw

* Add Slice evaluate, re-enable mkldnn graph throw

* Use ScatterUpdate instead of Gather to adjust indices

* Add CmpValues::CONST_VALUES to Slice transformation tests

* Apply smaller review comments

* Adjust indices lenght type

* Use ov namespace

* Refactor indices alignment function

* Move SliceToStridedSlice transformation to separate file

* Style alignment

* Resolve xfails

* Update tests and remove redundant const folding

* Remove evaluate and onnx changes

* Add use_shapes switch to the Slice transformation

* Style fix
2021-11-16 22:40:34 +03:00
Katarzyna Mitrus
95e1a423c6 [ONNX FE] ONNX Clip type aligned default min/max fix (#8489) 2021-11-16 09:25:21 +01:00
Anton Chetverikov
d0f16d205a GatherND_8 reference implementation (#8257)
* Add GatherND_8 operation

* Update shape infer function and tests

* Initial commit for nGraph GatherND_8 operation

* Add GatherNDBase class implementation

* Fix base class errors

* Add missrd header

* Update base class

* Update GatherND_8 implementation

* Fix codestyle

* Fix wrong rank

* Implement tests for gatherND_8 shape inference function

* fix codestyle

* Add limitation to doc

* Siplyfy check in shape inference

* Add more test cases

* Update shape inference function

* Add more test cases to cover all case with dynamic input shapes

* Update shape inference function

* Refactor tests

* Initial commit for gatherND_8 reference implementation

* Add visitor tests for gatherND_8 operation

* Add visitor tests for gatherND_8 operation

* Correct comment

* Add additional check is shape inference function

* Update shape inference implementation for gathernd operartion

* Fix codestyle

* Remove restriction for data is fully defined

* Update shape inference functon

* Add gatherND_8 reference to evaluate map

* Add tests for gathernd_8 reference in batch_dims > 1

* Fix codestyle

* Fix codestyle

* Fix missed check for nonetype

* Remove redundant checks for batch_dims

* Use get_shape method instead of get_input_shape in GatherND reference implementation call

* update reference implementation call

* Properly add GatherND_8 to test opset table

* Update GatherND reference implementation for support opset8 version

* Add unit tests for gatherND_8 reference implementation

* Update gatherND reference implementation call in evaluate map

* Mark failed tests for missed plugin gatherND_8 implementations

* Fix codestyle

* Fix codestyle

* Fix codestyle

* Update tests

* Move common methods to base class

* Fix codestyle

* Revert clone_with_new_input function moving

* Add more test for reference

* partially revert API changes
2021-11-16 10:58:06 +03:00
song, bell
9ccc308523 Bell/revise lstm cell sequence (#7638)
* revise LSTM spec

Signed-off-by: fishbell <bell.song@intel.com>

* add param check and related test case

Signed-off-by: fishbell <bell.song@intel.com>

* fix clang-format

Signed-off-by: fishbell <bell.song@intel.com>

* use static_cast to replace c style force conversion

Signed-off-by: fishbell <bell.song@intel.com>
2021-11-16 06:13:26 +03:00
Vladimir Paramuzov
3b34f09a9b [GPU] Fixed friendly name of out transpose, improve Pad performance (#8546)
* Fixed friendly names in post-processing nodes

* [GPU] Added fsv16 support for pad operation
2021-11-15 17:07:58 +03:00
Xiping Yan
3354275da1 Xp/revise embedding bag (#7694)
* Fix: variable writing error.
mas_dimension -> max_dimension

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* Update description.

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* Update EmbeddingBagOffsetsSum comment, it will be easy to understand how to calculate bag.

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* Add attribute description for md

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* WIP: Add correctness test.

Known issue:
1: weight fp16 issue.
2: default idx(1), don't choose in segment id. why?

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* change param order.

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* Support test T_IND type (int32 and int64)

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* weight support multiple type input.

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* refactor correctness test code.

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* embeddingbag offset sum correctness test pass.

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* embeddingbag packed sum correctness test pass.

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* Add visitor without attribute test.

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* Add EmbeddingSegmentsSum serialization test.

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* Add EmbeddingBagPackedSum, EmbeddingBagOffsetsSum serialization test.


Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* fix build error after rebase.

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* unify name: from ngraph:: to ov::

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* add fp64 support

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* Remove my MACRO define wrappers.

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* Remove useless header file.

* tmp. pass.

* Remove MACRO warpper for embeddingbag_offsetsum

* Remove myown wrapper header, and update template plugin.

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* Change vector to ov::Shape.

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* Rename CreateConstantVV-> CreateConstant

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* Fix rebase issue. duplicate case ov::element::f64:

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>
2021-11-15 13:49:21 +03:00
Ilya Lavrenov
8cb17ca218 Enable GPU in static build w/o oneDNN (#8563)
* Enable LTO for oneDNN GPU

* Use importer target for onednn_gpu

* Fixed install of OpenCL, ittapi

* Try to enable samples build

* Fixed ie_wheel build

* Disabled samples

* Fixed incorrect install of pugixml in dynamic build
2021-11-15 13:44:11 +03:00
Alexandra Sidorova
c82744e435 [CPU] Added dynamism support for Pad (#8396) 2021-11-15 13:37:34 +03:00
Eugeny Volosenkov
f46e8bb3f8 Ngraph/fix serializer (#8461)
* Fix serializer

* Fix code style

* add test for bodies without parameters]
2021-11-11 22:06:19 +03:00
Tomasz Dołbniak
0e7eef3c88 ONNX MaxPool (opset 8+) (#7100) 2021-11-11 14:48:32 +03:00
Ilya Churaev
0017ec71fd Added hash to type_info (#8175)
* Added hash to type_info

* Fast hash

* Fixed tests

* Added new tests

* Fixed build

* Fix centos

* Fixed segfault

* Fixed test

* Fixed build

* Revert "Fix centos"

This reverts commit c739e923aa.

* Try to fix cent os

* Fixed style

* Fixed GCC 4.8

* Try to fix build

* Fixed code style

* remove constexpr from type construction

* Fixed tests

* Revert "Fixed tests"

This reverts commit 50aec37f95.

* Revert "remove constexpr from type construction"

This reverts commit 6c22d7ecfa.
2021-11-11 12:59:37 +03:00
Ilya Churaev
f1ca728ab1 Deprecated set_* methods in desctiption::Tensor (#8510)
* Deprecated set_* methods in desctiption::Tensor

* Fix code style

* Fixed tests
2021-11-11 09:52:59 +03:00
Ilya Lavrenov
461f746430 Install rules for static libraries case (#8384)
* Proper cmake install for static libraries case

* Added an ability to skip template plugin

* Added install rules for VPU / GPU

* Install more libraries

* Fixed absolute TBB include paths

* Disable GNA

* Fixed issue with linker

* Some fixes

* Fixed linkage issues in tests

* Disabled some tests

* Updated CI pipelines

* Fixed Windows linkage

* Fixed custom_opset test for static casr

* Fixed CVS-70313

* Continue on error

* Fixed clanf-format

* Try to fix Windows linker

* Fixed compilation

* Disable samples

* Fixed samples build with THREADING=SEQ

* Fixed link error on Windows

* Fixed ieFuncTests

* Added static Azure CI

* Revert "Fixed link error on Windows"

This reverts commit 78cca36fd2.

* Merge static and dynamic linux pipelines

* Fixed Azure
2021-11-10 18:25:51 +03:00
Ilya Churaev
54c384db11 Updated common migration pipeline (#8176)
* Updated common migration pipeline

* Fixed merge issue

* Added new model and extended example

* Fixed typo

* Added v10-v11 comparison
2021-11-10 16:27:23 +03:00
Tomasz Dołbniak
aa5a220ea0 Pad reference implementation fix so that it doesn't segfault the ONNX tests runner (#8483) 2021-11-10 14:02:15 +03:00
Anton Chetverikov
c8e1c8e3eb [MO|nGraph]GatherND_8 (#7743)
* Add GatherND_8 operation

* Update shape infer function and tests

* Initial commit for nGraph GatherND_8 operation

* Add GatherNDBase class implementation

* Fix base class errors

* Add missrd header

* Update base class

* Update GatherND_8 implementation

* Fix codestyle

* Fix wrong rank

* Implement tests for gatherND_8 shape inference function

* fix codestyle

* Add limitation to doc

* Siplyfy check in shape inference

* Add more test cases

* Update shape inference function

* Add more test cases to cover all case with dynamic input shapes

* Update shape inference function

* Refactor tests

* Add visitor tests for gatherND_8 operation

* Correct comment

* Add additional check is shape inference function

* Update shape inference implementation for gathernd operartion

* Fix codestyle

* Remove restriction for data is fully defined

* Update shape inference functon

* Fix missed check for nonetype

* Remove redundant checks for batch_dims

* Fix codestyle
2021-11-10 11:54:52 +03:00
Ilya Churaev
e298775a89 Fixed fuzz tests (#8443) 2021-11-10 11:11:44 +03:00
Ilya Churaev
512db063a8 New extension serialization (#8252)
* Fixed custom op serialization

* Deprecate old serialize constructor
2021-11-10 07:15:30 +03:00
Ilya Churaev
97a4b944b1 Fixed coverity issues (#8448) 2021-11-10 06:17:43 +03:00
Gleb Kazantaev
ce51b62b70 Fix PartialShape Iterators to reset cache (#8453) 2021-11-09 21:11:54 +03:00
Maxim Vafin
34886b650d Add model compression to FP16 weights (#7588)
* Add model compression to FP16 weights

* Fix build

* Fix build

* Fix build

* Add wrapper over ConvertPrecision

* Add documentation to attributes

* Fix MO IR Reader

* Fix build

* Return DisableDecompressionConvertConstantFolding call in CommonOptimizations

* Temporarily disable old_api map

* Fix TI Convert issue

* Apply review feedback

* Fix build

* Fix build

* Fix build
2021-11-09 19:37:41 +03:00
Vladislav Golubev
62b084a524 FullyConnectedNode: deserialization fix (#8345)
* FullyConnected deserialization fix

* Added test-case with MatMul to caching tests

* postreview fixes
2021-11-09 12:14:36 +03:00
Ivan Tikhonov
5dacaa386f [TF FE] Port operation loaders and refactor preliminary versions (#8150)
* Migrate POC for TensorFlow frontend

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

* Refactor InputModelTensorFlow API

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

* Repack POC to official API

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

* Remove tensorflow API from public include

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

* Make TF frontend work from MO and clean-up code

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

* Apply codestyle

* Fix win biuld

* Fix Linux build

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

* Implement Place class

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

* Determine outputs from graph

* Implement all Place classes

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

* Make small clean-up

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

* Apply code-style corrections

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

* Determine cut nodes

* Apply codestyle

* Rework to use places

* Fix conversion issue

* Fix build

* Fix conversion

* Small fixes

* Add test for tf frontend

* Add tests

* Implement partial conversion

* Use dynamic type in TFFrameworkNode

* Fix build on Linux

* Implement InputModelTF class

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

* Fix code by replacing InputModelTensorFlow to InputModelTF

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

* Fix to pass getPlaceByTensorName test

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

* Refactor and clean the code

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

* Finalize refactoring code

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

* Support freezing inputs

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

* Add support for pruning input ports as new model output

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

* Apply code-style fixes

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

* move op convertors to separate files, refactoring

* openvino codestyle

* openvino codestyle

* fix crash of layer tests

* fix missprint

* Implement TensorFlow NodeContext and DecoderTFProto classes

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

* Switch to new NodeContext

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

* Remove ngraph_builder class and node_context_impl class

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

* Move decoder/graph_iterator to separate files and remove old files

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

* Document Decoder, GraphIterator, and NodeContext classes

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

* Apply code style

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

* Remove empty file graph_iterator_proto.cpp and redundant comments

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

* Use base class for GraphIterator in model class and correct exception class

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

* Use ends_with from util library

* Remain only InputModelTF constructor with GraphIterator and adopt other code

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

* Correct code after merge

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

* Apply code style

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

* Fix code based on feedback: delete extra namespace usage, etc.

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

* refactoring of tf FrontEnd: rename namespaces, delete default opset

* codestyle

* fix e2e tests

* change namespaces of external classes

* resolve review comment

* codestyle

* Enable translators for Size,Shape,Rank,Range,Reshape ops

* Add translators for MatMul,Reciprocal,Square,XdivY ops

* enable Translators for Where,Log1p, Transpose, ZerosLike, Pack ops

* Enable Split,IsFinite,Tile ops, refactor Reduce ops

* Add Reverse,Round ops

* fix codestyle

* Enable Unpack, L2Loss ops

* Add LRN, GatherND, TopK ops, fix Reduce ops

* codestyle

* Revising of StridedSlice,SplitV,SpaceToDepth ops

* Add Concat,FusedBatchNormEx,Slice,SpaceToDepth ops

* Add Interpolate,BatchToSpaceNd,SpaceToBatchNd,NonMaxSuppression ops support

* codestyle

* Port CropAndResize,FakeQuantMinMaxVars,FusedDepthwiseConv2d

* fix translators

* codestyle

* Resolve review remarks

* fix wrong merge

* fix incorrect merge, refactoring

* add LeakyRelu op

* codestyle

* Add LogicalXor operation

* Add support for Swish op, set correct tensor names, refactoring

* fix incorrect merge

* codestyle

* fix unit tests

* fix build

* Refactoring

* codestyle

* fix win build

* fix reduce op

* Investigate failures on Windows

* add debug prints

* debug prints

* debug prints

* Delete debug prints

* clean up

* clean up

* codestyle

* delete debug changes

* Delete redandant comments

* rename utils functions

* rename translators

* rename layout convertors

* resolve review comments

* resolve review comments:

* codestyle

* rename NodeContext methods

* add todo comment

* Remove internal tf ops from op_table

* fix decode

Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com>
Co-authored-by: Maxim Vafin <maxim.vafin@intel.com>
2021-11-08 13:46:19 +03:00
Ilya Lavrenov
279d905011 Fixed interpolate to work with int32 axes, target_shapes (#8379) 2021-11-08 13:40:54 +03:00
Ilya Lavrenov
384eea4eda Static version: plugin registration as extension (#8365)
* Load CPU plugin as extension as well

* Fixed linkage issues

* Added static linux build

* Disabled GPU
2021-11-02 16:07:45 +03:00
Tomasz Jankowski
de4ceba375 [ONNX FE] Add implementation of Frontend API methods for naming and annotation (#8026) 2021-11-02 09:35:04 +01:00
Mang Guo
0a850ce73e [Shape infer] Implement ExperimentalDetectronTopKROIs shape infer (#7926)
* Implement ExperimentalDetectronROIs shape infer

* Fix review comments

* Update for review comments

Co-authored-by: Evgenya Stepyreva <evgenya.stepyreva@intel.com>
2021-11-02 05:32:46 +03:00
Ilya Churaev
4122ef50d6 Introduce OV Extension base api (#7562)
* Moved so loader to utils

* Fixed extension tests

* Fixed tests and style

* Fixed style and tests

* Fixed ARM build

* Fix windows

* Fix ieFuncTests

* Wrap runtime exception

* Fixed tests

* Added separate new extension

* Fixed unicode extension loading

* Try to fix windows

* Fixed windows

* Fixed macro

* Fixed doc

* Fixed build

* Fixed comments

* Try to fix build

* Fixed build

* Fixed build

* Fixed shared_from_this

* Temp commit

* Changed extension

* Fixed merge conflicts

* Removed ngraph namespace from new extensions

* Fixed code style

* Added core add_extension methods and tests

* Added new tests

* Implement tile operation

* Enabled new extensions support

* Fixed build

* Fixed code style

* Try to fix windows

* Changed base extension class

* Removed redundant Ptr

* Fixed comments

* Fixed friend decl

* Fixed Windows export

* Fixed centos

* Added template add_extension method

* Move destructor to public

* Removed BaseExtension class

* Added variadic add_extension methods

* Fixed doc and typo

* Added BaseOpDestructor

* Allow to create new extension only for new operations

* Revert tests

* Fixed comments

* Fixed comments

* Fixed comment

* Added SO Extension wrapper
2021-11-01 10:36:30 +03:00
Ilya Churaev
94206b9e2d Removed redundant evaluate methods (#8283)
* Removed redundant evaluate methods

* Added If to eval map

* Disable unsupported test cases
2021-11-01 09:08:32 +03:00
Evgenya Stepyreva
d50a40cd09 Shape inference (#8307)
* Convolution update

* Adds pragma once

* Reductions shape infer

* Shape nodes

* style
2021-11-01 05:39:57 +03:00
Piotr Szmelczynski
c729a6bfca [PYTHON] Expose Layout class (#7578)
* Create binding for Layout class

* add import of Layout to __init__

* add Layout to pyngraph.cpp

* create test for Layout

* fix typo

* fix style

* clean file

* fix style

* add Layot import to ngrapph init

* remove const char* init

* style fix

* move Layout from pyngraph/ to pyopenvino/graph

* style fix

* add doc() and args to Layout

* add Layout to openvino init

* fix style

* change import name

* fix import

* add __str__ impl

* remove duplicate

* style fix

* update test_layout

* add eq and ne operators

* create test for eq and ne operators

* fix style

* update copyright year
2021-10-28 19:46:50 +03:00
Ilya Lavrenov
8fb699a42c Static compilation for inference plugins (#8197)
* 1. Removed explicit SHARED from libraries
2. Fixed double definition for ie_layer_validators

* Fixed SEG in unit-test: order of initialization for global vars

* Added an ability to find plugins.xml from static IE

* Fixes in unit-test

* Migrated to new macro for import / export

* Minimized number of custom dllexport

* Don't use IR v7 for static libraries

* Revert for merge

* Don't enable tests with dlopen for static libraries

* Code style

* Added condition for export

* Revert format_reader

* Removed forward decalaration with external linkage

* Fixed IE linkage on Windows

* Reverted back 2 flags

* Minimal RRTI for cpuFuncTests

* Minimal RRTI for cpuFuncTests

* Still need IR v7 reader

* Fixed build

* Fixed compilation

* clang-format fix

* Removed BUILD_AS_IS and used USE_STATIC_IE

* Enable IR v7 reader as static library

* Fixed compilation for GPU plugin

* Trying to build plugins as static library

* Plugins are able provide their own name for CreatePluginEngine function

* Fixed CPU

* Fixed comments

* Fixed ENABLE_IR_V7_READER usage

* Fixed VPU

* clang-format

* Fixes

* Fix

* Load multiple plugins at once

* Fixed interpreter undefined symbols

* Trying to dynamically register static plugins

* Reverted some ngraph changes

* Fixed cpuUnitTests compilation

* Fixed compilation

* Fixed myriad

* Fixed custom_opset tests

* Reverted linker flags

* Support both static and dynamic plugins

* Fixed compilation of myriadFuncTests

* Removed duplication

* Fixes after self-review

* Fixed linkage for preprocessing

* Fixes for Windows

* Fixes

* Fixed cmake options

* Fix

* Fix

* Fix 2
2021-10-28 11:33:56 +03:00
Mikhail Nosov
5cb2174721 Layout: add _idx suffix for helper getters (#8196)
'layout::width' -> 'layout::width_idx', etc
2021-10-28 11:26:55 +03:00
Ilya Lavrenov
fe457aa59c Wmissing declarations for core OpenVINO (#8242)
* Fixed common libraries

* Enable flags only for ngraph, FEM, plugins and IE

* Fixed OpenVINOConfig.cmake

* Fixes for plugins

* Fixed link stage
2021-10-27 22:45:16 +03:00
Mikhail Nosov
846d1e0467 [OV2.0+Bugfix] Layout serialization + Fix caching issues with auto-generated friendly names (#8153)
* Fix caching issues with auto-generated friendly names

Introduce "HashPass" to calculate hash like a serialize but without auto-generated friendly names
IE Compilation context: use HashPass to calculate hash of ov::Function
IE Compilation context tests: removed "friendly names" from tests
Layout: serialization support + tests
Parameter/Result: update set/get_layout according to layout changes

* Fix clang

* Tiny correction of CmakeLists

* Renamed VariantWrapper<Layout> to LayoutAttribute
Removed test for conversion from/to fully dynamic layout (allowed now and does nothing)
'set_layout' - remove layout runtime info if empty layout is passed. This allows hashes to be the same if set_layout(param->get_layout()) is called

* Fix build

* change size_t to uint64_t for hash value
Using size_t leads to high probability of conflict for 32-bit platforms

* Removed debug print

* Fix hash calculation for 32-bit platforms

* Fix review comment
2021-10-27 21:05:06 +03:00
Mikhail Nosov
a2a8969201 [OV20] Enable OpenCV tests and support 'u8' type for Interpolate op (#8182)
* Interpolate reference implementation:
- Support u8 and other numeric types
- For integral types - round result to nearest integer (don't cast)
Preprocessing: enable OpenCV tests and add resize conformance tests with OpenCV

* Revert changes in interpolate.cpp, making them minimal needed (added u8 resize)
2021-10-27 20:56:43 +03:00
Ilya Lavrenov
e481758f73 Removed some global variables from ngraph (#8229) 2021-10-27 15:47:48 +03:00
Mikhail Nosov
7ef4ff6385 Update only Reference implementation and tests (#8126)
There were discovered a lot of issues in 'CompareWithRefs' tests when generated float inputs are not rounded to 'int'
2021-10-27 12:29:37 +03:00
Mikhail Nosov
d65e7d4d4f [OV20] Preprocessing: convert_layout<std::vector<uint64_t>> implementation (#8213)
* Preprocessing: convert_layout<std::vector<uint64_t>> implementation

User is able to use this version without specifying layout explicitly

Same version of convert_layout is added for post-processing

Added usage of new convert_layout to ie_network_reader

* Fix review comment
2021-10-27 11:32:44 +03:00
Ilya Churaev
6717868bbf Remove blob symbols from Inference Engine library (#8212) 2021-10-27 11:08:37 +03:00
Vladislav Golubev
4a96d14adc [nGraph] Reshape: upper_bound propagation fix (#8177) 2021-10-26 14:22:29 +03:00
Bartek Szmelczynski
bd2fdca9de remove CT from ref impl (#7959) 2021-10-26 13:54:47 +03:00
Anton Pankratv
c39e6fcfd8 added ov InferRequest behaviour tests (#7811) 2021-10-25 10:36:17 +03:00
Ilya Lavrenov
479081ff32 Minimized a number of static variables in static build (#8131)
* Minimal RRTI for cpuFuncTests

* Fixed build

* Fixed compilation

* clang-format fix

* Fixed compilation for GPU plugin

* Fixed CPU

* Fixed comments

* Fixes

* Fix

* Reverted some ngraph changes

* Fixed cpuUnitTests compilation
2021-10-25 10:23:04 +03:00
Ilya Churaev
838bd20065 Removed autogeneration of tensor names, added new reshape API (#8134)
* Removed autogeneration of tensor names, added new reshape API

* Fixed code style

* Fixed tests

* Fixed tests

* Fixed comments
2021-10-25 07:34:24 +03:00
Ilya Lavrenov
eb7f261d15 Several samples moved to OpenVINO 2.0 (#7970)
* ngraph functio sample

* Fixes

* OV2.0: NV12 hello classification with new preprocessing API

* Fix clang-format

* Rewrote several samples

* Some updates

* clang-format

* Fixed TODO

* Fixed comments and improved samples

* Preprocessing comments

* clang-format

* Fixed comment

* Fixed Windows

* Added back Blob support to ClassificationResult

Co-authored-by: Michael Nosov <mikhail.nosov@intel.com>
2021-10-23 22:47:35 +03:00
Ilya Lavrenov
dfefb92164 Made ov::runtime::Tensor strides to be in bytes (#8078) 2021-10-21 22:35:58 +03:00