Commit Graph
100 Commits
Author SHA1 Message Date
Pawel Raasz a6f3c7d1b2 Us dynamic dim in pattern if only one valid bound (#21694) 2023-12-18 15:02:01 +04:00
Pawel Raasz 25e5818645 Fix temporary axes remove from MatMul shape_infer (#21474) 2023-12-07 10:36:00 +01:00
Pawel Raasz 320e2bad57 [shape_infer] Fix Equal upper bound calculation (#21453)
* Fix Equal upper bound calculation

* Correct test name
2023-12-07 09:27:06 +00:00
Pawel Raasz 635f5d373d [core]Migrate Gathers operators to new API (#21390)
* Migrate Gather operators to new API

* Remove redundant code form reference

* Use IF_TYPE_OF macro

* Remove unused include

* Use common utils in gather base

* Fix normalize after merge issues
2023-12-06 16:27:14 +04:00
Pawel RaaszandMichal Lukaszewski c18041ab53 [core] Remove tensor conversion utils from new API (#21396)
* Remove usage of util::wrap_tensor

* Remove tensor conversion utils
make it local in model to remove with legacy evaluate

* Make only output tensor dynamic if Shape{0}

* Evaluate fixes on HostTensor

---------

Co-authored-by: Michal Lukaszewski <michal.lukaszewski@intel.com>
2023-12-05 15:11:43 +04:00
Pawel Raasz 24209239bf Restore CC feature in operators evaluate (#21446) 2023-12-05 11:23:19 +04:00
Pawel RaaszandMichal Lukaszewski 15ff4e6596 [core]Correct Constant creation from string (#21099)
* Improve Constant creation from string values

* Optimize Constant creation from vector<T>
binary size reduction

* Fix code style

* Add tests to check there is no precision los

* Fix conversion for string -> integral numbers

---------

Co-authored-by: Michal Lukaszewski <michal.lukaszewski@intel.com>
2023-12-04 10:57:47 +01:00
Pawel RaaszandIlya Lavrenov 7bb542fa70 [shape infer]Use ShapeOf node output type to evaluate bound (#21189)
* Use ShapeOf node output type to evaluate bound
- lower bound is not set to 0 when only upper is above inf
- update test where lower bound was set to 0 previously
- re-factor label evaluation

* Remove `max_et_val` from capture list

* Fix constexpr capture for MSVC

* Restore clear lower bound if upper is infinite

---------

Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2023-12-01 08:16:56 +01:00
Pawel Raasz c608771e03 [core]Migrate get_node_input_partial_shapes to dev API (#21302)
* Migrate `get_node_input_partial_shapes` to dev API
and use it instead deprecated

* Remove deprecated version

* Remove not required header
2023-12-01 06:12:16 +01:00
Pawel Raasz 51b5bc5ec4 [core]Add IF_TYPE_OF to enable CC for IfTypeOf class (#21240)
* Integrate `IfTypeOf` class with CC
- Add macro to warp class to add support for CC
- Update `ccheader.py` to created PP symbols for template parameter list
- Use new macro in Convert operator

* Correct symbols generation

* Update OV PP macros

* Wrap TestVisitor into namespace{}

* Removed not required macros, update comments

* Update element_visitor.hpp
2023-11-30 11:28:45 +04:00
Pawel Raasz 8ee8f4e112 [core]Migrate Range operator to new API (#21259)
* Migrate Range operator to new API
- remove legacy function an duplicated shape inference
- Minor change range reference implementation

* Move accessing tensors after validation
2023-11-30 11:27:08 +04:00
Pawel Raasz 0905c763dd [core]Migrate ReadValue operator to new API (#21336)
* Migrate ReadValue to new API

* Fix build errors
2023-11-28 13:02:39 +01:00
Pawel Raasz 76b1861f86 Remove old API leftovers in Reshape operator (#21298) 2023-11-28 10:47:45 +01:00
Pawel Raasz 685ac0d0a1 Migrate Reverse operator to new API (#21277) 2023-11-28 09:41:56 +01:00
Pawel Raasz 164d101295 [core]Refactor leftovers after migration to new API (#21304)
* Refactor leftovers after migration to new API

* Restore output tensors count check
2023-11-28 10:48:12 +04:00
Pawel Raasz 53baeacc2e [core]Remove deprecated function from Loop (#21299)
* Migrate leftovers in Loop operator to new API
- use new version of `get_constant_from_source`
- migrate `is_rank_compatible_any_of` to dev API
- Improve rank compatibility checks

* Use new version of `is_rank_compatible_any_of`
instead deprecated to reduce bin-size

* Remove deprecated `is_rank_compatible_any_of`
2023-11-28 10:37:15 +04:00
Pawel Raasz 94de12b19d [CI]Correct assertion in PlainTensor::slice (-Wsign-compare) (#21246)
* Correct assertion in PlainTensor member functions
- PlainTensor::size
- PlainTensor::stride

* Correct assertion in PlainTensor::slice
2023-11-23 12:15:56 +01:00
Pawel Raasz 97381e0b63 Correct assertion in PlainTensor member functions (#21199)
- PlainTensor::size
- PlainTensor::stride
2023-11-22 09:41:53 +01:00
Pawel RaaszandIlya Lavrenov 5d6d6a2cfe [core]Optimize OV assert macors to reduce CPU plugin binary size (#21180)
* Optimize OV assertions to reduce bin-size of libs

* Migrate assertion leftovers in CPU plugin

* Add NotImplemented::create to support use with macro
OPENVINO_ASSERT_HELPER

* Remove CheckLocInfo struct

---------

Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2023-11-21 07:16:30 +01:00
Pawel Raasz af27b6f16a Add checking compatible types for Gathers GroupedGatherElimination (#20979)
* Check Gathers 2nd input type to avoid Concat exception
in GroupedGatherElimination transformation

* Add indices conversion if possible
2023-11-20 14:59:37 +04:00
Pawel Raasz 43bb86d384 [core]Migrate Power operator to new API (#21150)
* Migrate Power operator to new API

* Refactor ref implementation to reduce bin size
2023-11-20 08:48:38 +01:00
Pawel Raasz 78bbe03ae8 [core]Migrate Convert operator to new API (#20961)
* Migrate Convert operator to new API

* Unify Convert reference for non-LP types

* Correct evaluate when output tensor not allocated

* Correct input type name

* Restore static_cast for bool as char
2023-11-16 09:06:07 +00:00
Pawel Raasz e72afbec7e Migrate PReLU operator to new API (#21098) 2023-11-16 12:18:06 +04:00
Pawel Raasz 5ef7c02bdf Remove unused function from build (#21057)
if Paddle FE is disabled to avoid build failures `-Werror=unused-function`
2023-11-14 11:27:09 +01:00
Pawel Raasz c974c9a478 Remove limit for Loop inputs in bindings (#21055) 2023-11-14 11:18:40 +01: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
Pawel Raasz 641d3ab351 Migrate Constant operator to new API (#20760)
* Migrate Constant operator to new API
- refactor to reduce binary size

* Fix code style

* Fix build issues

* Apply corrections after review:
- Restore mem_size calculation for bit widths >= 8
- Remove element type helpers functions

* Use float cast for floating types except f64
2023-11-10 12:49:08 +04:00
Pawel Raasz d6852598ce Fix Ubuntu20 build error on relu operator (#20965) 2023-11-09 07:42:06 +00:00
Pawel RaaszandTomasz Jankowski b8eea7bf84 [core]Migrate Multiply operator to new API (#20853)
* Migrate Multiply operator to new API

* Add comment explain use of custom multiply

* Update custom multiply comment

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

---------

Co-authored-by: Tomasz Jankowski <tomasz1.jankowski@intel.com>
2023-11-08 13:53:20 +04:00
Pawel Raasz 6210deba49 [core]Migrate FakeQuantize operator to new API (#20895)
* Migrate FakeQuantize operator to new API

* Minor refactor in FakeQuantize reference
re-use existing functions in `get_inner_stride`
2023-11-08 13:52:21 +04:00
Pawel Raasz 95aef4bf51 [core]Migrate Exp operator to new API (#20893)
* Migrate Exp operator to new API

* Add missing includes
2023-11-07 13:43:13 +01:00
Pawel Raasz e82283cf85 [core]Migrate Mish operator to new API (#20892)
* Migrate Mish operator to new API

* Remove `visit_attributes` is same as base class

* Refactor Mish reference implementation

* Add cast as function is generic
-mish calculation is floating-point but return type can be integral.
2023-11-07 13:05:39 +01:00
Pawel Raasz 368e6bfb8a Fix constant folding in MulMulMulFusion (#20803)
* Fix constant folding in MulMulMulFusion
by add f64 precision in Multiply to perform evaluate for const folding

* Do not transform if input has not supported type
2023-11-07 11:57:29 +01:00
Pawel Raasz cb53ee5db7 [core]Migrate ReLU operator to new API (#20874)
* Migrate ReLU operator to new API

* Optimize ReLU reference implementation

* Correct define const value in ReLU
2023-11-07 11:29:43 +01:00
Pawel Raasz 8f30470199 [core]Migrate MatMul operator to new API (#20857)
* Migrate MatMul operator to new API

* Correct get shapes references
2023-11-07 09:12:37 +01:00
Pawel Raasz dcdf6750a7 [core]Migrate Sign operator to new API (#20875)
* Migrate Sign operator to new API

* Optimize Sign reference implementation

* Fix code style
2023-11-07 08:31:04 +01:00
Pawel Raasz 1083b3b58c [core]Migrate Erf operator to new API (#20867)
* Migrate Erf operator to new API

* Remove `visit_attributes`  is same as base class

* Optimize reference implementation for size
2023-11-06 13:46:03 +01:00
Pawel Raasz 7d74dac3ee [core]Migrate GridSample operator to new API (#20852)
* MIgrate GridSample to new API

* Refactor GridSample to reduce binary size
- use function pointer instead std::function (simpler less code size)
- use RoundingGuard instead manual set/restore rounding mode
- move interpolate selection outside main data processing loop
2023-11-06 06:31:02 +01:00
Pawel Raasz ae343a0178 [core]Migrate FloorMod operator to new API (#20829)
* Migrate FloorMod operator to new API

* Remove `visit_attributes` is same as base class

* Restore FloorMod calculation for signed values
floating-point and integral
2023-11-06 06:26:47 +01:00
Pawel RaaszandTomasz Jankowski 8e4c4c3510 [core]Drop host tensor support in TensorAccessor (#20831)
* Remove functions`get_tensor_data_as for HostTensor

* Remove HostTensor support in TA

* Update doxy comments

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

---------

Co-authored-by: Tomasz Jankowski <tomasz1.jankowski@intel.com>
2023-11-02 16:15:52 +00:00
Pawel Raasz f8cd53bb77 [core]Migrate Floor operator to new API (#20830)
* Migrate Floor operator to new API

* Remove `visit_attributes` is same as base class
2023-11-02 12:35:05 +00: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 RaaszandMichal Lukaszewski 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
Pawel RaaszandMichal Lukaszewski 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 RaaszandMichal Lukaszewski 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 RaaszandMichal Lukaszewski 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
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
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
Pawel RaaszandMichal Lukaszewski 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 RaaszandTomasz Jankowski 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
Pawel RaaszandMichal Lukaszewski 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 RaaszandMichal Lukaszewski 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 RaaszandMichal Lukaszewski 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
Pawel RaaszandMichal Lukaszewski 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
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
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
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 RaaszandTomasz Jankowski 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
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
Pawel Raasz f8881dd2a4 [core]Api 2.0/migrate Subtract op to new API (#20108)
* Migrate Subtract to new API

* Sync has_evaluate precision with evaluate
2023-10-03 10:55:20 +02:00
Pawel Raasz 197e954846 [core]Migrate reduce ops max min mean prod sum evaluate to new API (#19756)
* Migrate ReduceL1, ReduceL2 to new API
- add some new utils which are deprecated

* Hide helper functions from public API

* Migrate reductions ops to new API

* Migrate get_constant_from_source to dev API

* Rename ref max to reduce_max

* Rename ref min to reduce_min

* Rename ref mean to reduce_mean

* Rename ref sum to reduce_sum

* Rename ref product to reduce_prod
- minor optimization in ReduceProd operator

* Restore custom isfinite for ov float types

* Fix type name in reduce_max.hpp

* Add missing include in shape_util.hpp

* Make count same type as data type in reduce mean

* Correct reduce sum doxy comment
2023-09-28 10:12:21 +00:00
Pawel Raasz 79ff291314 [CI]Fix Azure openvino-lin build issues (#20045) 2023-09-26 15:29:31 +02:00
Pawel Raasz 519f13a177 [core]Api 2.0/migrate logical reduce ops to new API (#20043)
* Migrate ReduceLogicalOr to new API

* Migrate ReduceLogicalAnd to new API
2023-09-26 14:45:19 +02:00
Pawel Raasz 7d1b7b6bec [core] Api 2.0/migrate operators without evaluate (#19988)
* Migrate ops evaluate

* Remove using ngraph and std from ops

* Use OPENVINO_ASSERT instead of NGRAPH_CHECK

* Move `shape_util.hpp` to `dev_api/openvino/core/`

* Remove visit_attributes, same as base impl

* Fix build issues

* Fix build issues
2023-09-25 14:22:59 +04:00
Pawel Raasz 93f2a1947c Reduce binary size of CumSum implementation (#20004) 2023-09-22 20:41:32 +02:00
Pawel Raasz efb8484124 [core] Api 2.0/migrate swish op to new API (#19934)
* Migrate Swish operator to new API

* Remove `visit_attributes` as is same in base class
2023-09-22 16:38:24 +04:00
Pawel Raasz e7c1344d3c [core] Api 2.0/migrate Add operator to new API (#19984)
* Migrate Add operator to new API

* Remove `visit_attributes` as it calls base impl

* Use shape inference to calculate broadcast shape
2023-09-22 11:57:02 +04:00
Pawel Raasz aa293c09ac [core]Api 2.0/migrate ceiling op to new API (#19909)
* Migrate Ceiling op to new API

* Remove f16 precision from evaluate

* Correct ceiling reference doxy comments
- correct functor arg to be const
2023-09-22 10:53:41 +04:00
Pawel Raasz 5bf5e488b7 Migrate LogicalXor to new API (#19913) 2023-09-21 12:09:49 +02:00
Pawel Raasz e3f1ff7f2a Migrate mod op evaluate (#19687) 2023-09-12 15:27:51 +04:00
Pawel Raasz 693c6d7a11 Migrate the Abs operator to new API (#19763) 2023-09-12 15:26:45 +04:00
Pawel Raasz f3d4665f7b Api 2.0/migrate shape inference test to new api (#19665)
* Migrate static shape inference test to new API

* Use new API in CPU custom shape inference tests

* Rename range shape inference test file
2023-09-12 15:15:04 +04:00
Pawel Raasz 4af1fd087c [core] Migrate the Assign operator to new API (#19664)
* Migrate the Assign operator to new API

* Use memcpy instead of tensor copy_to
2023-09-12 15:10:23 +04:00
Pawel Raasz 5833e7d55d Migrate ReduceL1, ReduceL2 to new API (#19622)
* Migrate ReduceL1, ReduceL2 to new API
- add some new utils which are deprecated

* Add missing include

* Remove debug message

* Hide helper functions from public API
2023-09-11 07:17:57 +04:00
Pawel Raasz dd258f9607 Improve acos ref accuracy for integral types (#19470) 2023-09-01 07:34:43 +02:00
Pawel Raasz 463ae19207 Fix padding calculation if interval value is inf (#19383) 2023-08-31 11:57:09 +04:00
Pawel Raasz f9aa624099 [Core] Use API 2.0 in evaluate for trigonometric operators (#19414)
* Use API 2.0 in operators evaluate
- Drop ngraph namespace in ops
- Refactor reference implementation for modified ops

* Apply code style

* Fix build issue in reference impl

* Fix code style

* Fix compile warnings

* Add inputs check and set output shape in evaluates
2023-08-29 10:16:07 +04:00
Pawel Raasz c0fb4fabce [ShapeInfer] Remove old API from shape inference sources (#19435)
* Remove old API from shape inference sources

* Fix build issues
2023-08-28 22:03:35 +02:00
Pawel Raasz 2e78eec502 Fix boxes dim calculation when scores dynamic rank (#19097)
* Fix boxes dim calculation when scores dynamic rank

* NMS shape infer improve upper bound calculation

* Calculate boxes if required shapes has static rank

* Optimize shape_infer for NMS v4

* Reorder checks in nms v4 for selected boxes
2023-08-28 13:27:09 +04:00
Pawel Raasz 5b273aaba6 Round ref implementation select optimal solution (#19021)
* Round ref implementation select optimal solution

* Add rounding guard
- minor corrections after review.
2023-08-16 11:42:55 +04:00
Pawel RaaszandMaxim Vafin 2385c2769e [PT FE] Improved MaxPool convert by PyTorch FE (#18965)
* Improved MaxPool convert by PyTorch FE

* Mark xfail corner cases for AvgPool

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

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

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

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

* Fix build issues

---------

Co-authored-by: Maxim Vafin <maxim.vafin@intel.com>
2023-08-04 15:07:33 +00:00
Pawel Raasz 1f08d3520c Review multiclass nms class for shape inference aspects (#18908)
* Review NMS shape inference

* Fix test issues

* Review MatrixNms shape inference

* Unregister NMS with dynamic output from CPU plugin

* Review MulticlassNms for shape inference
2023-08-02 08:01:06 +00:00
Pawel Raasz 9067a1fead Review NMS, MatrixNms shape inference (#18869)
* Review NMS shape inference

* Fix test issues

* Review MatrixNms shape inference

* Unregister NMS with dynamic output from CPU plugin
2023-08-01 19:44:55 +04:00
Pawel Raasz 6cc8661efe Review preprocessing ops convert color i420 nv12 color classes for shape inference aspects (#18870)
* Review I420 convert shape inference

* Review NV12 convert shape inference
2023-08-01 12:05:21 +04:00
Pawel Raasz 2655512b2f Review RandomUniform for shape inference (#18800)
* Review RandomUniform for shape inference
- Check dynamic and static shape propagation
- Check label propagation
- Check preserve input values and labels
- Add template implementation of shape_infer
- Add unit tests

* Update RandomUniform copy test

* Use correct type for call reference implementation
2023-07-26 21:54:15 +04:00
Pawel Raasz 32f2868a5b Review shape inference of ExtractImagesPatches (#18771)
* Review shape inference of ExtractImagesPatches
- Check static and dynamic shapes propagation
- Check label propagation
- Review template implementation of `shape_infer function
- Add unit tests.

* Add additional test to check padding calc
2023-07-26 21:49:48 +04:00
Pawel Raasz bb3c9aa9a7 Review RegionYolo class for shape inference aspects (#18741)
* 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 RegionYolo for shape inference:
- Check dynamic shape and label propagation
- Check static shape inference
- Review shape_infer template implementation
- Update unit test

* Remove commented test code

* Correct flatten dim calculation
2023-07-26 20:42:41 +04:00
Pawel Raasz 5a4cf4c8b6 Review ReorgYolo class for shape inference aspects (#18633)
* 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 ReorgYolo op for shape inference
- Check partial shape and label propagation
- Check shape_infer implementation
- Update tests for static and dynamic shapes

* Change dim::is_valid to dim::is_empty
2023-07-25 18:51:17 +02:00
Pawel Raasz 5eab1be682 Migrate shape infers to new IStaticShapeInfer API (#18579)
* 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
2023-07-24 15:59:18 +02:00
Pawel Raasz 568d3371d7 Improve file macro trim on windows (#18600)
* On windows try trim forward slash in __FILE__

* Improve exception relative path test assertion
check path with OS native and forward slash
2023-07-18 20:09:26 +04:00