Commit Graph
315 Commits
Author SHA1 Message Date
Xuejun Zhai 0e2bde2397 [CPU Plugin][Func Test] Upgrade reshape related to API 2.0 (#21361)
* [CPU Plugin][Func Test] Upgrade reshape related to API 2.0

Signed-off-by: Zhai, Xuejun <xuejun.zhai@intel.com>

* [CPU Plugin][Func Test] Fix review comments

Signed-off-by: Zhai, Xuejun <xuejun.zhai@intel.com>

* [CPU Plugin][Func Test] Fix review comments

Signed-off-by: Zhai, Xuejun <xuejun.zhai@intel.com>

---------

Signed-off-by: Zhai, Xuejun <xuejun.zhai@intel.com>
2023-12-01 13:53:51 +04:00
abfbdd1b96 [Core] Support String Tensors (#21244)
* [Core] Support String Tensors

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

* Add String Constant implementation

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

* Fix build issue in tests

* Add cast_vector for Constant of ov::string type

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

* Fix build issue

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

* Fix build issue: ambiguous type in GNA

* Fix ambiguous build issue in GNA tests

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

* Fix code-style

* Fix code-style

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

* Fix ambiguous build issue in GNA tests

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

* Fix ambiguous build issue in TF FE tests

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

* Update openvino.style for naming convention check

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

* Fix compilation error in core unit tests - need typename

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

* Add test for new element_type

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

* Fix code-style

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

* Update src/inference/src/dev/make_tensor.cpp

Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>

* Add support of string Tensors for Constant

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

* Fix copying string tensor value for Constant

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

* Complete template methods for Constant

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

* Improve performance for initialization and destruction of string Tensor for set_shape

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

* Add check for string value in test

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

* Remove unused variable

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

* Update src/inference/src/dev/make_tensor.cpp

* Fix copy_to for ITensor of string type and add tests

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

* Add tests for Constant of string type and serialization

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

* Use memset_allocation to switch initialization

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

* Add additional documentation for host_ptr

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

* Update src/core/src/op/constant.cpp

* Use OPENVINO_THROW

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

* Update src/core/include/openvino/op/constant.hpp

* Update src/core/include/openvino/op/constant.hpp

Co-authored-by: Pawel Raasz <pawel.raasz@intel.com>

* Apply code-review feedback: use string_size

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

* Apply code-review feedback

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

* Recover evaluate impl for non-string type

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

* Fix code for creating of string constant for legacy non HostTensor tensor

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

* Fix build issue

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

* Apply code-review feedback: simplify copy_to method

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

* Fix build issue

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

* Use StringAlignedBuffer to store string Constant values

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

* Remove not needed methods in StringAlignedBuffer

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

* Refactor set_shape method

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

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
Co-authored-by: Pawel Raasz <pawel.raasz@intel.com>
2023-12-01 11:17:53 +04:00
Alexandra Sidorova df03b0437a [Snippets] Refactored work with Buffers (#19644)
[Snippets] BufferManager is not derived from PassPipeline now

[Snippets] Added MemorySolver support

[Snippets] Made as static class

[Snippets] Added one-level inplace support

[Snippets] Added optimization bits

[Snippets] Small cosmetic fixes

[Snippets] Renamed to BufferSolver

[Snippets] Refactored

[Snippets] Fixed IdendifyBuffers

[Snippets] Add inplace multi + identify buffers

[Snippets] Made common pass

[Snippets] Added PassPipeline::get_pass<>()

[Snippets] Added comments, briefs, refactored smth

[Snippets] Fixed win build

[Snippets] Not allow to have the same Buffer ID for multi level Buffers

[Snippets] Moved CleanupRepeatedPtrShifts to common pioeline

[Snippets] Made IdentifyBuffers::ShiftPtrParams

[Snippets] Fixed window sliding mode

[Snippets] Refactored nested clusters

[Snippets] Adde normalized buffer regs

[Snippets] Not allowed to have the same ID for nested Buffers in IdentifyBuffers

[Snippets] Fixed DefineBufferClusters::are_buffer_neighbours::find

[Snippets] Removed useless method from InitLoops

[Snippets] Fixed CC build

[Snippets] Applied Ivan comments

[Snippets] Applied Ivan comment: refactored pass classes

[Snippets] Applied Vladislav comments

[Snippets] Applied Ivan comments 2

[Runtime] Moved MemorySolver to API2.0

[Snippets] Created common buffer allocation pass AllocateBuffers

[Snippets][Tests] Added InplaceEltwise unit test

[Snippets] fixed NormalizeBufferIDs

[Snippets][CPU] Fixed BrgemmBlocking lowered pass: move wsp for AMX to brgemm

[Snippets][CPU][Tests] Covered AMX MHA buffer allocation by unit tests
2023-11-30 17:46:35 +04:00
Oleg Pipikin eaa3098920 Refactor ConvReshapeAct (#21219) 2023-11-27 14:33:03 +00:00
River LiandDurandin, Pavel a6463c1ac6 [Core]lstm test api20 (#21031)
* [Core] lstm api fix

* Fix LSTMCell failure issues

* Solve GNA failures

* Update for comments

* Minor update

* Use new ov::test::utils::makeEltwise

---------

Co-authored-by: Durandin, Pavel <pavel.durandin@intel.com>
2023-11-27 10:25:58 +04:00
Sun Xiaoxia b7edd5df69 migrate threading related interface from API 1.0 to 2.0 (#21167)
* migrate threading related interface from API 1.0 to 2.0

* fix code style

* fix @ref issue in doc

* change <> to quotation marks

* restore threading related interface API 1.0

* restore the changes of legacy code
2023-11-24 10:52:44 +04:00
Ivan Tikhonovandcecilia peng a329611349 Support dynamic shapes in ReadValue/Assign ops and MakeStateful transformation (#20404)
* Support for dynamic shapes in ReadValue/Assign ops and MakeStateful transformation

* fix unit tests

* codestyle

* fix warning

* fix visitors test

* Fix lowLatency transformation, fix functional tests

* fix LowLatency2

* codestyle

* Fix CPU/GNA tests

* fix shape inference of assign operation

* fix python API

* fix mypy error

* Fix read_value operation version in python API for opsets7-13

* Update python API and fix tests

* set the same Varibable obj to Assign/ReadValue in py API, disable fp16 memory tests

* Update shape inference methods of Assign, ReadValue; update tests; fix codestyle

* fix python codestyle

* fix tests

* Resolve review comments

* codestyle

* resolve review comments

* codestyle

* Update ReadValue op in kaldi frontend, fix GNA tests

* fix Assign/ReadValue bindings, fix read_value test

* Apply suggestions from code review

Co-authored-by: cecilia peng <cecilia.peng@intel.com>

* Fix functional tests, add ov::Type support as an argument for read_value py binding

* temporary disable test_query_state_write_buffer fp16 tests

* Fix backward compatibility with the IRs with ReadValue/Assign ops generated via prev versions of OV; fix func tests

* fix python test, support type as str in read_value/assign bindings

* fix model binding

* fix pre-commit tests: variables vector cleanup

* fix integration with cpu changes

* codestyle

* fix warning

* Fix type/shape validation for read_value op

* fix a type_prop test for assign op

---------

Co-authored-by: cecilia peng <cecilia.peng@intel.com>
2023-11-21 20:59:36 +04:00
Oleg Pipikin 165f574d8f Refactor ngraph builders 2 (#21043)
* Deprecate makeBatchToSpace

* Deprecate makeSpaceToBatch

* Remove makeStridedSlice

* Remove and deprecate makeSlice

* Remove and deprecate makeMVN

* Fix
2023-11-21 13:03:39 +04:00
Oleg Pipikin a9dffa8d70 Refactor ngraph builders (#20998)
* Remove makeInputLayer builders

* Refactor makeBroadcast builder

* Deprecated makeCTC builders

* Fix for broadcast builder

* Remove and deprecate makeSplit builder

* fix

* Fix
2023-11-17 16:10:19 +01:00
Oleg Pipikin 71af0eef38 Refactor ngraph builders 4 (#21100)
* Remove and deprecate some ngraph builders
2023-11-17 14:51:56 +00:00
79c9f4ad44 migrate executable_network test case to compiled_model (#19541)
* add get property test case

* add CanCreateTwoExeNetworksAndCheckFunction and pluginDoesNotChangeOriginalNetwork

* tmp

* add canSetInputPrecisionForNetwork and canSetOutputPrecisionForNetwork

* fix code style

* tmp

* Revert "tmp"

This reverts commit ff3f8d56d5.

* tmp

* add CanCompileModelWithEmptyProperties

* remove comment

* add infer request

* add CanLoadNetworkWithCustomLocale

* add CanLoadNetworkWithCustomLocale

* fix error

* remove case in io_tensor.cpp

* fix Unsupported metric key: OPTIMAL_BATCH_SIZE

* Update src/tests/functional/plugin/conformance/test_runner/api_conformance_runner/include/api_conformance_helpers.hpp

Co-authored-by: Chen Peter <peter.chen@intel.com>

* fix batch size

* remove useless code

* remove failed case CanCompileModelWithEmptyProperties, CanLoadNetworkWithCustomLocale and LoadNetworkWithBigDeviceIDThrows to test

* Revert "remove failed case CanCompileModelWithEmptyProperties, CanLoadNetworkWithCustomLocale and LoadNetworkWithBigDeviceIDThrows to test"

This reverts commit 1317d0773c.

* Revert "remove useless code"

This reverts commit b3dd0ffaab.

* Revert "fix batch size"

This reverts commit 2afd673cff.

* Revert "Update src/tests/functional/plugin/conformance/test_runner/api_conformance_runner/include/api_conformance_helpers.hpp"

This reverts commit 9d6030952f.

* Revert "fix Unsupported metric key: OPTIMAL_BATCH_SIZE"

This reverts commit 2de26547ea.

* try to add optimal_batch_size in cpu plugin

* return model when optimal_batch_size not found in apply_auto_batching

* revert cpu plugin

* gna cannot support some model

* update test case name

* skip CanCreateTwoCompiledModelsAndCheckRuntimeModel in gna

* Update src/inference/src/dev/core_impl.cpp

Co-authored-by: Chen Peter <peter.chen@intel.com>

* Update src/inference/src/dev/core_impl.cpp

Co-authored-by: Chen Peter <peter.chen@intel.com>

* replace deviceName.substr(pos + 1) with deviceNameWithoutBatch

* fix bug

* Update src/inference/src/dev/core_impl.cpp

Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>

* Update src/tests/functional/plugin/shared/include/behavior/compiled_model/compiled_model_base.hpp

Co-authored-by: River Li <river.li@intel.com>

* Update src/tests/functional/plugin/shared/include/behavior/compiled_model/compiled_model_base.hpp

Co-authored-by: River Li <river.li@intel.com>

* Update src/plugins/intel_gna/tests/functional/shared_tests_instances/skip_tests_config.cpp

Co-authored-by: River Li <river.li@intel.com>

* Update src/plugins/intel_gna/tests/functional/shared_tests_instances/skip_tests_config.cpp

Co-authored-by: River Li <river.li@intel.com>

---------

Co-authored-by: Chen Peter <peter.chen@intel.com>
Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
Co-authored-by: River Li <river.li@intel.com>
2023-11-15 13:27:42 +01:00
Oleg Pipikin 534ec2e9ab Refactor ngraph builders 3 (#21077)
* Remove and deprecate makeSqueezeUnsqueeze

* Remove and deprecate  makeMinMax makeProposal

* Remove makeCumSum makeSelect builders

* Remove makeSpaceToDepth builder

* Remove makeShuffleChannels builder

* Remove makeMatMul builder
2023-11-15 10:41:45 +04:00
Vitaliy Urusovskij 1a5b0b70f9 Remove castOps2Nodes and convert2OutputVector (#21015) 2023-11-13 13:29:53 +04:00
Pawel Raasz c451a94572 Fix compile warning regarding ABI changes (#20990)
and using std::true_type/false_type
2023-11-13 07:44:54 +01:00
Ilya Lavrenov d6cc3d7058 Disable warnings about API 1.0 in GNA, Python API 1.0 (#20933) 2023-11-08 12:45:22 +04:00
Vitaliy Urusovskij 0955faef93 Remove use of convertOps2Nodes() & convert2OutVect() (#20837) 2023-11-03 11:00:33 +04:00
603d61b488 GNA plugin transformations documentation (#19232)
* add transformations.md

* code review fixes

* Apply suggestions from code review

Co-authored-by: Ryszard Jezierski <ryszard.jezierski@intel.com>

* Update src/plugins/intel_gna/docs/transformations.md

* Update src/plugins/intel_gna/docs/transformations.md

* Apply suggestions from code review

* Update src/plugins/intel_gna/docs/transformations.md

Co-authored-by: Mikhail Ryzhov <mikhail.ryzhov@intel.com>

* Update src/plugins/intel_gna/docs/transformations.md

Co-authored-by: Mikhail Ryzhov <mikhail.ryzhov@intel.com>

---------

Co-authored-by: Mikhail Ryzhov <mikhail.ryzhov@intel.com>
Co-authored-by: Ryszard Jezierski <ryszard.jezierski@intel.com>
2023-10-27 12:50:36 +02:00
Mateusz Tabaka b7406247ff Add TransposeMatMul transformation to MOC (#20460)
Transformation fuses Transpose on first or second MatMul's input
and sets MatMul's transpose_a/transpose_b accordingly.

TransposeMatMul is already part of SmartReshape, but it can be added
to MOCTransformations as well so native models that are don't use reshape
can benefit from that.

Ticket: CVS-118908
2023-10-24 14:40:36 +02:00
Ilya Churaev 7ceff55b71 Add AlignedBuffer to OpenVINO developer API (#20532)
* Add AlignedBuffer to OpenVINO developer API

* Fixed build

* Fixed code style and remove opset deprecation

* Fixed Windows build

* Fixed GNA

* Fixed comment
2023-10-24 06:13:23 +00:00
Ilya Churaev e866bfef42 Migrate subgraph tests till quantized subgraph (#20351)
* Migrate subgraph tests till quatized subgraph

* Fixed code style

* Fixed code style

* Try to fix build

* Remove run method

* Remove GNA test
2023-10-13 13:35:13 +04:00
Ilya Churaev e289e8282d Migrated all subgraph tests after quantization graphs (#20381)
* Migrated all subgraph tests after quantization graphs

* Fixed skip tests config

* Add alias for NPU

* Try to fix NPU

* Remove unsupported precisions

* Remove GNA test

* Remove more tests
2023-10-13 13:19:53 +04:00
Ilya Lavrenov 56d74a82cb Relocatable developer package (#20327)
* Merge Linux CC + static build + clang compiler

* Improvements

* Removed ie prefixes from cmake scripts

* Fixes for NPU

* Initial relocatable OpenVINO Developer package

* Improvements

* Try to fix

* improvements

* Export a lot of headers

* Removed NVIDIA pipeline; make it to be a job

* Fixes

* Fixes 2

* Try ilya-lavrenov repo

* Clean-up

* More imrpovements

* Even more improvements

* Override export, install

* Override export, install

* Disable pythonwheel generation for relocatable OV dev package

* Fixed issues with versions

* Fixed android build

* Fixed android build

* Fixed NPU build

* Update src/bindings/python/CMakeLists.txt
2023-10-12 22:59:04 +00:00
Ilya Churaev 346893fe6f Move cpu subgraph to new api (#20335)
* Move ConvEltwiseFuse to new API

* Move subgraph tests till LSTM to new API

* Fixed GPU initialization

* Remove unsupported GNA tests
2023-10-11 11:43:27 +04:00
Ilya Lavrenov e30f75bb4d Rpath story (#20297) 2023-10-10 06:27:26 +02:00
Ilya Lavrenov ead4b8a0ec Moved cmake functions, variables to API 2.0 naming style (#20281)
* Merge Linux CC + static build + clang compiler

* Improvements

* Removed ie prefixes from cmake scripts

* Fixes for NPU
2023-10-09 22:30:32 +04:00
Ilya Lavrenov ffbffed749 Enabled warnings as errors for static Ubuntu 22.04 (#20302) 2023-10-08 23:23:54 +04:00
Ilya Lavrenov d6c2a10b38 Merge Linux CC + static build + clang compiler (#20243)
* Merge Linux CC + static build + clang compiler

* Improvements

* Fixes
2023-10-06 00:30:11 +04:00
Ivan Tikhonov 3d6fb85a99 Model builders refactoring: rename dirs, targets, file names (#19885)
* Model builders refactoring

* Apply review comments

* resolve review commets: update cmake target names

* fix build: use correct headers

* fix headers

* fix build

* fix docs
2023-10-04 18:08:24 +02:00
Ilya Churaev 3b8ac28ced Moved ConstantResultTest to new API (#20224) 2023-10-04 14:18:05 +04:00
Ilya Lavrenov 0b8237f508 Removed testdata repo usage (#19890) 2023-09-18 06:59:56 +04:00
Ilya Lavrenov 35a0706dff Replaced several cmake utilities with new ov_ prefix (#19819)
* Replaced several cmake utilities with new ov_ prefix

* Replaced several cmake utilities with new ov_ prefix
2023-09-14 16:22:50 +04:00
Ilya Churaev 7becaf8494 Remove legacy API from common test utils (#19647)
* Remove legacy API from common test utils

* Fixed code style

* Fixed build

* Try to fix Windows build

* Fixed GNA build
2023-09-12 07:09:12 +04:00
Ilya Churaev 1d62f0141d Rename cmake ie_ macros and ie_parallel script (#19606)
* Rename cmake ie_ macros and ie_parallel script

* Add warning messages
2023-09-05 19:31:52 +02:00
Ivan Tikhonov 38cf4764cb Transformations: API 2.0 transition part 2 (#19475)
* Transformation component API 2.0:part 2

* Refactoring

* fix build
2023-08-30 14:28:20 +02:00
Ivan Tikhonov 0f9734aaa7 Transformation tests API 2.0: part 1 (#19366)
* API 2.0 replace ngraph headers and namespaces in CPU, LPT etc transformations tests

* revert the incorrect renaming

* function -> model in arm transformation tests
2023-08-27 18:52:03 +02:00
Oleg Pipikin ab900606cd Remove makeDynamicParams (#19226)
* Remove makeDynamicParams

* Apply comments

* Fix1

* Fix2

* Fix3
2023-08-23 18:57:29 +02:00
Marcin Kusmierski 25e89a754d [GNA] Fix memory leak in insert_copy_layer.cpp (#19266)
* Added cleanup transformation for inert copy layer transforamtions
2023-08-23 13:11:16 +01:00
Oleg Pipikin 7aa51d6775 Remove makeParams (#19306) 2023-08-23 11:39:05 +04:00
Oleg Pipikin de65abc6b3 Remove WA for vpu repo with CommonTestUtils namespace (#19275) 2023-08-22 13:03:45 +00:00
Ilya Churaev cbe744b717 Introduce model reader which works only with new API (#19077)
* Introduce model reader which works only with new API

* Fix GNA compilation

* Removed old code

* Fixed Windows build

* Remove legacy headers from core_impl

* Fixed caching tests if plugin on legacy API call ReadNetwork
2023-08-21 15:42:36 +04:00
Tomasz Adamowicz d6e94212b8 Temporary deactivation of sporadically failing tests (#19118) 2023-08-10 17:54:51 +04:00
Mikhail Ryzhov 3dc96738e1 [GNA] Fixed absent node_id crash (#18874) 2023-08-01 13:33:57 +00:00
Marcin Kacprzak e1ec17013d [GNA] Fix for GeminiLake detection (#18653)
* [GNA] Fix for GeminiLake detection

* Added HWGeneration::GNA_1_0_E enumerator
Added DeviceVersion::GNAEmbedded1_0 enumerator, changed the meaning of DeviceVersion::GNA1_0.
Updated ConvLowPrecision test with all supported targets

* [GNA] Extended a few tests with GNA1.0
2023-07-28 08:18:22 +02:00
Oleg Pipikin ff0b51f3ca Rename CommonTestUtils namespace (#18590)
* Rename CommonTestUtils namespace 1

* Rename CommonTestUtils namespace 2

* Rename CommonTestUtils namespace 3

* Rename CommonTestUtils namespace 4

* Fix1

* Fix2

* Fix3

* Apply comments

* Fix4

* Fix5
2023-07-26 21:06:50 +02:00
Mikhail Ryzhov 0569bb8c5d [GNA] Fuse gather and transpose (#18648) 2023-07-26 13:44:44 +00:00
Mikhail Ryzhov 962bfa6545 [GNA] Fixed Transpose replacement with Gather (#18624) 2023-07-26 11:46:00 +02:00
Jakub Nowicki 53efed1571 Gna plugin more meaningful memory dump (#18119)
* added display of sum of memory usage per operation block and per memory type in GNA dump file

* fixed some clang format issues

* forgot to save file - missing clang fix

* changes according to review - added counting memory usage per layer and names changes

* clang changes

* changes according to review

* clang fixes
2023-07-26 09:50:11 +02:00
Nadezhda Ageeva 97b4b13074 Adds ov::internal::exclusive_async_requests in ov::internal::supported_properties (#18746)
* Adds ov::internal::exclusive_async_requests into ov::internal::supported_properties

* Update HETERO tests for ov::internal::exclusive_async_requests
2023-07-26 09:43:21 +04:00
Mikhail Ryzhov 85ca561546 [GNA] Transpose compressing (#18608) 2023-07-21 14:36:30 +00:00
Mateusz TabakaandIvan Tikhonov fe8b8a96ff Handle sequence ops with non constant W, R, B inputs (#18138)
* Handle sequence ops with non constant W, R, B inputs

Ticket: CVS-49207

* fix tests

* tests

* fix gna tests

* add include

* change type for seqLenIdx

* rename is_constfoldable to is_on_constant_path

---------

Co-authored-by: Ivan Tikhonov <ivan.tikhonov@intel.com>
2023-07-20 14:48:41 +04:00