Commit Graph

934 Commits

Author SHA1 Message Date
Ilya Churaev 8020530e67
Reduce ngraph namespace usage from core component (#20309)
* Reduce ngraph namespace usage from core component

* Fixed build

* Fixed build 2

* Added missed opset to legacy API
2023-10-11 07:09:04 +04:00
Piotr Krzemiński e24b6211e3
[BUGFIX][Core][Template] Multinomial shape filling for 1D input (#20359)
* [BUGFIX] Fix incorrect shape filling for 1D tensor smaller than requested sample size

* [FIX] Remove redeclaration
2023-10-10 22:51:59 +00:00
Mateusz Tabaka 4a3ce48f7a
CompressQuantizeWeights optimizations (#20025)
* Optimize CompressQuantizeWeights transformation

- remove CoordinateTransform usage from FakeQuantize reference implementation
- move ZeroPointOptimizer functionality inside CompressQuantizeWeights
- compute scale and zero point in the same loop

Ticket: CVS-119273

* review comments

* clang format

* fix comments
2023-10-10 13:10:05 +04:00
Tomasz Jankowski 86d0bdb2db
[Ref] Drop legacy API - leftovers (#20271)
* Merge opt_kernel into reference

* Remove get_default_order

* Use ov:: in jit generators

* Remove unused template function

* Add reshape parameter for consistency with Op spec

* Add brief description and such

* Remove unused param from reshape ref

* Use C++ casting
2023-10-10 03:27:22 +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 Churaev 7c847cecba
Remove ngraph namespace from operations without evaluate (#20252)
* Remove ngraph namespace from operations without namespace

* Try to fix build

* Additional fixes

* More fixes

* More fixs

* Fix reverse op

* Fixed tests

* Throw an exception if somebody tries to reallocate tensor

* Revert "Throw an exception if somebody tries to reallocate tensor"

This reverts commit 8e06d6d576.

* Remove python test

* Revert "Remove python test"

This reverts commit 37b12148d3.

* Changed evaluate model behavior
2023-10-06 12:54:11 +04:00
Ilya Churaev fb40081475
Moved apply auto padding to dev API (#20257) 2023-10-06 12:20:26 +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
Mikhail Ryzhov a79c07b3a0
[GA] Enable win workflow (#19646)
* Enable win workflow and cpu parallel tests

* removed test code

* update cache naming

* extended logs collections

* Revert "extended logs collections"

This reverts commit 0dd6620832.

* revert lost code during the merge

* missed dependencies

* enabled push trigger

* changed the cache key name

* skipped failed test

* fixed github action condition and added comments

* Update src/core/tests/check.cpp

* cache generation fix

* Apply suggestions from code review

* fixed python test configuration

* Revert "cache generation fix"

This reverts commit 0feab650fe.

* debug parallel tests

* Revert "Revert "cache generation fix""

This reverts commit e385b04410.

* Revert "debug parallel tests"

This reverts commit e4459472a7.

* fixed steps conditions

* concurrency updated

* fixed test skip condition on win

* review changes

* collect debug logs

* overwrite test list

* debug commit

* Revert "debug commit"

This reverts commit 8720b87c8f.
2023-10-05 16:49:39 +04:00
Tomasz Jankowski 921e621404
[Ref] Drop legacy API (#20006)
* Drop legacy API - CoordinateTransform

* Refactor AvgPool ref

* Fix zero padding indices ceil rounding

* Transpose 3D reshaped kernels

* Reuse max_pool v8 ref in v1

* Change ref::slice params validation

* Fix wrong alloc in max_pool ref

* Drop legacy from TopK

* Fix mvn ref

* Deprecate unused

* Drop ngraph from TopK op

* Remove deprecated

* Use OPENVINO_ASSERT

* Replace headers paths

* Replace headers paths

* Add missing include

* Address review comments

* Clean up

* Remove unused and duplicated code
2023-10-05 07:26:49 +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
Piotr Krzemiński 48164e2279
[Ref][Core][Opset13] Add Multinomial Operation (#19655)
* [Ref] Multinomial base file

* [Ref] Add core & reference implementation reusing other ops

* [Ref] Fix reference implementation, add missing parameters, add tests

* [Core] Add opset13, register multinomial, add shape inference

* [Ref][Core] Fix compile errors

* [Ref][Core] Clang fix

* [TEMPLATE] Remove bf16, f16, f64 types

* [TEMPLATE] Remove incorrect input types for 'input' parameter

* [Ref][Tests] Remove deleted test types

* [Ref] Fix & optimize  shape inference

* [PT FE] Apply suggestions from review

* [Template] Migrate to new API

* [Core] Add a clause for dynamic input in shape inference

* [Tests] Add missing type_prop test (?)

* Update multinomial_shape_inference.hpp

* Update multinomial.hpp

* [Ref] Fix build issues

* [Ref] Fix clang and style

* [Ref] Fix tests without replacement

* [Ref] Fix with_replacement sampling error

* [Ref] Remove debugging artifacts

* [Ref] Cast to 64-bit size for 32-bit systems

* Update multinomial.hpp

* [Ref] Add missing type_prop tests, add shape inference tests

* Update multinomial.cpp

* Update multinomial_shape_inference_test.cpp

* Update multinomial.cpp

* Update multinomial.hpp

* [Ref] Fix compilation errors from shape inference test

* [Ref] Fix compilation error of type_prop, apply recommendations from review

* [Ref] Add multiple shape inference tests

* [Ref] Change TEST to TEST_F, add more type_prop tests

* [Ref] Clang fixes

* [Ref] Fix shape inference tests with mismatching args

* [Ref] Fix remaining type_prop errors

* [Ref] Replace HostTensor with normal Tensor in shape inference tests

* Update opset.cpp

* [Ref] Possible fix for 'function empty' error

* [Ref] Add a cast to remove conversion warning

* [Ref] Add conformance test of Multinomial

* [Ref] Match style of conf test to the remaining tests

* Update single_op_graph.cpp
2023-10-04 17:14:32 +02:00
Mateusz Mikolajczyk 7926302d35
[Ref][Core][Opset13] BitwiseAnd, BitwiseOr and BitwiseXor core shell and reference (#20058)
* Add Bitwise binary core and refs

* Add draft for tests

* Formatting, build issues and tests

* Fix tests

* Add reference tests

* Apply requested changes

* Add requested changes

* Rename

* uncomment test

* Update src/tests/functional/plugin/conformance/test_runner/op_conformance_runner/src/op_impl_check/single_op_graph.cpp

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

* change reference

---------

Co-authored-by: Tomasz Jankowski <tomasz1.jankowski@intel.com>
2023-10-04 09:38:33 +02: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
Ilya Churaev 23e5964c5d
Remove HostTensor from ov namespace (#20168)
* Remove HostTensor from ov namespace

* Fixed build
2023-10-03 09:13:18 +04:00
Ilya Churaev ea37126ea5
Removed ie:: namespace (#20172) 2023-10-02 14:02:14 +04:00
Ilya Lavrenov 95e3096684
Added build on RedHat system to build & test RPM packages (#20134)
* Added GHA workflow for RPM packages

* Avoid rebuild for RPM / Debian packages

* Removed conditional include headers

* try only post-build

* Beautification

* Fixed testdata generation for mulit-config generators
2023-10-01 23:23:06 +04:00
Katarzyna Mitrus 86bf038417
[Ref][Core][Opset13] NMSRotated-13 core shell and reference implementation (#19907)
* nms_r_init

* Add tests

* Update nms refs

* Update onnx import

* Add nms rotated utils

* Remove soft sigma and align constructors

* Fix typo

* Style apply

* Add namespace for iou

* Update opset comment

* Revert cpu changes

* onnx test cleanup

* Update input types validation

* Align shape_infer boxes

* Test update

* Fix warning

* Temporary evaluate support for tests

* Add counterclockwise support

* Remove box_encoding attr

* Fix clockwise box idx

* More tests

* Update opset test

* Update boxes shape validation

* Type prop tests

* HostTensor to ov Tensor migration

* Update output_type set get output_type_attr

* Move setters and getters to cpp

* Add visitor test

* Cleanup

* Remove temp eval

* Headers adjustment

* use float for division

* Fix ref tests run

* Tests and style code refactor

* Move type check into box_last_dim

* Update visitor test namespace

* Check input type loop

* Remove nms_rotated namespace and rename ref function

* avoid copies in filling output tensor

* Update shape var name

* remove static from riou func

* Update nms_rot utils

* Move nms rot util to ov reference namespace

* use std::cos and std:::sin

* Update struct name

* Explain usage of postprocessing

* Update element type desc in error message

* Add more comments

* Adjust rotated util float types

* Fix name conflicts and warnings

* Update opset test ops number

* Move int input check to the loop

* Short box_def_size init

* Move remove static_output from shape_infer params

* Align float zero

* Update third-party-programs

* Fix TensorIt for CI

* Add op check test
2023-09-29 17:48:45 +00:00
andreyanufr b73b2502b1
Introduce NF4 data type (#19900)
* NF4 reference initial commit

* Compilable version.

* Executable NF4.

* Fixed nf4 unpacking.

* 1) Fixed warnings with nf4.
2) Removed unused functions.

* Added one test for nf4.

* Fixed code-style errors.

* Fixed code-style errors.

* Fixed NamingConventionCheck errors.

* Fixed test with nf4.

* Fixed windows compilation.

* Fixed casting warning.

* Fixed incorrect changes.

* Changed order of elements in nf4 pack/unpack.

* 1) Made Convert only on direction nf4->other type.
2) Applied reviewers suggestions.

* Fixed code style.

* Fised code style.

* 1) Added array header.
2) Added Bitsandbytes to third-party-programs.txt.

* 1) Removed unused code.
2) Fixed style typos.
3) Revert submodule version.

* Added test for nf4 compression.

* NF4 test refactoring.

* Added cpp tests for NF4.

* Removed model compilation from NF4 tests.

* Reverted submodule version.
2023-09-28 20:56:57 +04: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
Ilya Lavrenov a6e7bac962
Added RISC-V Conan build (#20064) 2023-09-27 12:24:20 +04:00
Mateusz Mikolajczyk f5fe664fb7
[Ref][Core][Opset13] Add BitwiseNot operation (#19956)
* [Ref][Core][Opset13] Add bitwise_not operation

* Fix CI issues + add missing test

* improve test

* formatting

* Requested changes

* Remove unused include

* Add requested changes

* Try to fix test problems

* Fix CI

* Fix type validation

* Add checks in template eval
2023-09-27 08:17:53 +02:00
Ilya Lavrenov 8349849e1c
Use FindPython3.cmake (#19847)
* Use FindPython3.cmake

* Fixed compilation on macOS 14 with new core development tools

* Try to use Python3_SOABI instead of PYTHON_MODULE_EXTENSION

* Use Development.Module

* Keep specifying only Python3_EXECUTABLE

* Print PYTHON_MODULE_EXTENSION

* Added check for minimal cmake version for python API

* Returned Python3_INCLUDE_DIR for cross-compilation case

* Try to allow cmake older than 3.18

* Use build python interpreter to check cython dependency

* revert changes in .ci/openvino-onnx/Dockerfile

* removed unused code

* Fixed issue with variables scope

* Experiment: remove include dirs

* Corrected docs

* Use pybind11 function to set extension

* Revert "Experiment: remove include dirs"

This reverts commit 6f7f90211c.

* Refactor ConvolutionBackpropDataLayerTest, ConvolutionLayerTest, DeformableConvolutionLayerTest (#19810)

* Refactor ConvolutionBackpropDataLayerTest

* Refactor ConvolutionLayerTest

* Refactor DeformableConvolutionLayerTest

* Apply comments

* Apply comments

* Fix

* Updated minimum cmake version for Windows

* Simplified check

* Removed useless message status

* Use puiblic option

---------

Co-authored-by: Oleg Pipikin <oleg.pipikin@intel.com>
2023-09-26 20:57:29 +02: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
Anton Voronov 3ce48fc3d6
Fixed OV static build issues (#19976) 2023-09-26 10:23:00 +04: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
Katarzyna Mitrus 37271c1e7c
[Opset13][CPP] Initialization of Opset13 (#20005)
* Opset13 init

* Update test pattern ops

* Update remaining files
2023-09-25 10:20:37 +02: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
Tomasz Jankowski c4adf80ec6
[Core] Move SlicePlan to Dev API (#19971)
* Move SlicePlan to Dev API

* Recover legacy API

---------

Co-authored-by: Evgenya Nugmanova <evgeniia.nugmanova@intel.com>
2023-09-21 14:41:01 +02:00
Ilya Churaev e277d48535
Move unsqueeze evaluate to new API (#19948)
* Move unsqueeze evaluate to new API

* Add new header

* Fixed comments

* Fixed build

* Revert redundant changes

* Fixed comments
2023-09-21 16:07:10 +04:00
Pawel Raasz 5bf5e488b7
Migrate LogicalXor to new API (#19913) 2023-09-21 12:09:49 +02:00
Evgenya Nugmanova c1a8380052
Symbolic shape inference and graph optimizations (#19392)
* Symbolic shape inference and graph optimizations
- Prepares a place in CommonOptimizations pipeline for symbolic optimizations
- Introduces symbolic propagation and symbolic optimizations for ChainedMaximum, NopBroadcast and shape sub-graph optimization
- Introduces utility runtime info for TableOfEquivalence passing and disabling of value invalidation during shape inference

* Executes NgramFusion in a symbolic environment. Relaxes Ngram fusion pattern utilizing symbolic knowledge

* Remove debug model visualization

* rt_info copying to new Add operation

* Fix visualization and place validation in nicer place in symbolic transformation

* Fix Slice operation not to propagate labels if input and output dimension is fully dynamic

* Covering Vladislav comments

* Replace value invalidation followed by validation to revalidation since it does the same thing

* Adding back invalidation of cached values to Symbolic Propagation pass

* Fix StridedSlice label propagation. Code style

* Update src/common/transformations/tests/symbolic_transformations/nop_broadcast.cpp
2023-09-20 18:00:07 +04:00
Ilya Churaev 631d6d3980
Fixed leftovers after migration to new API (#19941)
* Fixed leftovers after migration to new API

* Fixed tests

* Fixed clang format

---------

Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2023-09-20 01:36:44 +02:00
Anastasia Kuporosova b3ee79520f
[PyOV][Docs] Add docs for if-op (#19899)
* [PyOV][Docs] Add docs for if-op

* code style

* add rtypes

* add dots
2023-09-19 21:35:38 +00:00
Evgenya Nugmanova 00bc4436a9
Allow avoiding Constant casting / printing VisualizeTree (#19845)
* Avoid Constant casting / printing when OV_VISUALIZE_TREE_CONST_MAX_ELEMENTS==0
Cast only requested amount of elements in Constant::cast_vector<>

* Refactor

* Revert style back

* Fix signed/unsigned comparison

* test

* Style

* Style
2023-09-19 20:13:19 +02:00
Ilya Churaev 9c908f5245
Migrate template backend to new api (#19843)
* Added set_element_type for tensor

* Moved template backend to new API

* Revert "Added set_element_type for tensor"

This reverts commit 27608d2ea0.

* Fixed build

* Fixed more errors

* Fixed loop implementation

* Fixed ONNX tests

* Small change

* Fixed set_shape for host tensor

* Fixed ReadValue Assign tests

* Fixed template tests

* Fixed build

* Fix Windows build

* Fixed more errors

* Fixed CTCLoss

* Fixed comments

* Removed all comments

* Fixed tensors update

* Try to fix tests
2023-09-19 11:46:11 +04:00
Ilya Lavrenov 54609e7b72
Removed FixRtInfo pass (#16870)
* Removed FixRtInfo pass

* Removed FixRtInfo pass

* Fixed macOS compilation
2023-09-19 00:07:59 +04:00
Evgenya Nugmanova 2205f48c71
Squeeze w/o axes [1, -1] -> dyn_rank (#19593)
Removes PDPD logic from core code, keeps PDPD specifics in the translator
2023-09-15 12:27:12 +04:00
Ilya Lavrenov ba67db66ae
Properly enable CMAKE_COMPILE_WARNING_AS_ERROR (#19828)
* Properly enable CMAKE_COMPILE_WARNING_AS_ERROR_DEFAULT

* Properly enable CMAKE_COMPILE_WARNING_AS_ERROR
2023-09-15 01:20:00 +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 fa667156cb
Check HolderTests under the proxy (#19785)
* Skip only virtual device tests

* Fixed proxy life time

* Fixed compiled model get property

* Fixed code style

* Try to fix LTO
2023-09-14 15:11:26 +04:00
Ilya Churaev 4df4ea9b31
Move ngraph function to new api (#19728)
* Moved ngraphFunctions to new API

* Fixed code style

* Fixed build function

* Fixed cpu unit tests

* Fixed code style

* Fixed transformation tests

* Fixed code style

* Fixed build

* Fixed LP tests

* Fixed build all for macOS

* Fixed more issues

* Fixed some func tests

* Try to fix CPU tests

* Revert incorrect change

* Try to fix tests

* Fixed merge conflicts

* Remove redundant headers

* Update src/tests/ngraph_helpers/ngraph_functions/src/non_max_suppression.cpp

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

---------

Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2023-09-14 10:57:23 +04:00
Ivan Tikhonov d0213301a5
Transformations: API 2.0 transition part 3 for LPT transformations (#19610)
* lpt transformations: transition to api 2.0, ngraph -> openvino

* use ov namespace for lpt transformations

* fix low_precision usings

* includes refactoring

* delete RecurrentGraphRewrite and RecurrentMatcher as unused classes

* use ov header for itt; delete the disabled test

* delete the unused function

* suppress doxygen warning

* fix link in the documentation
2023-09-13 12:30:31 +00: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 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
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
Vitaliy Urusovskij 9f4e918ee2
Gracefully fail if test models weren't generated (#19705)
* Gracefully fail if test models weren't generated

* Add assert instead of return `nullptr`
2023-09-11 15:18:45 +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
Katarzyna Mitrus bd66971dd6
[ShapeInfer] FFTBase shape infer improvement - preserve input sizes bounds and labels (#19463)
* Reduce number of rank checks

* Preserve data shape if signal_size input is not provided

* Add bounds propagation on fft input

* Improved preserving bounds on fft input

* Remove size_t rank cast and have_axes variable

* Check refactor

* Use ge helper for rank comparison

* Make bounds constexpr

* Pass raw pointer instead of unique_ptr ref

* Use normalize_axes helper

* Ensure to call set label if it's not zero
2023-09-06 12:20:58 +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
Evgenya Stepyreva fef4d4d641
Auto batch lost label fix (#19535)
* Restored opset1::Reshape label peropagation for -1 special value

* Lets opset1::Reshape keep same shape infer. Makes FindBatch transformation keep labels in output shapes of Result node

* uses Parameter from correct namespace
2023-09-04 17:11:09 +02:00
Tomasz Jankowski 51df17912b
[Ref_Impl] Change namespace from nG to OV (#19363)
* Use quotes for openvino includes

* Drop runtime from openvino::reference

* Drop runtime::reference

* Replace ngraph::reference with ov::reference - defs

* Replace ngraph::reference with ov::reference - uses

* Drop redundant nesting

* Fix non arch64 builds

* Move coordinate*pp files under openvino

* Move Coordinate... helpers under ov:: namespace

* Revert not needed changes

* Fix missing namespace scope

* Fix compilation

* Fix code style

* Use ov suppress deprecated macro instead of ngraph

---------

Co-authored-by: Raasz, Pawel <pawel.raasz@intel.com>
2023-09-04 08:07:06 +04:00
Ivan Novoselov b0d917f0cb
Snippets pass manager (#18846) 2023-09-01 12:31:42 +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
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
Ilya Churaev f30afa9ad3
Finalization of migration core unit tests (#19468) 2023-08-29 11:58:54 +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
Ilya Churaev 29ad3e8c92
Moved eval tests to new API (#19364)
* Moved eval tests to new API

* Fixed build

* Fixed eval tests
2023-08-28 10:22:14 +04:00
Ilya Churaev 39b75fd213
Moved core tests from root folder to new API (#19381) 2023-08-25 15:23:41 +04:00
Katarzyna Mitrus decc2e31f3
[ShapeInference] FFT based - revision and tests (part 1) (#19070)
* Reuse common shape validation for fft base

* Align helper names

* Common test class for fft ops

* Move all (I)DFT test cases to the common test class

* More test cases for param axes

* Init labels validation

* More label tests

* Labels validation for non const signal size

* Init label tests for IRDFT

* More label test for irdft

* Labels tests for RDFT

* Remove duplicated tests

* Rename common validation file

* Rename shape infer tests file

* Use node shape infer check

* Headers order alignment

* Add const to the test params vector

* Use this make_op

* Use OV_EXPECT_THROW in common fft tests

* Use OV_EXPECT_THROW iin rdft an irdft tests

* Pass input shapes and use SHAPE_INFER_CHECK

* Shorter error messages

* Update to use ov namespace in typeprop tests
2023-08-25 12:27:18 +02:00
Ilya Churaev 679369c707
Move Visitor tests to new api (#19379)
* Moved visitor tests to new API

* Fixed build for Windows
2023-08-25 10:50:59 +04:00
Tomasz Jankowski bcad953f5f
[Ref_Impl] Rename file paths to openvino relative (#19284)
* Move files to new directories

* Use quotes for openvino includes

* Provide proxy calls for transition

of dependant components.

* Correct includes style

* Redo proxies

* Fix deprecated

* Move aliases to proxy files

* Apply code style
2023-08-25 06:43:06 +04:00
Ilya Churaev 6deca48413
Moved type prop tests to new API from g to z (#19353)
* Moved type prop tests to new API from g to z

* Fixed build
2023-08-24 12:59:49 +04:00
Ilya Churaev 475ce744af
Remove legacy headers and namespaces from C-F type prop tests (#19332) 2023-08-24 06:56:53 +04:00
Ilya Churaev b77e47970d
Removed legacy headers from some core tests (#19328)
* Removed legacy headers from some core tests

* Fixed build
2023-08-24 06:55:21 +04:00
Oleg Pipikin 7aa51d6775
Remove makeParams (#19306) 2023-08-23 11:39:05 +04:00
Vitaliy Urusovskij ef33c2b3fd
Fix uninit members in default `GroupNormalization()` (#19244) 2023-08-18 12:16:55 +04:00
Ivan Tikhonov dc6f04f475
Handle unspecified type in wrap_tensor function; unit tests (#19220) 2023-08-18 10:25:09 +04:00
Alina Kladieva a3393e535b
Increment OV version to 2023.2.0 (#19248) 2023-08-17 15:03:14 +02:00
Ilya Lavrenov 75b48e9cdc
Added OpenCV minimal versions (#19231) 2023-08-17 16:45:01 +04:00
Sergey Lyalin f0300a36eb
Efficient FP32 -> FP16 conversion for convert_precision, save_model, ovc and mo (#18988)
* WIP Postpone fp16 in CompressFloatConstantsImpl

* Apply suggestions from code review

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

* WIP: Compression to FP16 in Serialize

* Prepared for efficient fp32 to fp16 conversion

* Update src/core/reference/src/runtime/reference/convert.cpp

* Called real slow reference implementations in the place where the optimized versions are supposed to be implemented

* Code style

* Fixed 0 values in the fast f64 to f16 compression

* Optimized convert_from_f32_to_f16_with_clamp

* Added optimized f32->f16 instance of change_constant_precision

* compression transformation Python test

* use tmp dir, minor corrections

* Update src/bindings/python/tests/test_transformations/test_compression.py

* Update src/bindings/python/tests/test_transformations/test_compression.py

* style fix

* define rt_info for postponed_fp16_compression

* remove redundant class

* fix temp dir for Win in test_compression.py

* update definitions in convert.hpp

* Update implementation in convert.cpp

* Update serialize.cpp

* Update compress_float_constants.cpp

* added macros for ARM/non_x86 in convert.cpp

* fix macros in convert.cpp

* change fixme placement in serialize.cpp

* style_fix

* Update src/core/reference/src/runtime/reference/convert.cpp

* style_fix

* Optimized count_out_of_f16_range

* Code style

* Revert unused

* Update src/core/src/pass/serialize.cpp

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

* Update src/core/reference/src/runtime/reference/convert.cpp

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

* use optimized convert_from_f32_to_f16_with_clamp for non postponed

* minor corrections

* Update src/common/transformations/src/transformations/common_optimizations/compress_float_constants.cpp

* Update compress_float_constants.cpp

* Switched mo and ovc to save_model instead of serialize to leverage performance improvements in fp32->fp16

* Applied minor code imporvements to address review feedback

* Minor changes in code

* Update tools/ovc/openvino/tools/ovc/main.py

* Apply suggestions from code review

* Fixed failed test in case when both usual xml compression and fp16 compression are applied simultaneously (disabled for now)

* Added description for CompressFloatConstantImpl postponed parameter

* Description of postponed parameter for CompressFloatConstants

* Reverted switching to save_model in mo as the compression can be applied not only via CLI and old code should be kept for Python path (not applicable for ovc)

* Removed remining committed test artefacts and reverted remaining changes in mo

---------

Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
Co-authored-by: dmitrygo <dmitry.gorokhov@intel.com>
Co-authored-by: Vladimir Paramuzov <vladimir.paramuzov@intel.com>
Co-authored-by: Pavel Esir <pavel.esir@intel.com>
Co-authored-by: Pavel Esir <pavel.esir@gmail.com>
2023-08-17 11:08:33 +00:00
Katarzyna Mitrus 014691de4c
Test nms fix (#19156) 2023-08-16 12:32:04 +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
Ilya Lavrenov 6067ab17ba
Aligned target and files (libraries) names (#19161) 2023-08-13 11:31:44 +04:00
Ilya Lavrenov 0a32ec0e76
Fixed compilation with 32 bits (#19100) 2023-08-11 11:49:48 +04:00
Vladimir Paramuzov cde0893271
[GPU] Use ov::Tensor intead of ngraph::HostTensor (#18925) 2023-08-10 09:43:45 +00:00
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