Commit Graph

934 Commits

Author SHA1 Message Date
Maciej Smyk 62460e1e2b
[DOCS] Updating links for 23.2 2023-11-13 12:23:49 +01:00
Pawel Raasz 3077bad26f
[core]Migrate Sigmoid operator to new API (#20780)
* Migrate Sigmoid operator to new API

* Add missing include
2023-10-31 12:11:29 +01:00
Pawel Raasz 38cd138d0d
[core]Migrate Sqrt operator to new API (#20632)
* Migrate Sqrt operator to new API

* Remove 'visit_attributes' is same as base
2023-10-31 08:34:49 +00:00
Pawel Raasz 246410b0dd
[core]Migrate NotEqual operator to new API (#20648)
* Migrate NotEqual operator to new API

* Remove `visit_attributes` is same as base

---------

Co-authored-by: Michal Lukaszewski <michal.lukaszewski@intel.com>
2023-10-31 00:01:27 +00:00
Pawel Raasz ac176beb33
[core]Migrate Clamp operator to new API (#20676)
* Migrate Clamp operator to new API

* Remove not used function add comment
2023-10-30 22:58:35 +00:00
Tomasz Jankowski 142a72d0f0
[core] Migrate SpaceToBatch operator to new API (#20510)
* Drop HostTensor and move to ov namespace

* Style

* Optimize vector assignment

* Optimize vector assignment

---------

Co-authored-by: Michal Lukaszewski <michal.lukaszewski@intel.com>
2023-10-30 12:52:56 +00:00
Pawel Raasz e2ea571926
Migrate Maximum operator to new API (#20602)
Co-authored-by: Michal Lukaszewski <michal.lukaszewski@intel.com>
2023-10-30 12:08:26 +01:00
Pawel Raasz 7cfeb413d4
[core]Migrate Concat operator to new API (#20600)
* Migrate Concat op to new API

* Move shape validation to shape_infer

* Fix getting concat axis in shape inference

---------

Co-authored-by: Michal Lukaszewski <michal.lukaszewski@intel.com>
2023-10-30 12:07:36 +01:00
Pawel Raasz cec6535eaa
[core]Migrate Transpose operator to new API (#20647)
* Migrate Transpose to new API

* Move shape validation to shape_infer

* Remove visit_attributes is same as base

* Correct transpose order shape check
for static shapes
- correct creation of order shape for static shape tests

---------

Co-authored-by: Michal Lukaszewski <michal.lukaszewski@intel.com>
2023-10-30 07:05:17 +01:00
Pavel Esir 539b5a83ba
keep disable_fp16_compression rt_info (#20625)
* keep disable_fp16_compression rt_info

* style fix

* style fix 2

* cleanup init_node_info.cpp; redefining a class for rt_info in Serialize

* move rt_info refreshing inside serialize.cpp

* rename rt_info name in IR

* add rt_info serialize test

* add ticket number

* updated comments

* code style fix

---------

Co-authored-by: Andrei Kochin <andrei.kochin@intel.com>
2023-10-27 22:41:37 +00:00
Pawel Raasz 751d844b24
[shape infer]Review Reshape class for shape inference aspects (#18679)
* Add static shape adapter
- Adapters holds CPU dimension which can be reference to it or vector
- Add ov::optional for holding optional result from shape inference
- Add new `infer` function in `IStaticShapeInfer`

* Temporary support of StaticShape

* Minor corrections in ShapeInferenceTA

* Migrate shape_infer to new interface version

* Replace StaticShape by adapter implementation

* Replace IShapeInferCommon by IStaticShapeInfer

* Correct code formatting

* Fix build issues

* NodeValidationFailure::create for StaticShapeRef

* Review shape inference for reshape operator
- review shape_infer implementation
- add more unit test for static and dynamic shapes

* Fix build issues

* Correct minus one dim calculation

* Fix build issues on windows

* Improve resolving special minus one

* Use NODE_SHAPE_INFER_CHECK

* Update product in/out calculations

* Temporary add ngraph header to solve build issue

* Correct minus one dim calc when static part same

* Add check for scalar input

* Remove debug message

* Fix `minus one` dynamic dimension calculation

* Fix `minus one` dynamic dimension calculation

* Fix merge issues in reshape
Minor refactor reshape evaluate

* Don't pass input label on minus one pattern
when input dimension will be modified.
2023-10-27 16:56:25 +02:00
Ilya Lavrenov 620a0fc289
Fixed compilation with C++23 (#20724) 2023-10-27 16:29:40 +04:00
River Li be25d9038e
Fix stride issue for ZeroDims (#20686)
* Fix stride issue for ZeroDims

* Add test case

* Fix ITensor::is_continuous() issue

* Fix the same issue in gpu plugin and template plugin
2023-10-27 09:27:53 +04:00
Pawel Raasz a8a14eba9d
[core]Migrate Equal operator to new API (#20688)
* Migrate Equal to new API

* Remove `visit_attributes` is same as base

* Remove i4, u4 from evaluate in Equal
reference implementation not handle binary precisions correctly

* Sync precisions in `has_evaluate` with `evaluate`

* Fix all equal check for lower bound
- make broadcast test assertion more strict
- remove deprecated functions from broadcast test
2023-10-27 07:27:11 +04:00
Tomasz Jankowski 301ea0beb0
[core] Migrate SpaceToDepth operator to new API (#20530)
* Drop HostTensor and move to ov namespace

* Drop HostTensor

---------

Co-authored-by: Michal Lukaszewski <michal.lukaszewski@intel.com>
2023-10-26 08:35:38 +02:00
Pawel Raasz b3eb2810d7
[core]Migrate Negative operator to new API (#20609)
* Migrate Negative operator to new API

* Remove `visit_attributes` is same as base

* Use std::negate instead of lambda

---------

Co-authored-by: Michal Lukaszewski <michal.lukaszewski@intel.com>
2023-10-25 10:39:50 +02:00
Pawel Raasz e1a33f10d5
[core]Migrate Slice to new API (#20417)
* Migrate slice to new API

* Remove visit_attributes, is same as base class

* Move shape checks to shape_infer
- minor refactor Slice op

* Move `get_tensors_partial_shapes` to dev API

* Correct comment

Co-authored-by: Tomasz Jankowski <tomasz1.jankowski@intel.com>

---------

Co-authored-by: Tomasz Jankowski <tomasz1.jankowski@intel.com>
2023-10-25 08:19:14 +00:00
Evgenya Nugmanova 7874adb58e
[Symbolic SI] Refactor Table of Equivalence (#20627) 2023-10-25 09:54:47 +02:00
Tomasz Jankowski 973b194776
[core] Migrate DepthToSpace operator to new API (#20515)
* Move into ov namespace

* Use ov::Tensor in place of HostTensor

---------

Co-authored-by: Michal Lukaszewski <michal.lukaszewski@intel.com>
2023-10-25 07:10:54 +02:00
Pawel Raasz 84732515b4
Fix check repeats in values in Tile (#20654)
- no action if any of repeats is zero

Co-authored-by: Michal Lukaszewski <michal.lukaszewski@intel.com>
2023-10-25 07:27:21 +04:00
Pawel Raasz 5fee2ef67e
Migrate LessEqual and GreaterEqual to new API (#20645)
Co-authored-by: Michal Lukaszewski <michal.lukaszewski@intel.com>
2023-10-25 07:26:31 +04:00
Pawel Raasz 2b65855793
[core]Migrate Less and Greater operators to new API (#20628)
* Migrate Less operator to new API

* Migrate Greater operator to new API
- use less implementation in greater to reduce bin size

---------

Co-authored-by: Michal Lukaszewski <michal.lukaszewski@intel.com>
2023-10-25 07:25:05 +04:00
Oleksii Khovan 984e4dbf35
[GPU] NMSRotated-13 (#20411)
* Add Rotation support to primitive and kernel

* Add unit tests

* Add transformation for NMSRotated

* add single-layer tests

* Fix: angle value for the same box may have its sign changed several times passing through iterations of batch and class loops.

* fix review comments
2023-10-24 21:36:02 +02:00
Evgeny Kotov 22184c32f4
fix random layer names and count (#20323)
* add sorting for fix sporadic failure in SharedOpOptimization shared_node_optimization

* fix Output and Input comparison

* remove unneed sorting from transformation

* add unit test

* code review fixes

* code review fixes

* code review fixes

* code review fixes

---------

Co-authored-by: Ivan Tikhonov <ivan.tikhonov@intel.com>
2023-10-24 18:18:50 +02:00
Ilya Churaev 124f2bc5c9
Remove NF4 Convert from public API (#20666)
* Remove NF4 Convert from public API

* Fixed build
2023-10-24 19:19:16 +04:00
Pawel Raasz 5ffde7d8d6
[core]Migrate Minimum operator to new API (#20597)
* Migrate Minimum op to new API

* Refactor evaluates to reduce binary size
- add infer_broadcast_shape, get shapes from tensors reduce OV_ASSERT
- refactor Evaluate structures to reduce binary size

---------

Co-authored-by: Michal Lukaszewski <michal.lukaszewski@intel.com>
2023-10-24 14:48:09 +02:00
Pawel Raasz 750f62fd04
[shape_infer]Add preserve partial values on inputs for Mod operator (#20169)
* Preserve partial values on mod inputs
- static values full range of integers
- intervals only if not negatives

* Fix bounds evaluate when inputs are scalars
2023-10-24 14:53:54 +04:00
Vladimir Paramuzov 5853509b3c
Fixed ngraph reference impl for Range operation (#20631)
* Fixed ngraph reference impl for Range operation

* Truncate range for integer output type

* explicit static cast
2023-10-24 10:18:04 +04: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
Vladislav Golubev afda7ad70f
[Transformations] FuseU4WeightsAndZeroPoint transformation (#20503) 2023-10-24 09:44:26 +04:00
Maxim Vafin 8d0381b0fe
[PT FE] Implement custom op for types alignment (#20431)
* [PT FE] Implement custom op for types alignment

* Fix code style

* Fix inplace ops

* Fix layer tests

* Remove no longer needed change

* Fix ovc tests

* Fix fe tests
2023-10-23 22:54:08 +02:00
Evgenya Nugmanova 94a63605d1
Clear error message in the Constant::cast_vector (#20629) 2023-10-22 01:03:42 +04:00
Sergey Lyalin 46935e0a00
Partial GPTQ int4 models conversion support + Swap nibbles in u4/i4 element type (#20371)
* Reference implementation for u4 constant compression from pytorch model based on bitwise ops pattern

* Fixed order of 4-bit halfs in byte

* Switched PyTorch FE to dev mode: in case if model cannot be fully converted, give partially converted model with PTFrameworkNode's with a printed warning (normally would raise an exception in case).

* Moved u4 compression to utils_quantize. Implemented not-interleaved version of u4 compression

* Removed debug output

* Added aten::matmul to the list of exceptions in may_produce_alias as a workaround for gptq models

* Added patching for gptq models applied automatically in convert_model

* WA for an inssue with u4 with earlier convert to fp16

* U4 blocked repacking for gptq patched model layout

* Deleted obsolete u4 re-packing based on aten::cat. Fixed the resulting u4 constant shape. Removed debug output.

* Revert "Switched PyTorch FE to dev mode: in case if model cannot be fully converted, give partially converted model with PTFrameworkNode's with a printed warning (normally would raise an exception in case)."

This reverts commit 0ef1455e70.

* Update src/frontends/pytorch/src/op/cat.cpp

* Check mask and shift values in u4 pattern. deque -> OutputVector for u4_compression_stack

* Convert to a given floating type instead of half in gptq patching. Better structured code.

* Code style fix

* Removed deque include

* Code style fixes

* Trailing space removed

* Fixed patched_forward and ts_decoder after unvalidated commits.

* Swap nibbles in u4/i4

* Better exception handling around jit.trace and gptq.patch_model

* Update src/bindings/python/src/openvino/frontend/pytorch/gptq.py

Co-authored-by: Alexander Kozlov <alexander.kozlov@intel.com>

* Update src/bindings/python/src/openvino/frontend/pytorch/gptq.py

Co-authored-by: Alexander Kozlov <alexander.kozlov@intel.com>

* Code style

* Revers int4 byte order

* Fixed core tests

* Fixed unguarded dynamic_cast result

Co-authored-by: Evgenya Nugmanova <eva.my.link@gmail.com>

* Fixed transformation tests

* Update src/bindings/python/src/openvino/frontend/pytorch/gptq.py

Co-authored-by: Maxim Vafin <maxim.vafin@intel.com>

* Prevent patching of non-gptq models

* Removed extra calling of quantized weights decompression patterns

* Better detection of supported AutoGPTQ models + more diagnostics

* Accurate diagnostics in case when aten::stack has multiple axes

---------

Co-authored-by: Alexander Kozlov <alexander.kozlov@intel.com>
Co-authored-by: Ilya Churaev <ilyachur@gmail.com>
Co-authored-by: Evgenya Nugmanova <eva.my.link@gmail.com>
Co-authored-by: Maxim Vafin <maxim.vafin@intel.com>
2023-10-18 21:06:17 +04:00
Pawel Raasz f2549f2d59
[core]Migrate VariadicSplit op to new API (#20416)
* Migrate VariadicSlice to new API
- refactor to reduce bin size

* Move `get_tensors_partial_shapes` to dev API

* Use get_tensors_partial_shapes in VariadicSplit

* Remove `visit_attributes` is same as base
2023-10-18 15:02:18 +02:00
Pawel Raasz 9fb40b0007
[core]Migrate LogicalNot to new API (#20438)
* Migrate LogicalNot to new API

* Rename file not.hpp -> logical_not.hpp

* Apply code style
2023-10-18 09:16:12 +00:00
Pawel Raasz 2415f0c7cf
[core]Migrate BatchToSpace to new API (#20450)
* Migrate BatchToSpace to new API

* Remove not required suppression macro
2023-10-18 09:09:27 +00:00
Nikolay Shchegolev 4eab5b4635
[CPU] RandomUniform-8 implementation. (#20171) 2023-10-18 12:50:46 +04:00
Pawel Raasz 7515b042e8
[core]Migrate squeeze operator to new API (#20282)
* Migrate Squeeze to new API

* Remove visit_attributes as same as base class
2023-10-17 19:17:49 +02:00
Georgy Krivoruchko 1e7977332b
Fixed naming and comments in ReduceProd (#20512) 2023-10-17 17:30:22 +02:00
Tomasz Jankowski e1a29ae96e
[core] Migrate MaxPool operator to new API (#20424)
* Use API 2.0 in MaxPool v1

* Use API 2.0 in MaxPool v8

* Fix type selection

* Fix type selection

* Avoid redundant local copies
2023-10-17 13:30:18 +04:00
Georgy Krivoruchko 05297a5572
Added coverage of "0" in bounds to ReduceProd (#18583)
* Check for ReduceProd + SoftMax fix

* Check for ReduceProd + SoftMax fix

* Fix after moving on get_constant_max_of_type

* Extended tests and added coverage for other types

* Code optimization
2023-10-17 12:38:24 +04:00
Pawel Raasz baee150678
Restore f16 precision due to GPU performance drop (#20443) 2023-10-17 01:22:32 +02:00
Pawel Raasz fb93638cb2
[core]Migrate LogicalOr to new API (#20421)
* Migrate LogicalOr to new API

* Remove leftovers
2023-10-16 08:56:24 +04:00
Pawel Raasz 893517dd4a
Migrate LogicalAnd to new API (#20423) 2023-10-16 08:54:38 +04:00
Pawel Raasz f107b7663f
Migrate Split operator to new API (#20263) 2023-10-16 08:16:43 +04:00
Pawel Raasz a13eb5bf9d
[core]Migrate TopK operator to new API (#20254)
* Migrate TopK to new API

* Refactor compare_max for TopK

* Unify check of k for const and non-const input

* Update src/core/include/openvino/op/util/evaluate_helpers.hpp

Co-authored-by: Tomasz Jankowski <tomasz1.jankowski@intel.com>

* Move `get_tensors_partial_shapes` to dev API

---------

Co-authored-by: Tomasz Jankowski <tomasz1.jankowski@intel.com>
2023-10-13 14:53:58 +04:00
Pawel Raasz 7bc8e0fb8f
[core]Shape and Node util functions size optimization (#20206)
* Refactor shape_size util to reduce bin size

* Make `check_new_args_count` non-template function

* Use as not template check_new_args_count
in multi-nominal
2023-10-13 14:10:35 +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
Pawel Raasz 075333e94d
[core]Migrate Tile operator to new API (#20255)
* Migrate Tile to new API

* Remove visit_attributes as is same as base class
2023-10-12 10:51:04 +00:00
Pawel Raasz ac11751e9c
[core]Migrate Eye to new API (#20258)
* Migrate Eye to new API

* Fix `matrix_offset` initialization

* get_tensors_shapes -> get_tensors_partial_shapes
2023-10-11 13:50:29 +04:00