Commit Graph

1265 Commits

Author SHA1 Message Date
Maciej Smyk 62460e1e2b
[DOCS] Updating links for 23.2 2023-11-13 12:23:49 +01:00
Kelvin Choi bb28b71849
[GPU] if the reorder which is an user of reshpae has truncation mode, it should not split the reorder node (#20749) 2023-10-31 19:21:56 +09:00
Min, Byungil 00705e6e58
[GPU] Bugfix adjust padding size for reshape optimizing (#20773)
Signed-off-by: Min, Byungil <byungil.min@intel.com>
2023-10-31 17:24:35 +09:00
Andrei Gorbachev 44925b580f
[GPU] Refactor Comparison, Conversion, ConvertColorI420 (#20374)
* Comparison

* Conversion

* ConvertColorI420

* fix

* Comparison

* Conversion

* ConvertColorI420

* fix

* fix after review

* fix after review

* fix after review

* fixed comparison

---------

Co-authored-by: Pavel Durandin <pavel.durandin@intel.com>
2023-10-31 09:50:20 +04:00
Roman Lyamin 50b6c5f0d7
[GPU] Fix for SoftmaxKernel_bf in dynamic case (#20769) 2023-10-31 09:02:03 +04:00
Roman Lyamin 7eb53586f5
[GPU] Added WA for MarkDequantizationSubgraph to work correctly in the plugin (#20767) 2023-10-30 17:58:34 +00:00
Wilson Seok df3e51f818
add comments about origin of reference implementation (#20763) 2023-10-30 21:54:19 +04:00
Wilson Seok 6dce6cc599
[GPU] Fix va surface sharing issue (#20730) 2023-10-30 16:27:50 +04:00
Sungeun Kim 4512141111
[GPU] fix axis for pad/stride/dilation when 1d conv (#20746)
* fix axis for pad/stride/dilation when 1d conv
* add test-cases for 1d conv with explicit pad
2023-10-30 19:06:29 +09:00
Fang Xu 82f191b0e7
choose Pcore to compile model for GPU plugin (#20472)
* choose Pcore to compile model for GPU plugin

* provide function to update executor config

* set callback executor to nullptr for GPU plugin

* fix code style

* fix warning

* optimize duplicate code

* set callback executor to nullptr for another gpu compile_model

* add description for new function

* add smoke test

* fix code style

* modify function definition

---------

Co-authored-by: Wanglei Shen <wanglei.shen@intel.com>
2023-10-30 16:24:36 +08:00
Roman Lyamin 5c6b7a5ed4
[GPU] Allow softmax_bf kernel for axis=X 4d case (#20699) 2023-10-30 09:11:32 +04:00
Vladimir Paramuzov cde757d66a
[GPU] Adjust in/out layouts in codition prim to handle prealloc (#20740) 2023-10-27 16:54:57 +00:00
Vladimir Paramuzov 79f90839b9
[GPU] Int4 utils fix (#20726) 2023-10-27 20:14:08 +04: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
Ivan Tikhonov 69e1258cc5
Support dynamic seq lenghts in ConvertSequenceToTensorIterator transformation (#20671) 2023-10-27 16:55:52 +04:00
Paul Youngsoo Ahn 9cc1e992f4
[GPU] Fix outputs are not allocated in loop_inst (#20585)
* [GPU] Fix outputs are not allocated in loop_inst
* Fill empty padding when the number of output paddings is less than num_outputs
* Fill empty data types when the number of output data types is less than num_outputs
* Modify postprocess_output_memory to set output memory without set_output_memory function
* In postprocess_output_memory, get concatenated_output_mem using input_info including output idx
* Modify gpu functional tests for dynamic loop to check multiple outputs of dynamic loop

* update postprocessing for condition

* Fix empty dimension issue for scalar value

* change code to get output paddings and output data type in primitive

* allocate memory for scalar data type with zero dimension

* Fix mismatch issue of input layout with shape and data types in body_network

* Fix output setting in post-processing
* pass bytes_count to gpu_usm params

* Fix condition gpu functional test issue

* Revert "allocate memory for scalar data type with zero dimension"

This reverts commit 2f10f3687c78406b20d52b6e37b1be2a30b4b73f.

* reinterpret one dimension memory buffer to zer dimension memor buffer to avoid zero byte memory allocation issue
2023-10-27 01:17:52 -07:00
Vladimir Paramuzov cc10b14bab
[GPU] Share compilation context with sub-networks (#20706) 2023-10-27 09:58:49 +04:00
River Li be25d9038e
Fix stride issue for ZeroDims (#20686)
* Fix stride issue for ZeroDims

* Add test case

* Fix ITensor::is_continuous() issue

* Fix the same issue in gpu plugin and template plugin
2023-10-27 09:27:53 +04:00
Andrei Gorbachev 66dca04b45
[GPU] Refactor CumSum, DeformableConvolution, DeformablePSROIPooling, DepthToSpaceBS (#20499)
* CumSum

* deformable_convolution

* DeformablePSROIPooling

* DepthToSpaceBS

* smoke_DetectionOutput3In, smoke_DetectionOutput5In

* tmp

* refactor 3 embedding

* extract_image_patches and fake_quantize

* gather_nd and gather_tree

* gather_elements

* Gather

* dft

* CumSum

* deformable_convolution

* DeformablePSROIPooling

* DepthToSpaceBS

* smoke_DetectionOutput3In, smoke_DetectionOutput5In

* tmp

* refactor 3 embedding

* extract_image_patches and fake_quantize

* gather_nd and gather_tree

* gather_elements

* Gather

* dft

* restore dft

* fix after review

---------

Co-authored-by: Sergeys Shlyapnikov <sergey.shlyapnikov@intel.com>
2023-10-26 20:00:51 +04:00
Vitaliy Urusovskij d532d14540
`Range`, `RDFT`, `RandormUniform`, `ReduceOps` layer tests to API2.0 (#20692)
* `Range` to API2.0

* `RDFTLayerTest` to API2.0

* `RandomUniformLayerTest` to API2.0

* `ReduceOpsLayerTest` to API2.0
2023-10-26 11:07:23 +04:00
Vladimir Paramuzov d9c4ca3021
[GPU] Allow setting remote output for dynamic model (#20608) 2023-10-26 09:09:54 +04:00
Vitaliy Urusovskij 04c766e9f1
`ReverseSequence`, `RNNCell`, `Reverse` to API2.0 (#20569)
* `ReverseSequence` to API2.0

* `RNNCell` to API2.0

* `Reverse` GPU test to API2.0

* Alignment fix
2023-10-25 09:37:36 +00:00
Vladimir Paramuzov 307176e5c6
[GPU] Fixed surfaces shape in create_tensor_nv12 helpers (#20539) 2023-10-25 12:46:47 +04:00
Vladimir Paramuzov 3313d1ce7a
[GPU] FC with 4-bit weights compression support for iGPU (#20572) 2023-10-25 12:45:31 +04:00
Wilson Seok c70f0ca45d
[GPU] skip excessive mem alloc request in build (#20399)
* skip excessive mem alloc request in build

* update mem check function

* fix os behavior

* update mem size check location

* only dynamic shape case takes check_allocatable

* update check condition
2023-10-25 09:09:11 +02:00
Wilson Seok 9d56c31581
[GPU] add shape infer in scatter elements update (#20250)
* add shape infer in scatter elements update

* output shape is same with input shape in dynamic case
2023-10-25 09:01:52 +02:00
Eddy Kim 6fa4f9fd78
[GPU] fixed to create Graphs with different stream_ids (#20626)
* fixed to create Graphs with different stream_ids

* added num_streams config for auto batch test
2023-10-24 20:26:36 -07:00
Oleksii Khovan 984e4dbf35
[GPU] NMSRotated-13 (#20411)
* Add Rotation support to primitive and kernel

* Add unit tests

* Add transformation for NMSRotated

* add single-layer tests

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

* fix review comments
2023-10-24 21:36:02 +02:00
Sergey Shlyapnikov 26cab79988
[GPU] Improve OOOQ synchronization between ShapeOf subgraph's CPU impls and GPU kernels (#20595)
* [GPU] Add ITT counters for primitive inst

* [GPU] Improve OOOQ synchronization between ShapeOf subgraph's CPU impls and GPU kernels
2023-10-24 18:49:41 +04:00
Andrei Gorbachev 20bd58759a
[GPU] Refactor grn, gru_cell, group_convolution, group_convolution_backprop_data, is_inf, log_softmax, logical, mat_mul, lrn, lstm_cell (#20520)
* grn

* gru_cell

* group_convolution

* group_convolution_backprop_data

* is_inf

* log_softmax

* logical

* mat_mul

* lrn

* lstm_cell

* fix after review
2023-10-24 18:48:29 +04:00
Irina Efode 63fff9d270
[IE TESTS][CONFORMANCE] Move Calculate reference over TEMPLATE plugin instead of `interpreter` (#12532)
* [CONFORMANCE] Enable template calculation reference

* Move convert init to cpu

* skip gpu
2023-10-24 16:34:37 +02:00
Mateusz Tabaka b7406247ff
Add TransposeMatMul transformation to MOC (#20460)
Transformation fuses Transpose on first or second MatMul's input
and sets MatMul's transpose_a/transpose_b accordingly.

TransposeMatMul is already part of SmartReshape, but it can be added
to MOCTransformations as well so native models that are don't use reshape
can benefit from that.

Ticket: CVS-118908
2023-10-24 14:40:36 +02:00
Andrei Gorbachev ea6922386e
[GPU] Refactor ConvertColorNV12, ConvolutionBackprop, Convolution (#20376)
* ConvertColorNV12

* ConvolutionBackprop

* Convolution

* fix after review
2023-10-24 09:38:23 +02:00
Roman Lyamin 59fe0a05a4
[GPU] Fix for reorder fusing in fuse_constant_transposes pass (#20651) 2023-10-24 09:21:30 +04:00
Andrew Kwangwoong Park 894221ea38
[GPU] Add RMS internal op, related transformation, primitive, and kernels for RMS decomposition fusion (#20355)
* Initial implementation of primitive, kernel selector, dummy kernel for RMS Norm

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

* RMS ref kernel implementation with single WI

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

* Add TC and reference func for ov_gpu_unit_tests

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

* Add internal RMS norm op

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

* Add transformation which fuse RMS decompsition pattern to RMS internal op

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

* Fix pattern for RMS fusion transformation

* Update rms ref kernel for optimization and additional planar format suuport

* Initial impl for optimized rms kernel excluding leftovers handling and case smaller than vector size

* Update the initial version to handle leftovers and case smaller than vector size

* Fuse pre decom and post comp reorders additionally

* Enable dynamic impl for rms again

* Revert fuse pre decomp and post comp reorders additionally

* Add subgraph TC for ov_gpu_func_tests

* decrease error margin for f32 data type

* update description

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

* update test param for input shapes

* Apply comments

* Fix failed TC for invalid gamma element type

* Apply comments

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

* Update pattern that fuse post reorder together

* Apply comments

---------

Signed-off-by: Andrew Park <andrew.park@intel.com>
2023-10-24 02:52:02 +00:00
Sergey Shlyapnikov 6c396fac9d
[GPU] Deferred events deallocation and tuning for FC bf_tiled kernel (#20519) 2023-10-18 16:28:27 +04:00
Sergey Shlyapnikov 6e97b91a77
[GPU] UsmHostTensor implementation (#20518)
Co-authored-by: Vladimir Paramuzov <vladimir.paramuzov@intel.com>
2023-10-18 16:12:15 +04:00
Vladimir Paramuzov 90ad4c618d
[GPU] Grouped decompression scale/zp support (#20491) 2023-10-18 15:56:35 +04:00
hyunback kim 5f336a6870
[GPU] Support o_is_yx_isv2 (#20521)
216-attention-center model in notebooks needs o_is_yx_isv2 with onednn3.3

Signed-off-by: hyunback <hyunback.kim@intel.com>
2023-10-18 07:54:09 +00:00
Sungeun Kim 30a038c776
[GPU] Gather needs to keep the original input/output rank (#20042)
* Gather needs to keep the original input/output rank
  - because the parameters as indices, batch_dims and axis depend on the rank.
  - add input_rank to gather primitive.
* don't query on set_preferred_formats pass
  -when the force_implementations is set.
  -when forcing_impl is not onednn.
2023-10-18 16:28:22 +09:00
Andrei Gorbachev c8b64f6a95
[GPU] Refactor BroadcastLayer, Bucketize, Concat (#20369)
* BroadcastLayer

* Bucketize

* Concat

* fix incorrect fill_random_unique_sequence fo f16

* Update src/plugins/intel_gpu/tests/functional/shared_tests_instances/single_layer_tests/broadcast.cpp

Co-authored-by: Roman Lyamin <Roman.Lyamin@intel.com>

* fix after review

---------

Co-authored-by: Roman Lyamin <Roman.Lyamin@intel.com>
2023-10-18 10:02:18 +04:00
Oleg Pipikin a5fb3823f6
Refactor EinsumLayerTest, EyeLayerTest (#20288)
* Refactor EinsumLayerTest

* Refator EyeLayerTest

* Apply comments

* Fix

---------

Co-authored-by: Vitaliy Urusovskij <vitaliy.urusovskij@intel.com>
2023-10-17 17:35:24 +02:00
Katz Sasaki 404f4e29b7
fix typo of config check error message (#20517) 2023-10-17 17:26:37 +04:00
Roman Lyamin fe9d5607ed
[GPU] Fixed data generation for f16 fusion tests (#20247)
* [GPU] Fixed data generation for f16 fusion tests

* [GPU] Temporary tolerance increase for failed tests on iGPU

* [GPU] Temporary skip or tolerance increase for failed tests on dGPU
2023-10-17 11:17:07 +04:00
Wang, Yang 86000bb8a2
[GPU] Reserve CPU resource for GPU inference (#19214)
* Update.

* Update.

* Update.

* add test case.

* Update.

* Update test cases.

* Update.

* Update.

* Updated.

* Updated.

* Updated.

---------

Co-authored-by: Chen Peter <peter.chen@intel.com>
2023-10-17 05:42:56 +00:00
Yaroslav Torziuk 5d33a68598
[GPU] GroupNormalization-12 GPU reference implementation (#19155)
* Add group_normalization_kernel_selector

* Define group_normalization GPU primitive and its instantiation

* Add GroupNormalization operation builder

* Add test class for GroupNormalization operator

* Add instantiation of GroupNormalization test for GPU Plugin

* Disable GroupNormalizationDecomposition transformation in GPU Plugin

* Add GroupNormalizationKernelRef implementation

* Add GroupNormalization unit tests which cover blocked layout support
2023-10-16 10:54:56 -07:00
Paul Youngsoo Ahn 89bb8745a5
[GPU] Enable dynamic loop (#19818)
* [GPU] enable dynamic loop
- support multiple outputs
- support dynamic loop memory allocation
- support negative num_iterations
- implement calc_output_layouts
- add dynamic loop functional / unit tests

* Fix fail to check memory to set when original 1d data
- follow up code reviews

* Fix unit test failures

* Follow up code review
* Modify concat memory map creation process
* Check whether or not first input of loop is num_iteration_id

* Follow up code review
- refactoring preprocess_backedge_memory

* * Fix ci failures
* Clear custom_outputs_vec for condition
* Add num_outputs for condition and loop

* *Fix constant and param of body network have mismatched layouts

* Set consts.needsBatchInterpretation for const

* * refactoring is_dynamic in loop_inst::execute

* * remove wait_for_events in body_network execution loop

* * Remove redundant events

* * follow-up code review - modify OPENVNO_ASSERT

* * Remove redundant codes in loop_inst::execute

* * add current iteration update nodes into the ov::Model

* * rollback some codes for the performance degradation
2023-10-16 09:41:51 -07:00
Vladimir Paramuzov a00d28aac0
[GPU] Type traits cleanup (#20455) 2023-10-16 14:54:32 +04:00
Sergey Shlyapnikov f655d2177d
[GPU] Fix scatter_nd_update output paddings handling (#20447) 2023-10-16 13:52:45 +04:00
Sergey Shlyapnikov 146ca36f8f
[GPU] Minor debug improvements: add suffix to shape agnostic kernels names and show batch_hash for impl_types::any (#20275) 2023-10-16 13:47:57 +04:00