Commit Graph

800 Commits

Author SHA1 Message Date
Katarzyna Mitrus
c1c9c62816 [ShapeInference] GenerateProposals - shape infer review and tests (#18943)
* type_prop tests

* add set_attrs

* Update to use shape infer check
2023-08-07 14:42:48 +00:00
Oleg Pipikin
74c778e7ee Refactor engines utils. Delete the target (#18916)
* Refactor engines utils. Delete the target

* Apply comments
2023-08-04 13:25:47 +00:00
Ilya Churaev
e64f84d88e Remove legacy API from op/util (#18951) 2023-08-03 08:18:04 +00:00
Oleg Pipikin
fb45deb65e Refactor engines utils (#18856)
* Refactor engines utils

* Apply comments

* Apply comments 2
2023-08-03 12:13:05 +04:00
Ilya Churaev
af8e41bcea Removed legacy headers from pass implementations (#18921)
* Removed legacy headers from pass implementations

* Fixed build

* Remove std and ov usings
2023-08-02 12:01:52 +00:00
Ilya Churaev
0475c7270e Change linker flags to fix ngraph_obj build in Debug mode (#18922) 2023-08-02 13:51:01 +04: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
Wang Kai
a2039e8410 Fixing a typo in core/shape_inference (#18912) 2023-08-02 11:43:15 +04:00
Ilya Churaev
0e13b99a3d Remove ngraph headers from some core source files (#18894)
* Remove ngraph headers from some core source files

* Suppress some warnings

* Suppress more warnings

* Try to fix some compilation issues

* Suppress more warnings

* Supress clone_model

* Suppress warnings for Windows

* Suppress more warnings for Windows

* Suppress more warnings for Windows

* Additional suppress

* More Windows warnings

* Additional warning

* Suppress more warnings

* Suppress warning from python API
2023-08-02 07:22:17 +04: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
Ivan Tikhonov
5fadde62ba Enable ResolveNamesCollisions transformation in MOC #2 (#18772)
* ResolveNamesCollisions transformation refactoring; enable it in MOC

* fix the description

* call ResolveNamesCollisions transformation in the frontends; resolve review comments

* Resolve review comments

* fix EliminateUnsqueezeGather and AlignMixedTypes transformations
2023-07-29 09:29:31 +04:00
Evgenya Stepyreva
812d11cf8c Dimension equality fix (#18806) 2023-07-27 12:01:45 +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
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
Ilya Lavrenov
5c2cda40f2 Fixed -Wabi warnings in headers (#18796)
* Fixed a lot of -Wabi warnings

* Added dtors for frontend conversion extensions for RTTI
2023-07-26 15:15:45 +04:00
Katarzyna Mitrus
7629d0b9cf [ShapeInference] Additional check for the shape of DetectionOutput input (#18675)
* Additional check for DetectionOutput input shape

* Tests

* Update test description

* Update error message and check type

* Use OV_EXPECT_THROW
2023-07-26 12:24:56 +02: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
Katarzyna Mitrus
26d53eb1da [GroupNormalization-12] Reference implementation update to minimize fp16 error (#18760)
* Update mean calculation in group_normalization ref

* Update tests

* Update using namespaces
2023-07-25 13:07:15 +02:00
Ilya Churaev
d3fdc761f6 Try to fix get_data() and lto (#18766)
* Try to fix get_data() and lto

* Added test
2023-07-25 14:09:21 +04:00
Wang Kai
fdfafbb7d2 removing redundant statement in ov::descriptor::Tensor::Tensor (#18098)
Co-authored-by: Ilya Churaev <ilya.churaev@intel.com>
2023-07-25 07:55:42 +02:00
Ilya Churaev
e7cd113a47 Add to_string() method to ov::element::Type (#18697)
* Add to_string() method to ov::element::Type

* Fixed Python legacy API

* Fixed typo
2023-07-25 09:22:16 +04:00
Katarzyna Mitrus
99557e3356 Enable ScatterElementsUpdate test for reduction mean (#18682)
* Enable scatter elements test for reduction mean

* Remove remaining comment
2023-07-25 06:45:05 +02:00
Andrew Kwangwoong Park
dfb1493f2f [GPU] Update ReorgYolo to use nGraph shape inference (#18663)
* Update ReorgYolo to use ngraph shape infer

Signed-off-by: Andrew Park <andrew.park@intel.com>

* Add dynamic TCs for ov_gpu_func_tests

Signed-off-by: Andrew Park <andrew.park@intel.com>

* Add shape infer TCs for ov_gpu_unit_tests

Signed-off-by: Andrew Park <andrew.park@intel.com>

* Apply comments

Signed-off-by: Andrew Park <andrew.park@intel.com>

* Fix clang-format

Signed-off-by: Andrew Park <andrew.park@intel.com>

* Fix conflict

Signed-off-by: Andrew Park <andrew.park@intel.com>

---------

Signed-off-by: Andrew Park <andrew.park@intel.com>
2023-07-25 02:47:27 +02:00
Oleg Pipikin
bf4a2a462a Refactor common_test_utils (#18693)
* Refactor common_test_utils

* Apply comments
2023-07-24 21:23:42 +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
Andrew Kwangwoong Park
2c889c8b5e [GPU] Update RegionYolo to use nGraph shape inference (#18657)
* Update RegionYolo to use ngraph shape infer

Signed-off-by: Andrew Park <andrew.park@intel.com>

* Add dynamic TCs for ov_gpu_func_tests

Signed-off-by: Andrew Park <andrew.park@intel.com>

* Add shape infer TCs for ov_gpu_unit_tests

Signed-off-by: Andrew Park <andrew.park@intel.com>

---------

Signed-off-by: Andrew Park <andrew.park@intel.com>
2023-07-23 21:55:21 -07:00
Wang Kai
74b5f8673c fixing typo (#18041)
Co-authored-by: Ilya Churaev <ilya.churaev@intel.com>
2023-07-24 06:07:25 +02:00
Sergey Lyalin
329200cc62 New save_model function (C++, Python) (#18656)
* Draft version of save_model function (C++, Python)

* Fixed code style.

* Fixed incorrect test model construction for Python save_model tests

* Minor improvements in code readability

* Minor adjustment based on PR review
2023-07-21 16:03:53 +04:00
Mateusz Tabaka
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
Ilya Churaev
e600a8e45a Revert "Revert "Revert "Fixed cases if cast data from Tensor to compatible type (#18479)" (#18539)" (#18599)" (#18631)
This reverts commit ea84e73282.
2023-07-19 12:20:11 +04:00
Mateusz Bencer
d363660e67 Deprecate old ONNX API (#18587) 2023-07-18 20:45:39 +00:00
Ilya Churaev
ea84e73282 Revert "Revert "Fixed cases if cast data from Tensor to compatible type (#18479)" (#18539)" (#18599)
This reverts commit 3daa387692.
2023-07-18 19:57:32 +00: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
Pawel Raasz
ff5b56ee07 Improve node validation failure message for shape infer (#18520)
* Add NODE_SHAPE_INFER_CHECK macro
throws NodeValidationFailure for shape inference

* Use NODE_SHAPE_INFER_CHECK in topk shape inference

* Move description to header file

* export NodeValidationFailure::create function
2023-07-18 11:41:19 +04:00
Mateusz Bencer
5464216404 Fix IRDFT for 1D complex input in debug mode (#18525) 2023-07-17 16:45:21 +02:00
Pawel Raasz
c1fde50cd9 Improve __FILE__ trim on windows builds (#18573) 2023-07-17 14:29:40 +02:00
Evgenya Stepyreva
4f415ba211 Partial Values and Labels visualization and update in label equality checks (#18527)
* Provided visualization of partial values and labels. Adopted DimensionTracker for better equivalence tracking

* Addressed comments and fixed one test
2023-07-17 11:59:24 +00:00
Oleg Pipikin
b211767280 Consolidate common test utils targets (#18385)
* Consolidate test util targets

* Fix code style

* Fix 1

* Fix code style
2023-07-17 11:59:13 +00:00
Ilya Churaev
f9ead5016f Moved copy_to to impl and move template plugin to this API (#18574)
* Moved copy_to to impl and move template plugin to this API

* Fixed code style

* Fixed documentation
2023-07-17 15:27:17 +04:00
Ilya Churaev
93e30468b1 Change plugin api (#18441)
* Remove vector of so objects from Tensor, Any, VariableState and
RemoteContext

* Change IRemoteContext

* Fixed build without Proxy

* Moved API to ITensor

* Remove friends from Tensor class

* Changed query_state API

* Remote SoPtr for some returned values

* Fixed auto plugin

* Add so to converted objects

* Fixed build all on macOS

* Check that tensor pointers != nullptr

* Add SO to converter

* Added new constructors for SO ptrs

* Changed IVariableState API

* Remove proxy friend

* Remove friends and nullptrs from auto

* Fixed build

* Fixed HETERO plugin

* Fixed code style
2023-07-14 10:47:53 +04:00
Ilya Lavrenov
3daa387692 Revert "Fixed cases if cast data from Tensor to compatible type (#18479)" (#18539)
This reverts commit 63b18adf68.
2023-07-13 18:34:53 +04:00
Katarzyna Mitrus
d026ae74ce [ONNX] Use ov::v12::ScatterElementsUpdate in ONNX FE ScatterElements (enable reduction) (#18462)
* Update ONNX FE scatter_elements to use ScatterElementsUpdate-12

* ONNX tests update

* Set reduction update

* Enable xfailed tests

* Add more onnx tests

* Fix reference implementation to support negative indices

* Style alignment
2023-07-13 12:16:31 +02:00
Pawel Raasz
2cfd259824 [core]Trim __FILE__ macro by compiler if supported (#18411)
* Trim __FILE__ macro by compiler if supported

* Use file for older version cmake
Debug messages

* Move trim compilation options to os_flags.cmake

* Fix MSVC trimming options

* Add additional trim on runtime

* Update trim function description

* Use ov implementation for ngraph::trim_file_name

* Restore ie_c_api.h

* Remove unused define

* MSVC add trim for CXX language
2023-07-13 13:42:01 +04:00
Ilya Churaev
63b18adf68 Fixed cases if cast data from Tensor to compatible type (#18479)
* Fixed cases if cast data from Tensor to compatible type

* Allow cast only if both element types are real or not
2023-07-12 22:51:34 +04:00
Xiping Yan
a396f07421 [CPU][NGraph]Enable node scatter_nd_update support negative indices. (#17219) 2023-07-12 17:04:44 +04:00
Oleg Pipikin
ee50d2d120 Fix deprecation warning for debian build (#18488) 2023-07-11 21:46:20 +04:00
Pawel Raasz
56f51135d4 Grey preprocessing yuv nv12 i420 (#18239)
* Add two plane YOV to Grey conversion

* Add i420 to grey conversion

* Add yuv to grey conversion for GPU

* Fix cmakes

* Remove static from local function

* Remove opencv dependency from tests

* Put grey_from_yuv_single_plane into namespace
2023-07-11 12:41:24 +02:00