Commit Graph

76 Commits

Author SHA1 Message Date
Katarzyna Mitrus
89e2c0e2fa Add error handling in broadcast shape inference and init clamp attributes (#15118)
* Initialize clamp class members

* Add error message if broadcast_merge_into return false
2023-01-16 12:26:21 +01:00
Ilya Churaev
0c9abf43a9 Updated copyright headers (#15124)
* Updated copyright headers

* Revert "Fixed linker warnings in docs snippets on Windows (#15119)"

This reverts commit 372699ec49.
2023-01-16 11:02:17 +04:00
Andrew Kwangwoong Park
e0359d3085 [GPU] Enable Deconv/GroupDeconv shape infer (#15005)
* Update deconv primitive APIs for dilations and output_padding

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

* Add calc_output_layouts for deconv

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

* Add deconv shape inference TCs for ov_gpu_unit_tests

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

* Add deconv dynamic TCs for ov_gpu_func_tests

- Disable pre_replace_deconv for dynamic shape
- Update get_expected_layout for deconv_node during reorder_input
- Add I/O swap of weights for shape infernece

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

* Add group deconv dynamic TCs for ov_gpu_func_tests

- Update op creation for group deconv

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

* Fix clang-format

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

* Update test params with swapped I/O dimensions for ov_gpu_unit_tests

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

* Update for optional output_shape const/param input support

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

* Update deconv/group deconv dynamic TCs w/ output_shape for ov_gpu_func_tests

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

* Update deconv/group deconv shape inference TCs w/ output_shape for ov_gpu_unit_tests

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

* Apply code review

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

Signed-off-by: Andrew Park <andrew.park@intel.com>
2023-01-10 22:09:47 -08:00
Pawel Raasz
000a634429 Remove code duplicates for shape inference utils (#14721)
* Remove code duplicates for shape inference utils

* Fix typos and comments
2023-01-04 10:56:35 +01:00
Katarzyna Mitrus
5d2d2ec623 OneHot - Shape Inference revision (#14602)
* Add type_prop tests

* Add shape_infer tests

* Update shape_infer to preserve interval dim and label

* Unified approach for get_data_as_shape and negative value checks

* Remove redundant gtest header

* rename one hot shape infer test file

* Add test for shape_infer with default ctor and adjust resolve_axis

* Move get_data_as_shape changes to the one hot custom util

* Adjust custom get_data_as_shape
2022-12-23 13:23:43 +04:00
Katarzyna Mitrus
6b5a563748 [Shape Inference] Select - shape inference review (#14708)
* Select shape_infer tests update

* Add Select type_prop tests

* Add evaluate_lower/upper for select

* Revert evaluate_lower/upper for Select

* Use get_node_input_partial_shapes

* Style and headers improvements

* Style apply

* Rename select shape infer file tests

* Use default ctor for output_shapes init

* Use helper for shape_labels init and add more  dim test cases
2022-12-23 13:22:24 +04:00
Pawel Raasz
5714fdfe6b Extend partial shape to use back inserter and emplace (#14723)
* Extend partial shape interface add value_type
- add emplace_back

* Example to created dimension in output shape
instead of using tmp vector

* Add partial shape tests
2022-12-21 08:36:24 +04:00
Pawel Raasz
88456e6c3c Review tile class for shape inference aspects (#14673)
* Review tile for shape inference:
- propagate labels and dimension
- template implementation of shape inference
- if repeats is not-positive output dim is always 0

* Refactor Tile shape inference

* Review preserve partial values and labels

* Add support to evaluate bounds from repeats input

* Remove not used code
2022-12-20 12:49:52 +04:00
mei, yang
3c31488dfe Set squeeze output shape to scalar if 0 <= input_shape[0] <= 1 (#14293)
* Set squeeze output shape to scalar if 0 <= input_shape[0] <= 1

* add squeeze type_prop test case

* Update src/core/shape_inference/include/squeeze_shape_inference.hpp

Co-authored-by: Katarzyna Mitrus <katarzyna.mitrus@intel.com>

* Update src/core/shape_inference/include/squeeze_shape_inference.hpp

Co-authored-by: Katarzyna Mitrus <katarzyna.mitrus@intel.com>
2022-12-14 09:13:05 +01:00
Pawel Raasz
9e3b2e0b38 Review opset1 stridedslice for shape inference aspects (#14192)
* Review labels and dimension propagation
- check dimensions propagation with partial dimension
- extend testing for labels an dimensions propagation

* Shape inference support bounds evaluation
on begin, end inputs

* Review static shape inference

* Move sequence generator to dev API
to avoid create unnecessary library dependency

* Fix windows build issue

* Use strided slice in scatter update test
of partial value propagation

* Remove unused constant from test

* Fix strided dim calculation

* Fix clip lb,ub for strided dim calculation

* Use op strides if absent in input_shapes

* Move back SeqGen to shape inference

Co-authored-by: Evgenya Stepyreva <evgenya.stepyreva@intel.com>
2022-12-12 12:14:37 +01:00
Pawel Raasz
45033806fd Review opset7 einsum for shape inference aspects (#14059)
* Review einsum shape and label propagation
- extend type_prop test by check labels and einsum properties

* Review template implementation of shape inference
- rename StaticShape inference test file
- use common fixture and rename test cases
- add default ctor test
- add equation string setter

* Fix einsum label propagation check
due to improvement of dimensions and labels merge

* Remove BWDCMP_RTTI_DEFINITION from einsum op

Co-authored-by: Evgenya Stepyreva <evgenya.stepyreva@intel.com>
2022-12-09 17:04:51 +00:00
Roman Kazantsev
e082d183b1 [Core] Fix Pad shape inference for Edge and Reflect modes (#14185)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-11-24 14:54:51 +03:00
Pawel Raasz
a0a6e1c141 Review opset1 equal for shape inference aspects (#14006)
* Review equal shape inference:
- check dimension propagation
- check labels propagation
- check default ctor

* Review equal static shape inference
- add unit test for static shapes

* Correct typo in the variadic split method

* Remove leftovers and fix typos

Co-authored-by: Katarzyna Mitrus <katarzyna.mitrus@intel.com>

Co-authored-by: Katarzyna Mitrus <katarzyna.mitrus@intel.com>
2022-11-24 01:15:58 +03:00
Andrew Kwangwoong Park
64498b67a2 [GPU] Baseline program_node and kernel_impl_params with output layouts for multiple outputs support (#13761)
* Intial update for NMS mutiple outputs support

- update get_depedencies_new primitive overriding func for nms and reorder
- primitve API update for nms and reorder
- add non_max_suppression_base test TC for multiple outputs
- update non_max_suppression cpu impl for backward compatibility
- update dependencies_new for remove_redundant_reorders opt pass

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

* Update program_node and kernel_impl_params for multiple outputs supports

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

* Fix runtime error and failed TC for multiple outputs support

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

* Fix conflicts and newly update

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

* TopK shape infer

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

* Implement TopK gpuFunctests for dynamic shape and multiple outputs

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

* Fix conflicts

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

* minor API fix

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

* NMS shape infer

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

* Implement Nms gpuFunctests for dynamic shape and multiple outputs

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

* move gpuFunctests and fix conflict

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

* Fix issues for Nms gpuFunctests

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

* Fix conflicts and code cleanup

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

* apply clang-format

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

* Apply change to onednn primitive_impl

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

* Fix CI issues

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

* Apply code review

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

* updates for ngraph shape infer

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

* Fix conflicts

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

* Apply code review

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

* Failing case

* Apply code review

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

Signed-off-by: Andrew Park <andrew.park@intel.com>
Co-authored-by: Evgenya Stepyreva <evgenya.stepyreva@intel.com>
2022-11-15 08:31:16 +03:00
Tomasz Jankowski
c5eb25d3ea Transformation component transition to OV namespace (phase 2) (#13557) 2022-11-15 04:40:48 +03:00
Xuejun Zhai
cda2df8736 [CORE][Unite Test][Warning Fix] core unite test warning (#13757)
* [CORE][Unite test] Fix conflicts

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

* [CORE][Unite Test] clear cmake

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

Signed-off-by: Xuejun Zhai <Xuejun.Zhai@intel.com>
Co-authored-by: Ilya Churaev <ilya.churaev@intel.com>
2022-11-14 12:50:29 +00:00
Katarzyna Mitrus
9f65092694 Use broadcast_merge_into for Broadcast-3 Bidirectional mode (#13940)
* Broadcast type_prop tests for param target shape

* Improve broadcast shape_infer with target shape as param

Co-authored-by: Evgenya Stepyreva <evgenya.stepyreva@intel.com>
2022-11-14 10:57:35 +00:00
Pawel Raasz
cb067de597 Review opset1 variadic split for shape inference aspects (#13894)
* Review variadic split shape_infer template
- extend static shape tests
- add default ctor tests

* Use OV_EXPECT_THROW in exception tests

* Review evaluate upper, lower and label propagation

* Fix usage broadcast in bound tests

* VariadicSplit bound check in evaluate lower,upper

* Clean-up tests leftovers
2022-11-11 15:29:42 +04:00
Roman Kazantsev
9943edfa34 [Core] Fix StridedSlice shape infer in case dynamic end and input of dynamic shape (#13909)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-11-08 22:52:13 +03:00
Katarzyna Mitrus
03d048240c Broadcast-3 shape_infer review (#13849)
* v3::Broadcast tests

* Shape infer improvements

* Use Dimension broadcast_merge in Bidirectional mode

* More tests

* Style apply

* Fix Unqueeze with Broadcast tests

* Align Squeeze/Unsqueeze tests

* Fix warning

* Updates test shapes names

* loops refactor

* Remove redundant set/get labels from expected shapes

* Padding refactor

* Tests refactor

* Revert auto for i in loop
2022-11-08 21:51:04 +03:00
Taylor Yeonbok Lee
cd94a1f17b [GPU] Enable Conv/GroupConv shape infer for explicit/valid padding (#13731)
* Enabled Conv dynamic shape & Added conv dynamic functional test

* Fix layout optimizor

* Revert layout optimizer change

* Set expected layout of convolution for dynamic shape to be fsv16

* Fixed groupConv for dynamic shape

Added 1D dw/group convolution tests for both static & dynamic
Currently, 1D group convolution is only works for dw..

* Minor fix

* Updated for 3D conv dynamic case + corresponding test

* Fix lint error

* Fix INSTANTIATE_TEST_CASE to INSTANTIATE_TEST_SUITE

* Fix clang format & skip 1D group conv test
2022-11-07 11:38:52 -08:00
Pawel Raasz
c37e06f947 Review opset1 split for shape inference aspects (#13844)
* Review split operator for shape inference:
- check label and dimension propagation
- check evaluation lowe, upper and labels

* Review split static shape inference by tests

* Use shape_infer in split evaluate

* Fix compilation issues

* Fix usage of broadcast in bound tests
2022-11-07 17:04:25 +04:00
Katarzyna Mitrus
c953186ff0 GRU/AUGRUCell shape inference function (#13708)
* Add shape_infer function for GRUCell op

* Add shape_infer function for AUGRUCell

* Consts refactor

* Add batch_size check

* Enable GRUCell shape_infer for CPU

* Style apply

* Use OV_EXPECT_THROW in tests

* Use helper for input shapes

* Use .back() instead of index

* Change rnn_seq namespace to rnn

* Fix win warnings

* Enable AUGRUCell/Sequence shape_infer on CPU

* Fix warn

* Fix warn
2022-11-04 23:31:58 +03:00
Pawel Raasz
0646d49d35 Review opset1 squeeze for shape inference aspects (#13716)
* Review squeeze operator for
- label preserve and propagation
- partial values preserve and propagation
- interval shapes propagation

* Review static shape inference tests

* Add template shape inference for squeeze

* Update include for OV_EXPECT_THROW

* Correct has_static_axes initialization

* remove test_squeeze from xfail 44968

* Fix inference parameter op with no data
- add additional test to check if axes are parameter without data
- revert xfail marks for squeeze tests

* Fix inference parameter op with no data
- add additional test to check if axes are parameter without data
- revert xfail marks for squeeze tests

* Refactor axes acquire logic
2022-11-04 13:42:05 +03:00
Roman Kazantsev
22de883e6e [Core] Fix leftovers from PR13581 (#13693)
* [Core] Fix leftovers from PR13581

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

* Revert incorrect change for shrink axis

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-10-28 23:15:27 +03:00
Pawel Raasz
d96c25844d Review opset1 unsqueeze for shape inference aspects (#13538)
* Use non-blocking assertions in unsqueeze tests
for independent properties

* Review unsqueeze interval shape propagation:
- extend partial shape propagation tests
- add invalid axis value tests
- fix issues when repeated axes on input

* Shape inference test, unsqueeze using default ctor
- private fields set by setters

* Review unsqeeze bounds propagation:
- preserve and propagate labels
- bounds propagation lowe/upper

* Add template shape inference for unsqueeze
- extract current implementation and unify it for shape types
- add unit test for static shape inference
- add unsqueeze in/out indexes

* Unify axes normalization

* Use common fixture for static shape inference

* Fix build issue in GPU plugin
- include unsqueeze shape inference

* Remove enum with in/out indexes
Due to build issue on Windows

* Remove make move iterator
minor changes validation util

* Add test for label propagation
- expand static shape inference tests

* Add common validation for axes input

* Fix build issues

Co-authored-by: Evgenya Stepyreva <evgenya.stepyreva@intel.com>
2022-10-27 10:28:24 +03:00
Ilya Churaev
2a344b66cb Update to the latest cmake for Windows (#13604)
* Update to the latest cmake for Windows

* Skip new warnings

* Added compiler flags for old cmake

* Disabled some warnings

* Suppress new warnings

* Fixed some errors

* Disable some warning for lpt

* Fix some warnings

* Disable new warnings

* Fix some warnings

* Disabled Was error for arm

* Fixed some errors

* Fixed some new warnings

* Fixed auto plugin

* Fixed Windows warning

* Fixed Windows

* Disable some warnings

* Some changes

* Small test fixes

* Fixed python build

* Added skip warnings for legacy python API
2022-10-25 18:11:46 +04:00
Roman Kazantsev
be1b72d1e9 [Core] Correct shape inference for StridedSlice with non-const begin (#13581)
* [Core] Correct shape inference for StridedSlice with non-constant begin, end, and strides

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

* Fix build issue

* Fix build issue

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-10-24 15:18:02 +04:00
Katarzyna Mitrus
3c0b5c7f9b BinaryElementwiseArithmetic - common shape_infer (#13421)
* Use eltwise_shape_infer form shape_inference in validate_and_infer_elementwise_args

* Align Unary ops, remove redundant validate_and_infer_elementwise_args usage

* Add test with default constructor for BinaryElementwiseArithmetic ops

* Style apply

* Fix expected error message

* Add common shape_infer tests for BinaryElementiwiseArithmetic ops

* Remove old Add test

* Update NGRAPH_CHECK to OV ASSERT

* Removal of redundant autob param to the validate function

* Tests update
2022-10-19 11:57:16 +03:00
Pawel Raasz
4bc36f29f4 Review opset1 concat for shape inference aspects (#13455)
* Add interval dim test to Concat op
- use common test fixture for PartialShape OK scenario

* Use get_shape_labels in Concat tests

* Add label_evaluate test for Concat op

* Add validation util to check no labels in tensor

* Add template shape inference for Concat op

* Move Conact evaluate_label test to evaluate bounds

* Fix cpplint issue
2022-10-18 13:17:21 +04:00
Katarzyna Mitrus
844b0a2682 [shape_infer] Shape inference function for GRU/AUGRUSequence operations (#12982)
* shape_infer function for gru_sequence

* Reuse gru sequence shape infer for augru shape infer

* link ov_shape_inference in transformations

* Move attention input validation to shape_infer

* Update gru_sequence type prop tests

* type prop tests update

* gru_sequence shape_infer tests

* Update merged dimensions init

* Enable GRUSequence shape_infer in cpu

* Comments update

* Align error messages

* Change constexpr int to size_t in tests

* Apply types refactor

* Remobe set_input_is_relevant_to_shape from gru/augru_sequence

* Style apply

* revert constexpr for result_et

* Uninitialize valid_num_directions variable
2022-10-12 10:35:54 +04:00
Pawel Raasz
b4ad7033c9 Opset 1 transpose shape inference review (#12937)
* Test to interval shape propagated by transpose

* Test to propagate labels by transpose

* Add template transpose shape inference

* Fixes to transpose shape inference

* Update names for shapes:
input -> input_shape
order -> order_shape

* Not fill output shape for dynamic range

* Add constexpr to SeqGen and Between comparator

* Correct StaticShape creation in test

* Tests check partial value propagate in arg input

* Add evaluate upper, lower, label to transpose
- add test

* Add common methods for inference and evaluate

* Move helpers to shape_inference

* Move transpose attribute to transpose op

* Fix include in transpose operator

* Correct label generation and type

* Fix null conversion

* Use uint64_t for labels tensor

* Fix compare labels

* Use order length as output rank

* Update transpose transformation test

* Move helpers to validation_util

* Correct test assertion for expected shape

* Transpose evaluate use common function
for output calculation

* Remove redundant helpers from transpose test
2022-10-10 16:18:52 +04:00
Ilya Churaev
8a9c19e3eb Warning as error for Windows (#13291)
* parent 6e7016ccda
author Ilya Churaev <ilya.churaev@intel.com> 1664281499 +0400
committer Ilya Churaev <ilya.churaev@intel.com> 1664510018 +0400

Fixed warnings on local machine

* Added CMAKE_COMPILE_WARNING_AS_ERROR usage

* Fixed style

* Fixed merge conflicts

* Fixed typo

* Fixed myriad build for macOS

* Fixed warning

* Fixed tests

* Disabled incorrect test

* Try to fix linux tests

* Revert "Try to fix linux tests"

This reverts commit 29224c93ff.

* Fixed tests

* Revert logic with incorrect cast

* Fixed log softmax

* Disable warning as error for cuda

* Try to fix inference_engine_s

* Fixed cmake

* Revert "Fixed cmake"

This reverts commit 87e9e4e674.

* Revert "Try to fix inference_engine_s"

This reverts commit a1adca8b05.

* WA for static symbols in inference_engine_s test library

* Fixed code style

* Fixed static definition for master

* Revert "Fixed static definition for master"

This reverts commit 20d00d215a.

* Revert "Fixed code style"

This reverts commit 0eb2362543.

* Revert "WA for static symbols in inference_engine_s test library"

This reverts commit 75ef86a79d.

* Fixed linker issue for Windows

* Disable WaE by default

* Disable warning as error in the developer package

* Try to fix dev package

* Try to fix Windows Jenkins

* Revert old behavior for tread_warn_as_err variable
2022-10-06 13:44:21 +04:00
Paul Youngsoo Ahn
cd5928da53 Crop(Split and VariadicSplit) new shape infer (#13216)
* [GPU] Split and VariadicSplit new shape infer (#13216)

GPU update test script

* [GPU] Added W/A for crop offset (#13216)

Co-authored-by: Ahn, Paul Y <paul.y.ahn@intel.com>

* [GPU] Fix crop gpu test failures (#13216)
- Fixed by review comments

* [GPU] Move input offsets calculation to crop_inst::calc_output_layouts (#13216)

Co-authored-by: Taylor Yeonbok Lee <taylor.lee@intel.com>
2022-10-06 11:07:40 +09:00
Evgenya Stepyreva
8282bf3368 Convolution: (#12602)
- Precise spatial shape inference for dynamic shapes
  - Deprecated set_adding_above method and given alternative set_pads_end
  - Enabled shape inference for default-constructed Convultions (private field `num_spatials` is no more required to call shape_infer)
  - Test adjusted for dynamic spatial shapes calculation

Tickets: 82949, 82963
2022-09-28 06:31:06 +04:00
Roman Lyamin
19fd77e3d8 [GPU] Broadcast shape infer support (#12588)
* [GPU] Align broadcast with nGraph operation

* [GPU] Broadcast shape infer support

Co-authored-by: Sergey Shlyapnikov <sergey.shlyapnikov@intel.com>
2022-08-24 18:27:15 +04:00
Roman Lyamin
267f2f9c4b [GPU] Tile shape infer support (#12539) 2022-08-22 10:41:46 +04:00
Roman Lyamin
5128f20cfa [GPU] Pad shape infer support (#12654)
* [GPU] Align Pad parameters with ngraph

* [GPU] Pad shape infer support
2022-08-22 10:33:15 +04:00
Vladimir Paramuzov
b33f22ce8c [GPU] New shape infer baseline (#12241) 2022-08-15 19:11:26 +04:00
Tomasz Dołbniak
90463c1812 Undefined Behavior sanitizer fixes (#12333) 2022-08-10 22:35:56 +03:00
Ilya Lavrenov
3c0b17f108 Debian packages: base version (#11387) 2022-07-19 09:07:26 +03:00
Mykhailo Hnap
e23a568b7a Added axes node validation to DFTs operations (#11814)
* Fix DFTs axes node validation.

* Add DFTs type prop tests for invalid nodes.

* Adjusted DFTs axes node validation.
2022-07-01 15:19:04 +09:00
mei, yang
39981bf2b8 relax the class number check in paddle multiclass_nms op (#11857)
* relax the class number check in paddle multiclass_nms op

* relax checks in paddle multiclass_nms op
2022-06-16 11:29:15 +08:00
Tomasz Dołbniak
0932c74ff8 GridSample operator (#11770) 2022-06-09 14:21:53 +00:00
Przemyslaw Wysocki
1db4446e2a [MO] Extend MO for NonMaximumSupression-9 (#11576) 2022-06-02 18:18:14 +02:00
cecilia peng
016c5f537a Cecilia/multiclass nms9/cpu impl (#11246)
* multiclass_nms opset9 spec, api, reference, paddle fe mapper, paddle fe unittest.

* multiclass_nms opset9 cpu node impl.

* multiclass_nms opset9 shape infer fix.

* multiclass_nms opset9: add transform ConvertMulticlassNms8ToMulticlassNms9.

* ConvertMulticlassNmsToMulticlassNmsIE: to MulticlassNmsIEInternal

* add test dependency package paddledet==2.1.0

* 1. fix for roisnum overflow. 2. common shape_infer private function.

Signed-off-by: jialipen <cecilia.peng@intel.com>

* 1. use common infer_shape helper. 2. fix roisnum overflow issue. 3. fix for nmsWithEta.

* test suite for opset9 multiclass_nms smoke tests pass, with both static and dynamic shapes.

code clean for unit test.

* decouple specification from this PR.

* op fuzzy: dynamic input/output

* reference impl refactor

* multiclass_nms_base no need clone_inputs.

* code clean

* restrict ppdet import

* fix clang format error

* change ppdet import to resolve CI fail issue related to its dependency.

* fix CI

* refactor: multiclass_nms_shape_inference for opset9 and reference impl.
TODO: could be applied to opset8 and even matrix_nms.

* fix CI build failure.

* CI fix for ambiguous namespace reference issue when
building static libs.

* update nms save_model python scripts.

* dynamic inputs for NMS with CPU plugin.

* copyright header for test scripts.

* op comformance test for multiclass_nms_9.

* minor update: is_type

* python opset9 and multiclass_nms

* flake8 CI fix

flake8 CI fix

flake8 CI fix

* remove NmsBase. stage1.

flake8 CI fix

remove NmsBase. stage 1 fix.

* rm NmsBase. stage2.

* more multiclass_nms prop tests and fix.

* remove unchanged ops from binding opset9.

* dependcy of paddle_tests.

* fix: add MulticlassNms to op mapper.

* clang format fix

* fix merge error.
2022-05-31 07:56:01 +08:00
Chenhu Wang
fa7ca20425 NMS-9 op creation and ref implementation and CPU plugin (#11132)
* operation creation

* refrence implementation

* code style

* soft_nms_supported_by_nms9

* IE core and cpu plugin update

* apply review

* add transformation test
2022-05-25 06:27:12 +03:00
Katarzyna Mitrus
76dfeceb93 [Eye-9] Reference and CPU implementation for Eye-9 (#11538)
* Added shell for Eye-9

* Updated spec for Eye-9

* Added reference for Eye-9

* eye cpu

* Added op impl check for Eye-9

* Fix unallowed dynamic to static dim conversion in eye shape_infer

* Add template plugin tests for dynamic shapes

* Add template plugin tests for dynamic shapes batch input

* Enable batch shape input dynamic rank

* Uncomment 3D batch cpu Eye tests

* Update assertions and messages

* use ov::element type

* Remove redundant evaluate from eval map

* Style fix

* Add static_cast<T>(1) to cpu eye

* Add defaults to eye cpu class members

* Reuse out_ptr and checks

* Reutrn if onesPerBatchNum == 0

* Add Eye CPU Dynamic shape tests with 2D batch

* Additional test cases for CPU and reference

* Disable 3D batch eye cpu tests

* Fix CPU implementation for matrix with not equal cols and rows

* Update CPU test name

* Disable CPU Eye 3D batch static shapes tests

Co-authored-by: Alexandra Sidorova <alexandra.sidorova@intel.com>
Co-authored-by: Yury Gaydaychuk <yury.gaydaychuk@intel.com>
2022-05-19 16:37:00 +03:00
mei, yang
9648080fbc Meiyang/paddle generate proposals 2 (#11285)
* create new op v9::GenerateProposalsSingleImage and support paddle generate proposal v2

* support scale in GenerateProposals

* Add output roi_num in GenerateProposal; change anchor's shape to [H, W, A, 4]

* fix paddle generate proposals frontend issue

* rename MKLDNNGenerateProposalsSingleImage to GenerateProposalsSingleImage

* add GenerateProposals attribute 'roi_num_type'

* fuse type togenerate_proposals

* multibatch support

* fix review comments; paddle tests added

* use pad instead of concat

* fix generate proposals visitor test parameter

* add testcase for generate proposal scale and fix generate proposals reference issue

* rename to GenerateProposals

* add generate proposals ngraph reshape test; opset9 support and test;

* fix compiling issue

* add dependency 'paddledet' on paddle frontend test

* Update src/core/include/ngraph/op/generate_proposals.hpp

Co-authored-by: Ilya Churaev <ilyachur@gmail.com>

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

Co-authored-by: Ilya Churaev <ilyachur@gmail.com>

* Update src/core/reference/include/ngraph/runtime/reference/generate_proposal.hpp

Co-authored-by: Ilya Churaev <ilyachur@gmail.com>

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

Co-authored-by: Ilya Churaev <ilyachur@gmail.com>

* Update src/core/include/ngraph/op/generate_proposals.hpp

Co-authored-by: Ilya Churaev <ilyachur@gmail.com>

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

Co-authored-by: Ilya Churaev <ilyachur@gmail.com>

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

Co-authored-by: Ilya Churaev <ilyachur@gmail.com>

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

Co-authored-by: Ilya Churaev <ilyachur@gmail.com>

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

Co-authored-by: Ilya Churaev <ilyachur@gmail.com>

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

Co-authored-by: Ilya Churaev <ilyachur@gmail.com>

* fix compiling issue after newly added commit

* clang fix

* fix compiling issue

* add paddledet dependency

* fix compiling issue

* fix compiling issue

* clang fix

* skip ppdet.modeling.ops in paddle generate proposals test

* single layer update after rebase master

* set pycocotools to 2.0.4

* skip ppdet.modeling.ops.__init__

* add paddle test dependency

* fix template issue

* rename mkldnn to dnnl

* fix template issue

* fix windows compiling issue

* update testcase vector construction

* add shape check and test; add some annotation; apply review suggestion

* Revert "add paddle test dependency"

This reverts commit 959a2d770d3f6cb28d4609981c79cc49a25847fd.

* rm dependency of paddledet for paddle frontend test

* update opset9 number

* fix windows issue

Co-authored-by: Luo Cheng <cheng.luo@intel.com>
Co-authored-by: Ilya Churaev <ilyachur@gmail.com>
2022-05-16 09:13:52 +08:00
Bo Liu
eddd31f58f Liubo/roi align 9 ov core cpu plugin (#11188)
* roi_align_9: ov_core, transformations, template_plugin

* roi_align_9: CPU Plugin

* keep only constructor with enums which is aligned with spec

* remove evaluate function for ROIAlign_9

* Add op check test for operation ROIAlign-9

* Apply suggestions from code review

* fix version name from 'v0' to 'v3' in transform part

* use common shape_infer function for v3 and v9

* remove'tf_' prefix for ROIAlign::AlignedMode to avoid misleading for models from different platforms
2022-05-10 08:14:37 +08:00