OpenVINO™ is an open source toolkit for optimizing and deploying AI inference
C++ aicomputer-visiondeep-learningdeploy-aidiffusion-modelsgenerative-aigood-first-issueinferencellm-inferencenatural-language-processingnlpopenvinooptimize-aiperformance-boostrecommendation-systemspeech-recognitionstable-diffusiontransformersyolo
[GPU] add scatter_nd_update_opt kernel (#30891)
Sungeun Kimbcdddeddbda5
diff --git a/src/plugins/intel_gpu/src/graph/impls/ocl/register.cpp b/src/plugins/intel_gpu/src/graph/impls/ocl/register.cppindex c2b67692b67..4a01d5d30c0 100644--- a/src/plugins/intel_gpu/src/graph/impls/ocl/register.cpp+++ b/src/plugins/intel_gpu/src/graph/impls/ocl/register.cpp@@ -60,7 +60,6 @@ void register_implementations() {REGISTER_OCL(roi_align);REGISTER_OCL(roi_pooling);REGISTER_OCL(roll);- REGISTER_OCL(scatter_nd_update);REGISTER_OCL(select);REGISTER_OCL(shuffle_channels);REGISTER_OCL(space_to_batch);diff --git a/src/plugins/intel_gpu/src/graph/impls/ocl/register.hpp b/src/plugins/intel_gpu/src/graph/impls/ocl/register.hppindex 2c503928b6b..cb62e323c77 100644--- a/src/plugins/intel_gpu/src/graph/impls/ocl/register.hpp+++ b/src/plugins/intel_gpu/src/graph/impls/ocl/register.hpp@@ -52,7 +52,6 @@#include "intel_gpu/primitives/roi_align.hpp"#include "intel_gpu/primitives/roi_pooling.hpp"#include "intel_gpu/primitives/roll.hpp"-#include "intel_gpu/primitives/scatter_nd_update.hpp"#include "intel_gpu/primitives/select.hpp"#include "intel_gpu/primitives/shuffle_channels.hpp"#include "intel_gpu/primitives/slice.hpp"@@ -132,7 +131,6 @@ REGISTER_OCL(rms);REGISTER_OCL(roi_align);REGISTER_OCL(roi_pooling);REGISTER_OCL(roll);-REGISTER_OCL(scatter_nd_update);REGISTER_OCL(select);REGISTER_OCL(shuffle_channels);REGISTER_OCL(slice);diff --git a/src/plugins/intel_gpu/src/graph/impls/ocl/scatter_nd_update.cpp b/src/plugins/intel_gpu/src/graph/impls/ocl/scatter_nd_update.cppdeleted file mode 100644index 3ace7985789..00000000000--- a/src/plugins/intel_gpu/src/graph/impls/ocl/scatter_nd_update.cpp+++ /dev/null@@ -1,106 +0,0 @@-// Copyright (C) 2018-2025 Intel Corporation-// SPDX-License-Identifier: Apache-2.0-//--#include "primitive_base.hpp"--#include "scatter_nd_update_inst.h"-#include "scatter_update/scatter_nd_update_kernel_selector.h"-#include "scatter_update/scatter_nd_update_kernel_ref.h"--namespace cldnn {-namespace ocl {--struct scatter_nd_update_impl : typed_primitive_impl_ocl<scatter_nd_update> {- using parent = typed_primitive_impl_ocl<scatter_nd_update>;- using parent::parent;- using kernel_selector_t = kernel_selector::scatter_nd_update_kernel_selector;- using kernel_params_t = kernel_selector::scatter_nd_update_params;-- DECLARE_OBJECT_TYPE_SERIALIZATION(cldnn::ocl::scatter_nd_update_impl)-- std::unique_ptr<primitive_impl> clone() const override {- return make_deep_copy<scatter_nd_update_impl, kernel_params_t>(*this);- }-- void load(BinaryInputBuffer& ib) override {- parent::load(ib);- if (is_dynamic() && _kernel_data.kernelName.length() != 0) {- auto& kernel_selector = kernel_selector_t::Instance();- auto kernel_impl = kernel_selector.GetImplementation(_kernel_data.kernelName);- kernel_impl->GetUpdateDispatchDataFunc(_kernel_data);- }- }-- static kernel_params_t get_kernel_params(const kernel_impl_params& impl_param, bool is_shape_agnostic = false) {- const auto& primitive = impl_param.typed_desc<scatter_nd_update>();- auto params = get_default_params<kernel_selector::scatter_nd_update_params>(impl_param, is_shape_agnostic);-- params.indices_rank = primitive->indices_rank;-- params.inputs.push_back(convert_data_tensor(impl_param.get_input_layout(1)));- params.inputs.push_back(convert_data_tensor(impl_param.get_input_layout(2)));-- return params;- }-- void update_dispatch_data(const kernel_impl_params& impl_param) override {- // If model loaded from cache, params are not initialized, so we create a new object and reuse it in the future- if (_kernel_data.params == nullptr) {- _kernel_data.params = std::make_shared<kernel_params_t>(get_kernel_params(impl_param, true));- }-- update_shapes(*_kernel_data.params, impl_param);- (_kernel_data.update_dispatch_data_func)(*_kernel_data.params, _kernel_data);- }-};--namespace detail {--attach_scatter_nd_update_impl::attach_scatter_nd_update_impl() {- auto types = { data_types::f32, data_types::f16, data_types::i32, data_types::i8, data_types::u8 };- auto formats = {- format::bfyx,- format::b_fs_yx_fsv4,- format::b_fs_yx_fsv16,- format::b_fs_yx_fsv32,- format::bs_fs_yx_bsv4_fsv2,- format::bs_fs_yx_bsv4_fsv4,- format::bs_fs_yx_bsv8_fsv2,- format::bs_fs_yx_bsv8_fsv4,- format::bs_fs_yx_bsv16_fsv16,- format::bs_fs_yx_bsv32_fsv16,- format::bs_fs_yx_bsv32_fsv32,-- format::bfzyx,- format::b_fs_zyx_fsv16,- format::b_fs_zyx_fsv32,-- format::bfwzyx- };-- implementation_map<scatter_nd_update>::add(impl_types::ocl,- shape_types::static_shape,- typed_primitive_impl_ocl<scatter_nd_update>::create<scatter_nd_update_impl>,- types,- formats);-- auto dyn_formats = {- format::bfyx,- format::bfzyx,- format::bfwzyx- };-- implementation_map<scatter_nd_update>::add(impl_types::ocl,- shape_types::dynamic_shape,- typed_primitive_impl_ocl<scatter_nd_update>::create<scatter_nd_update_impl>,- types,- dyn_formats);-}--} // namespace detail-} // namespace ocl-} // namespace cldnn--BIND_BINARY_BUFFER_WITH_TYPE(cldnn::ocl::scatter_nd_update_impl)-BIND_BINARY_BUFFER_WITH_TYPE(cldnn::scatter_nd_update)diff --git a/src/plugins/intel_gpu/src/graph/impls/ocl_v2/scatter_nd_update.cpp b/src/plugins/intel_gpu/src/graph/impls/ocl_v2/scatter_nd_update.cppnew file mode 100644index 00000000000..33f083993ec--- /dev/null+++ b/src/plugins/intel_gpu/src/graph/impls/ocl_v2/scatter_nd_update.cpp@@ -0,0 +1,339 @@+// Copyright (C) 2025 Intel Corporation+// SPDX-License-Identifier: Apache-2.0+//+#include "scatter_nd_update.hpp"++#include "common_utils/jitter.hpp"+#include "intel_gpu/primitives/scatter_nd_update.hpp"+#include "kernel_selector/jitter.h"+#include "ocl_v2/utils/fused_ops_jitter.hpp"+#include "primitive_inst.h"+#include "primitive_ocl_base.hpp"+#include "scatter_nd_update_inst.h"+#include "utils/kernel_generator.hpp"++namespace ov::intel_gpu::ocl {++namespace {++enum KernelsTypes {+ COPY_ALL = 0,+ UPDATE_REF,+ UPDATE_OPT,+};++std::vector<std::string> GetDefaultOrder(size_t size) {+ std::vector<std::string> default_order;+ if (size <= 4) {+ default_order = {"b", "f", "y", "x"};+ } else if (size == 5) {+ default_order = {"b", "f", "z", "y", "x"};+ } else if (size == 6) {+ default_order = {"b", "f", "w", "z", "y", "x"};+ }++ return default_order;+}++static std::string GetInputBlockND(kernel_selector::DataTensor& input, size_t shape_info_offset, size_t rank) {+ auto input_dims = input.LogicalDims();+ std::reverse(input_dims.begin(), input_dims.end());+ auto dims = input.GetDims();+ std::reverse(dims.begin(), dims.end());++ std::vector<size_t> block_nd(rank + 1);+ block_nd[rank] = 1;++ std::vector<std::string> block_nd_s(rank + 1);+ block_nd_s[rank] = "1";+ size_t input_offset = shape_info_offset;++ for (int32_t idx = static_cast<int32_t>(rank) - 1; idx >= 0; --idx) {+ block_nd[idx] = input_dims[idx] * block_nd[idx + 1];++ size_t dim_offset = idx < 2 ? idx : (kernel_selector::DataTensor::max_rank() - dims.size()) + idx; // convert to idx in default planar format+ block_nd_s[idx] = "(" + kernel_selector::toCodeString(dims[idx], input_offset + dim_offset) + "*" + block_nd_s[idx + 1] + ")";+ }++ std::string result;+ if (input.is_dynamic()) {+ for (auto& block : block_nd_s) {+ result += block + ",";+ }+ } else {+ for (size_t block : block_nd) {+ result += kernel_selector::toCodeString(block) + ",";+ }+ }+ return result;+}++class ScatterNDUpdateCopy : public KernelGenerator {+public:+ ScatterNDUpdateCopy() : KernelGenerator("scatter_nd_update_copy") {}++protected:+ [[nodiscard]] JitConstants get_jit_constants(const RuntimeParams& params) const override {+ auto jit = KernelGenerator::get_jit_constants(params);++ if (params.has_fused_primitives()) {+ FusedOpsConfiguration conf = {"", GetDefaultOrder(params.get_output_layout(0).get_rank()), "val", params.get_input_layout(0).data_type};+ jit.add(make_fused_ops_jit_constants(params, {conf}));+ }++ return jit;+ }++ [[nodiscard]] Arguments get_arguments_desc(const RuntimeParams& params) const override {+ Arguments args;++ if (params.is_dynamic()) {+ args.push_back({ArgumentDescriptor::Types::SHAPE_INFO, 0});+ }+ args.push_back({ArgumentDescriptor::Types::INPUT, 0});+ args.push_back({ArgumentDescriptor::Types::OUTPUT, 0});+ add_fused_ops_arguments(args, params);++ return args;+ }++ [[nodiscard]] DispatchDataFunc get_dispatch_data_func() const override {+ return DispatchDataFunc{[](const RuntimeParams& params, KernelData& kd, ImplRuntimeParams* rt_params) {+ auto& wgs = kd.params.workGroups;++ const auto& in_l = params.get_input_layout(0);+ const auto& out_l = params.get_output_layout(0);+ auto b = extract_channel(ChannelName::BATCH, out_l);+ auto f = extract_channel(ChannelName::FEATURE, out_l);+ auto w = extract_channel(ChannelName::W, out_l);+ auto z = extract_channel(ChannelName::Z, out_l);+ auto y = extract_channel(ChannelName::Y, out_l);+ auto x = extract_channel(ChannelName::X, out_l);++ wgs.global = {x * y, z * w, f * b};+ std::vector<std::vector<ChannelName>> dims_by_gws = {{ChannelName::X, ChannelName::Y},+ {ChannelName::Z, ChannelName::W},+ {ChannelName::BATCH, ChannelName::FEATURE}};++ wgs.local = ov::intel_gpu::get_optimal_lws(wgs.global, params.get_device_info(), in_l.format, out_l.format, dims_by_gws);+ }};+ }+};++static kernel_selector::MultiDataTensor get_multi_data_tensor(const RuntimeParams& params) {+ kernel_selector::MultiDataTensor inputs;+ inputs.push_back(convert_data_tensor(params.get_input_layout(0)));+ inputs.push_back(convert_data_tensor(params.get_input_layout(1)));+ inputs.push_back(convert_data_tensor(params.get_input_layout(2)));+ return inputs;+}++class ScatterNDUpdateBase : public KernelGenerator {+public:+ explicit ScatterNDUpdateBase(std::string_view name, std::string_view suffix = "") : KernelGenerator(name, suffix) {}++ [[nodiscard]] JitConstants get_jit_constants(const RuntimeParams& params) const override {+ auto jit = KernelGenerator::get_jit_constants(params);+ const auto& desc = params.typed_desc<scatter_nd_update>();+ jit.add(make_jit_constant("INDICES_RANK", desc->indices_rank));++ if (params.has_fused_primitives()) {+ FusedOpsConfiguration conf = {"", GetDefaultOrder(params.get_output_layout(0).get_rank()), "val", params.get_input_layout(0).data_type};+ jit.add(make_fused_ops_jit_constants(params, {conf}));+ }++ auto inputs = get_multi_data_tensor(params);+ const auto& ind_input = inputs[1];+ if (ind_input.is_dynamic()) {+ auto dims = ind_input.GetDims();+ std::reverse(dims.begin(), dims.end());++ size_t last_idx = desc->indices_rank - 1;+ size_t dim_offset = last_idx < 2 ? last_idx : last_idx + kernel_selector::DataTensor::max_rank() - desc->indices_rank;+ auto indices_last_dim =+ kernel_selector::toCodeString(dims[last_idx], dim_offset + (inputs[0].is_dynamic() ? kernel_selector::DataTensor::max_rank() : 0));+ jit.add(make_jit_constant("INDICES_LAST_DIM", indices_last_dim));+ } else {+ jit.add(make_jit_constant("INDICES_LAST_DIM", params.get_input_layout(1).get_dims()[desc->indices_rank - 1]));+ }++ return jit;+ }++ [[nodiscard]] Arguments get_arguments_desc(const RuntimeParams& params) const override {+ auto args = KernelGenerator::get_arguments_desc(params);+ add_fused_ops_arguments(args, params);+ return args;+ }+};++class ScatterNDUpdateRef : public ScatterNDUpdateBase {+public:+ ScatterNDUpdateRef() : ScatterNDUpdateBase("scatter_nd_update_ref") {}++protected:+ [[nodiscard]] JitConstants get_jit_constants(const RuntimeParams& params) const override {+ auto jit = ScatterNDUpdateBase::get_jit_constants(params);+ const auto& desc = params.typed_desc<scatter_nd_update>();+ auto inputs = get_multi_data_tensor(params);+ size_t input0_rank = inputs[0].LogicalDims().size();+ size_t input2_rank = inputs[2].LogicalDims().size();++ jit.add(make_jit_constant("INPUT0_BLOCK_ND", GetInputBlockND(inputs[0], inputs[0].get_dynamic_shape_offset(), input0_rank)));+ jit.add(make_jit_constant("INPUT1_BLOCK_ND", GetInputBlockND(inputs[1], inputs[1].get_dynamic_shape_offset(), desc->indices_rank - 1)));+ jit.add(make_jit_constant("INPUT2_BLOCK_ND", GetInputBlockND(inputs[2], inputs[2].get_dynamic_shape_offset(), input2_rank)));++ return jit;+ }++ [[nodiscard]] DispatchDataFunc get_dispatch_data_func() const override {+ return DispatchDataFunc{[](const RuntimeParams& params, KernelData& kd, ImplRuntimeParams* rt_params) {+ const auto& desc = params.typed_desc<scatter_nd_update>();+ auto indices_dims = params.get_input_layout(1).get_dims();++ size_t indices_set_size = 1;+ for (size_t i = 0; i < (desc->indices_rank - 1); i++) {+ indices_set_size *= indices_dims[i];+ }++ auto& wgs = kd.params.workGroups;+ wgs.global = {1, 1, indices_set_size};+ wgs.local = ov::intel_gpu::get_optimal_lws(wgs.global, params.get_device_info());+ }};+ }+};++class ScatterNDUpdateOpt : public ScatterNDUpdateBase {+public:+ ScatterNDUpdateOpt() : ScatterNDUpdateBase("scatter_nd_update_opt") {}++protected:+ [[nodiscard]] JitConstants get_jit_constants(const RuntimeParams& params) const override {+ return ScatterNDUpdateBase::get_jit_constants(params);+ }++ [[nodiscard]] DispatchDataFunc get_dispatch_data_func() const override {+ return DispatchDataFunc{[](const RuntimeParams& params, KernelData& kd, ImplRuntimeParams* rt_params) {+ const auto& updates_l = params.get_input_layout(2);+ const auto& out_l = params.get_output_layout(0);+ auto b = extract_channel(ChannelName::BATCH, updates_l);+ auto f = extract_channel(ChannelName::FEATURE, updates_l);+ auto w = extract_channel(ChannelName::W, updates_l);+ auto z = extract_channel(ChannelName::Z, updates_l);+ auto y = extract_channel(ChannelName::Y, updates_l);+ auto x = extract_channel(ChannelName::X, updates_l);++ std::vector<std::vector<ChannelName>> dims_by_gws;+ auto& wgs = kd.params.workGroups;+ wgs.global = {x * y, z * w, f * b};+ if (updates_l.get_rank() == 4) {+ wgs.global = {x, y, f * b};+ dims_by_gws = {{ChannelName::X}, {ChannelName::Y}, {ChannelName::BATCH, ChannelName::FEATURE}};+ } else if (updates_l.get_rank() == 5) {+ wgs.global = {x, y * z, f * b};+ dims_by_gws = {{ChannelName::X}, {ChannelName::Y, ChannelName::Z}, {ChannelName::BATCH, ChannelName::FEATURE}};+ } else if (updates_l.get_rank() == 6) {+ wgs.global = {x * y, z * w, f * b};+ dims_by_gws = {{ChannelName::X, ChannelName::Y}, {ChannelName::Z, ChannelName::W}, {ChannelName::BATCH, ChannelName::FEATURE}};+ } else {+ OPENVINO_THROW("Unknown rank: rank=", updates_l.get_rank());+ }++ wgs.local = ov::intel_gpu::get_optimal_lws(wgs.global, params.get_device_info(), updates_l.format, out_l.format, dims_by_gws);+ }};+ }+};++bool support_opt_kernel(const kernel_impl_params& params) {+ ov::Shape input_shape = params.get_input_layout(0).get_shape();+ ov::Shape indices_shape = params.get_input_layout(1).get_shape();+ ov::Shape updates_shape = params.get_input_layout(2).get_shape();+ const auto& desc = params.typed_desc<scatter_nd_update>();+ auto indices_rank = desc->indices_rank;+ const auto& last_indices_dim = indices_shape[indices_rank - 1];++ ov::Shape expected_update_shape;+ if (indices_shape.size() == 1 && indices_shape[0] == 1) {+ expected_update_shape = input_shape;+ } else {+ if (!indices_shape.empty()) {+ for (size_t i = 0; i < indices_rank - 1; ++i) {+ expected_update_shape.push_back(indices_shape[i]);+ }+ }+ if (!input_shape.empty()) {+ for (size_t i = last_indices_dim; i < input_shape.size(); ++i) {+ expected_update_shape.push_back(input_shape[i]);+ }+ }+ }++ for (size_t i = 0; i < std::min(updates_shape.size(), expected_update_shape.size()); ++i) {+ if (updates_shape[i] != expected_update_shape[i]) {+ GPU_DEBUG_TRACE << "Diff updates shape's rank::updates_shape: " << updates_shape.to_string()+ << ", expected updates_shape: " << expected_update_shape.to_string() << std::endl;+ return false;+ }+ }+ if (ov::shape_size(updates_shape) != ov::shape_size(expected_update_shape)) {+ GPU_DEBUG_TRACE << "Diff updates shape element num::updates_shape: " << updates_shape.to_string()+ << ", expected updates_shape: " << expected_update_shape.to_string() << std::endl;+ return false;+ }+ return true;+}++std::vector<size_t> get_stages_execution_order(const cldnn::primitive_inst& instance) {+ std::vector<size_t> stages_order = {KernelsTypes::COPY_ALL};+ auto params = instance.get_impl_params();+ stages_order.emplace_back(support_opt_kernel(*params) ? KernelsTypes::UPDATE_OPT : KernelsTypes::UPDATE_REF);+ return stages_order;+}++class ScatterNDUpdateImpl : public PrimitiveImplOCL {+public:+ DECLARE_OBJECT_TYPE_SERIALIZATION(ov::intel_gpu::ocl::ScatterNDUpdateImpl)+ Stage::Ptr copy_stage = make_stage<ScatterNDUpdateCopy>();+ Stage::Ptr ref_stage = make_stage<ScatterNDUpdateRef>();+ Stage::Ptr opt_stage = make_stage<ScatterNDUpdateOpt>();++ ScatterNDUpdateImpl() : PrimitiveImplOCL(ScatterNDUpdate::get_type_info_static()) {}+ ScatterNDUpdateImpl(const program_node& node, const RuntimeParams& params) : ScatterNDUpdateImpl() {+ add_stage(copy_stage, params);+ add_stage(ref_stage, params);+ add_stage(opt_stage, params);+ }++ [[nodiscard]] std::unique_ptr<primitive_impl> clone() const override {+ return make_deep_copy<ScatterNDUpdateImpl>(this);+ }++ cldnn::event::ptr execute(const std::vector<cldnn::event::ptr>& events, cldnn::primitive_inst& instance) override {+ cldnn::stream& stream = instance.get_network().get_stream();+ if (instance.can_be_optimized()) {+ return stream.aggregate_events(events, false, instance.is_output());+ }++ update_rt_params(instance);++ std::vector<cldnn::event::ptr> tmp_events(events);+ const auto& exec_stages = get_stages_execution_order(instance);+ for (const auto& stage_id : exec_stages) {+ tmp_events = {execute_stage(tmp_events, instance, *_stages[stage_id])};+ }++ return tmp_events[0];+ }+};++} // namespace++std::unique_ptr<primitive_impl> ScatterNDUpdate::create_impl(const program_node& node, const RuntimeParams& params) const {+ assert(node.is_type<scatter_nd_update>());+ return std::make_unique<ScatterNDUpdateImpl>(node, params);+}++} // namespace ov::intel_gpu::ocl++BIND_BINARY_BUFFER_WITH_TYPE(cldnn::scatter_nd_update)+BIND_BINARY_BUFFER_WITH_TYPE(ov::intel_gpu::ocl::ScatterNDUpdateImpl)diff --git a/src/plugins/intel_gpu/src/graph/impls/ocl_v2/scatter_nd_update.hpp b/src/plugins/intel_gpu/src/graph/impls/ocl_v2/scatter_nd_update.hppnew file mode 100644index 00000000000..81953821227--- /dev/null+++ b/src/plugins/intel_gpu/src/graph/impls/ocl_v2/scatter_nd_update.hpp@@ -0,0 +1,54 @@+// Copyright (C) 2025 Intel Corporation+// SPDX-License-Identifier: Apache-2.0+//++#pragma once++#include "intel_gpu/primitives/activation.hpp"+#include "intel_gpu/primitives/eltwise.hpp"+#include "intel_gpu/primitives/quantize.hpp"+#include "program_node.h"+#include "registry/implementation_manager.hpp"++using namespace cldnn; // TODO: Remove once namespaces are aligned+namespace ov::intel_gpu::ocl {++struct ScatterNDUpdate : public ImplementationManager {+ OV_GPU_PRIMITIVE_IMPL("ocl::scatter_nd_update")+ explicit ScatterNDUpdate(shape_types shape_type, ValidateFunc vf = nullptr) : ImplementationManager(impl_types::ocl, shape_type, std::move(vf)) {}++ [[nodiscard]] std::unique_ptr<primitive_impl> create_impl(const program_node& node, const RuntimeParams& params) const override;++ [[nodiscard]] bool validate_impl(const program_node& node) const override {+ static constexpr std::array supported_inout_types = {+ ov::element::f32,+ ov::element::f16,+ ov::element::i32,+ ov::element::i64,+ ov::element::i8,+ ov::element::u8,+ };++ static constexpr std::array supported_indices_types = {+ ov::element::i32,+ ov::element::i64,+ };++ const auto& in0_layout = node.get_input_layout(0); // data+ const auto& in1_layout = node.get_input_layout(1); // indices+ const auto& in2_layout = node.get_input_layout(2); // updates+ const auto& out_layout = node.get_output_layout(0);+ if (!one_of(in0_layout.data_type, supported_inout_types) || !one_of(in1_layout.data_type, supported_indices_types) ||+ !one_of(in2_layout.data_type, supported_inout_types) || !one_of(out_layout.data_type, supported_inout_types)) {+ return false;+ }++ if (!fused_ops_are_one_of<eltwise, activation, quantize>(node.get_fused_primitives())) {+ return false;+ }++ return true;+ }+};++} // namespace ov::intel_gpu::ocldiff --git a/src/plugins/intel_gpu/src/graph/impls/ocl_v2/scatter_nd_update_copy.cl b/src/plugins/intel_gpu/src/graph/impls/ocl_v2/scatter_nd_update_copy.clnew file mode 100644index 00000000000..72711a11a63--- /dev/null+++ b/src/plugins/intel_gpu/src/graph/impls/ocl_v2/scatter_nd_update_copy.cl@@ -0,0 +1,55 @@++// Copyright (C) 2018-2025 Intel Corporation+// SPDX-License-Identifier: Apache-2.0+//++#include "include/batch_headers/fetch_data.cl"++#define GET_UPDATES_INDEX(prefix, idx_order) CAT(prefix, _GET_INDEX)(idx_order)+#define GET_OUTPUT_INDEX(idx_order) OUTPUT_GET_INDEX(idx_order)++#if OUTPUT_DIMS <= 4+ #define ORDER b,f,y,x+#elif OUTPUT_DIMS == 5+ #define ORDER b,f,z,y,x+#elif OUTPUT_DIMS == 6+ #define ORDER b,f,w,z,y,x+#endif++KERNEL(scatter_nd_update_copy)(OPTIONAL_SHAPE_INFO_ARG+ const __global INPUT0_TYPE* data,+ __global OUTPUT_TYPE* output+#if HAS_FUSED_OPS_DECLS+ , FUSED_OPS_DECLS+#endif+)+{+ const uint dim0 = get_global_id(0);+ const uint dim1 = get_global_id(1);+ const uint dim2 = get_global_id(2);++ const uint x = dim0 % OUTPUT_SIZE_X;+ const uint y = dim0 / OUTPUT_SIZE_X;+ const uint z = dim1 % OUTPUT_SIZE_Z;+ const uint w = dim1 / OUTPUT_SIZE_Z;+ const uint f = dim2 % OUTPUT_FEATURE_NUM;+ const uint b = dim2 / OUTPUT_FEATURE_NUM;++ const uint input_idx = GET_UPDATES_INDEX(INPUT0, ORDER);+ const uint output_idx = GET_OUTPUT_INDEX(ORDER);+ INPUT0_TYPE val = data[input_idx];+ #if HAS_FUSED_OPS+ FUSED_OPS;+ output[output_idx] = TO_OUTPUT_TYPE(FUSED_OPS_RESULT);+ #else+ output[output_idx] = val;+ #endif+}++#ifdef GET_UPDATES_INDEX+#undef GET_UPDATES_INDEX+#endif++#ifdef GET_OUTPUT_INDEX+#undef GET_OUTPUT_INDEX+#endifdiff --git a/src/plugins/intel_gpu/src/graph/impls/ocl_v2/scatter_nd_update_opt.cl b/src/plugins/intel_gpu/src/graph/impls/ocl_v2/scatter_nd_update_opt.clnew file mode 100644index 00000000000..dedf98587c2--- /dev/null+++ b/src/plugins/intel_gpu/src/graph/impls/ocl_v2/scatter_nd_update_opt.cl@@ -0,0 +1,163 @@++// Copyright (C) 2018-2025 Intel Corporation+// SPDX-License-Identifier: Apache-2.0+//++#include "include/batch_headers/fetch_data.cl"++#define GET_INPUT_INDEX(idx_order) INPUT0_GET_INDEX(idx_order)+#define GET_INDICES_INDEX(idx_order) INPUT1_GET_INDEX(idx_order)+#define GET_UPDATES_INDEX(idx_order) INPUT2_GET_INDEX(idx_order)+#define GET_OUTPUT_INDEX(idx_order) OUTPUT_GET_INDEX(idx_order)++#if OUTPUT_DIMS <= 4+ #define ORDER b,f,y,x+ #define TARGET_COORD_ORDER target_coord[0],target_coord[1],target_coord[2],target_coord[3]+#elif OUTPUT_DIMS == 5+ #define ORDER b,f,z,y,x+ #define TARGET_COORD_ORDER target_coord[0],target_coord[1],target_coord[2],target_coord[3],target_coord[4]+#elif OUTPUT_DIMS == 6+ #define ORDER b,f,w,z,y,x+ #define TARGET_COORD_ORDER target_coord[0],target_coord[1],target_coord[2],target_coord[3],target_coord[4],target_coord[5]+#endif++#if INPUT1_DIMS <= 4+ #define INPUT1_ORDER indices_coord[0],indices_coord[1],indices_coord[2],indices_coord[3]+#elif INPUT1_DIMS == 5+ #define INPUT1_ORDER indices_coord[0],indices_coord[1],indices_coord[2],indices_coord[3],indices_coord[4]+#elif INPUT1_DIMS == 6+ #define INPUT1_ORDER indices_coord[0],indices_coord[1],indices_coord[2],indices_coord[3],indices_coord[4],indices_coord[5]+#endif++#if INPUT2_DIMS <= 4+ #define INPUT2_ORDER upd_b,upd_f,upd_y,upd_x+#elif INPUT2_DIMS == 5+ #define INPUT2_ORDER upd_b,upd_f,upd_z,upd_y,upd_x+#elif INPUT2_DIMS == 6+ #define INPUT2_ORDER upd_b,upd_f,upd_w,upd_z,upd_y,upd_x+#endif++#define INDICES_MAX_DIM 6+++KERNEL(scatter_nd_update_opt)(OPTIONAL_SHAPE_INFO_ARG+ const __global INPUT0_TYPE* data,+ const __global INPUT1_TYPE* indices,+ const __global INPUT2_TYPE* updates,+ __global OUTPUT_TYPE* output+#if HAS_FUSED_OPS_DECLS+ , FUSED_OPS_DECLS+#endif+)+{+ const uint dim0 = get_global_id(0);+ const uint dim1 = get_global_id(1);+ const uint dim2 = get_global_id(2);++#if INPUT2_DIMS <= 4+ const uint upd_x = dim0;+ const uint upd_y = dim1;+ const uint upd_f = dim2 % INPUT2_FEATURE_NUM;+ const uint upd_b = dim2 / INPUT2_FEATURE_NUM;+#elif INPUT2_DIMS == 5+ const uint upd_x = dim0;+ const uint upd_y = dim1 % INPUT2_SIZE_Y;+ const uint upd_z = dim1 / INPUT2_SIZE_Y;+ const uint upd_f = dim2 % INPUT2_FEATURE_NUM;+ const uint upd_b = dim2 / INPUT2_FEATURE_NUM;+#elif INPUT2_DIMS == 6+ const uint upd_x = dim0 % INPUT2_SIZE_X;+ const uint upd_y = dim0 / INPUT2_SIZE_X;+ const uint upd_z = dim1 % INPUT2_SIZE_Z;+ const uint upd_w = dim1 / INPUT2_SIZE_Z;+ const uint upd_f = dim2 % INPUT2_FEATURE_NUM;+ const uint upd_b = dim2 / INPUT2_FEATURE_NUM;+#endif++ uint indices_coord[INDICES_MAX_DIM] = { 0 };+ uint target_coord[INDICES_MAX_DIM];+ uint g_coord[INDICES_MAX_DIM] = { INPUT2_ORDER };++#if INPUT1_LENGTH == 1 && INDICES_RANK == 1+ for (uint i = 0; i < OUTPUT_DIMS; ++i) {+ target_coord[i] = g_coord[i];+ }+#else+ for (uint i = 0; i < INDICES_RANK; ++i) {+ indices_coord[i] = g_coord[i];+ }++ for (uint i = 0; i < INDICES_LAST_DIM; ++i) {+ indices_coord[INDICES_RANK - 1] = i;+ target_coord[i] = indices[GET_INDICES_INDEX(INPUT1_ORDER)];+ }++ for (uint i = INDICES_LAST_DIM; i < OUTPUT_DIMS; ++i) {+ target_coord[i] = g_coord[INDICES_RANK - 1 - INDICES_LAST_DIM + i];+ }+#endif++ const uint output_idx = GET_OUTPUT_INDEX(TARGET_COORD_ORDER);+ const uint updates_idx = GET_UPDATES_INDEX(INPUT2_ORDER);++ INPUT2_TYPE val = updates[updates_idx];++ #if HAS_FUSED_OPS+ const uint b = target_coord[0];+ const uint f = target_coord[1];+ #if INPUT0_DIMS <= 4+ const uint y = target_coord[2];+ const uint x = target_coord[3];+ #elif INPUT0_DIMS == 5+ const uint z = target_coord[2];+ const uint y = target_coord[3];+ const uint x = target_coord[4];+ #elif INPUT0_DIMS == 6+ const uint w = target_coord[2];+ const uint z = target_coord[3];+ const uint y = target_coord[4];+ const uint x = target_coord[5];+ #endif++ FUSED_OPS;+ output[output_idx] = TO_OUTPUT_TYPE(FUSED_OPS_RESULT);+ #else+ output[output_idx] = val;+ #endif+}++#ifdef GET_INPUT_INDEX+#undef GET_INPUT_INDEX+#endif++#ifdef GET_INDICES_INDEX+#undef GET_INDICES_INDEX+#endif++#ifdef GET_UPDATES_INDEX+#undef GET_UPDATES_INDEX+#endif++#ifdef GET_OUTPUT_INDEX+#undef GET_OUTPUT_INDEX+#endif++#ifdef ORDER+#undef ORDER+#endif++#ifdef TARGET_COORD_ORDER+#undef TARGET_COORD_ORDER+#endif++#ifdef INPUT1_ORDER+#undef INPUT1_ORDER+#endif++#ifdef INPUT2_ORDER+#undef INPUT2_ORDER+#endif++#ifdef INDICES_MAX_DIM+#undef INDICES_MAX_DIM+#endifdiff --git a/src/plugins/intel_gpu/src/kernel_selector/cl_kernels/scatter_nd_update_ref.cl b/src/plugins/intel_gpu/src/graph/impls/ocl_v2/scatter_nd_update_ref.clsimilarity index 84%rename from src/plugins/intel_gpu/src/kernel_selector/cl_kernels/scatter_nd_update_ref.clrename to src/plugins/intel_gpu/src/graph/impls/ocl_v2/scatter_nd_update_ref.clindex af751c852e4..d08a16a52ac 100644--- a/src/plugins/intel_gpu/src/kernel_selector/cl_kernels/scatter_nd_update_ref.cl+++ b/src/plugins/intel_gpu/src/graph/impls/ocl_v2/scatter_nd_update_ref.cl@@ -8,7 +8,7 @@#define GET_UPDATES_INDEX(prefix, idx_order) CAT(prefix, _GET_INDEX)(idx_order)#define GET_OUTPUT_INDEX(idx_order) OUTPUT_GET_INDEX(idx_order)-#if OUTPUT_DIMS == 4+#if OUTPUT_DIMS <= 4#define ORDER b,f,y,x#elif OUTPUT_DIMS == 5#define ORDER b,f,z,y,x@@ -16,7 +16,7 @@#define ORDER b,f,w,z,y,x#endif-#if INPUT2_DIMS == 4+#if INPUT2_DIMS <= 4#define UPD_ORDER upd_b,upd_f,upd_y,upd_x#elif INPUT2_DIMS == 5#define UPD_ORDER upd_b,upd_f,upd_z,upd_y,upd_x@@ -24,7 +24,7 @@#define UPD_ORDER upd_b,upd_f,upd_w,upd_z,upd_y,upd_x#endif-#if INPUT1_DIMS == 4+#if INPUT1_DIMS <= 4#define IDX_ORDER idx_b,idx_f,idx_y,idx_x#elif INPUT1_DIMS == 5#define IDX_ORDER idx_b,idx_f,idx_z,idx_y,idx_x@@ -36,10 +36,8 @@KERNEL(scatter_nd_update_ref)(OPTIONAL_SHAPE_INFO_ARGconst __global INPUT0_TYPE* data,-#ifdef IS_SECOND_ITERconst __global INPUT1_TYPE* indices,const __global INPUT2_TYPE* updates,-#endif__global OUTPUT_TYPE* output#if HAS_FUSED_OPS_DECLS, FUSED_OPS_DECLS@@ -50,32 +48,12 @@ KERNEL(scatter_nd_update_ref)(OPTIONAL_SHAPE_INFO_ARGconst uint dim1 = get_global_id(1);const uint dim2 = get_global_id(2);-#ifndef IS_SECOND_ITER // First kernel- const uint x = dim0 % OUTPUT_SIZE_X;- const uint y = dim0 / OUTPUT_SIZE_X;- const uint z = dim1 % OUTPUT_SIZE_Z;- const uint w = dim1 / OUTPUT_SIZE_Z;- const uint f = dim2 % OUTPUT_FEATURE_NUM;- const uint b = dim2 / OUTPUT_FEATURE_NUM;-- const uint input_idx = GET_UPDATES_INDEX(INPUT0, ORDER);- const uint output_idx = GET_OUTPUT_INDEX(ORDER);- INPUT0_TYPE val = data[input_idx];- #if HAS_FUSED_OPS- FUSED_OPS_FIRST_KERNEL;- output[output_idx] = TO_OUTPUT_TYPE(FUSED_OPS_RESULT_FIRST_KERNEL);- #else- output[output_idx] = ACTIVATION(val, ACTIVATION_PARAMS);- #endif--#else // Second kernel-const uint dataND[] = {INPUT0_BLOCK_ND};const uint updatesND[] = {INPUT2_BLOCK_ND};const uint indicesND[] = {INPUT1_BLOCK_ND};const uint size_to_update = dataND[INDICES_LAST_DIM];- #if INPUT1_DIMS == 4+ #if INPUT1_DIMS <= 4const uint indices_dim[INPUT1_DIMS] = {INPUT1_BATCH_NUM, INPUT1_FEATURE_NUM, INPUT1_SIZE_Y, INPUT1_SIZE_X};#elif INPUT1_DIMS == 5const uint indices_dim[INPUT1_DIMS] = {INPUT1_BATCH_NUM, INPUT1_FEATURE_NUM, INPUT1_SIZE_Z, INPUT1_SIZE_Y, INPUT1_SIZE_X};@@ -83,14 +61,13 @@ KERNEL(scatter_nd_update_ref)(OPTIONAL_SHAPE_INFO_ARGconst uint indices_dim[INPUT1_DIMS] = {INPUT1_BATCH_NUM, INPUT1_FEATURE_NUM, INPUT1_SIZE_W, INPUT1_SIZE_Z, INPUT1_SIZE_Y, INPUT1_SIZE_X};#endif- #if INPUT0_DIMS == 4+ #if INPUT0_DIMS <= 4const uint data_dim[INPUT0_DIMS] = {INPUT0_BATCH_NUM, INPUT0_FEATURE_NUM, INPUT0_SIZE_Y, INPUT0_SIZE_X};#elif INPUT0_DIMS == 5const uint data_dim[INPUT0_DIMS] = {INPUT0_BATCH_NUM, INPUT0_FEATURE_NUM, INPUT0_SIZE_Z, INPUT0_SIZE_Y, INPUT0_SIZE_X};#elif INPUT0_DIMS == 6const uint data_dim[INPUT0_DIMS] = {INPUT0_BATCH_NUM, INPUT0_FEATURE_NUM, INPUT0_SIZE_W, INPUT0_SIZE_Z, INPUT0_SIZE_Y, INPUT0_SIZE_X};#endif-// Get indices indexuint idx[INDICES_MAX_DIM] = {0};uint rmd_idx = dim2;@@ -104,7 +81,7 @@ KERNEL(scatter_nd_update_ref)(OPTIONAL_SHAPE_INFO_ARGidx[INDICES_RANK - 1] = i;const uint idx_b = idx[0];const uint idx_f = idx[1];- #if INPUT1_DIMS == 4+ #if INPUT1_DIMS <= 4const uint idx_y = idx[2];const uint idx_x = idx[3];#elif INPUT1_DIMS == 5@@ -146,7 +123,7 @@ KERNEL(scatter_nd_update_ref)(OPTIONAL_SHAPE_INFO_ARG// Get update indexconst uint upd_b = upd[0];const uint upd_f = upd[1];- #if INPUT2_DIMS == 4+ #if INPUT2_DIMS <= 4const uint upd_y = upd[2];const uint upd_x = upd[3];#elif INPUT2_DIMS == 5@@ -164,7 +141,7 @@ KERNEL(scatter_nd_update_ref)(OPTIONAL_SHAPE_INFO_ARG// Get output indexconst uint b = out[0];const uint f = out[1];- #if INPUT0_DIMS == 4+ #if INPUT0_DIMS <= 4const uint y = out[2];const uint x = out[3];#elif INPUT0_DIMS == 5@@ -181,14 +158,12 @@ KERNEL(scatter_nd_update_ref)(OPTIONAL_SHAPE_INFO_ARGINPUT2_TYPE val = updates[upd_idx];#if HAS_FUSED_OPS- FUSED_OPS_SECOND_KERNEL;- output[out_idx] = TO_OUTPUT_TYPE(FUSED_OPS_RESULT_SECOND_KERNEL);+ FUSED_OPS;+ output[out_idx] = TO_OUTPUT_TYPE(FUSED_OPS_RESULT);#else- output[out_idx] = ACTIVATION(val, ACTIVATION_PARAMS);+ output[out_idx] = val;#endif}-#endif-}#ifdef GET_UPDATES_INDEXdiff --git a/src/plugins/intel_gpu/src/graph/program.cpp b/src/plugins/intel_gpu/src/graph/program.cppindex b7532028bf5..34dd4b1b392 100644--- a/src/plugins/intel_gpu/src/graph/program.cpp+++ b/src/plugins/intel_gpu/src/graph/program.cpp@@ -58,6 +58,7 @@#include "border_inst.h"#include "primitive_inst.h"#include "prior_box_inst.h"+#include "scatter_nd_update_inst.h"#include "scatter_elements_update_inst.h"#include "proposal_inst.h"#include "reorder_inst.h"diff --git a/src/plugins/intel_gpu/src/graph/registry/registry.hpp b/src/plugins/intel_gpu/src/graph/registry/registry.hppindex a5af2cf3e42..1a57a1ed1ac 100644--- a/src/plugins/intel_gpu/src/graph/registry/registry.hpp+++ b/src/plugins/intel_gpu/src/graph/registry/registry.hpp@@ -152,6 +152,7 @@ REGISTER_IMPLS(rope);REGISTER_IMPLS(select);REGISTER_IMPLS(scatter_update);REGISTER_IMPLS(scatter_elements_update);+REGISTER_IMPLS(scatter_nd_update);REGISTER_IMPLS(softmax);REGISTER_IMPLS(shape_of);REGISTER_IMPLS(strided_slice);@@ -204,7 +205,6 @@ REGISTER_DEFAULT_IMPLS(rms, OCL_S, OCL_D);REGISTER_DEFAULT_IMPLS(roi_align, OCL_S);REGISTER_DEFAULT_IMPLS(roi_pooling, OCL_S);REGISTER_DEFAULT_IMPLS(roll, OCL_S);-REGISTER_DEFAULT_IMPLS(scatter_nd_update, OCL_S, OCL_D);REGISTER_DEFAULT_IMPLS(shuffle_channels, OCL_S);REGISTER_DEFAULT_IMPLS(slice, OCL_S, OCL_D);REGISTER_DEFAULT_IMPLS(space_to_batch, OCL_S);diff --git a/src/plugins/intel_gpu/src/graph/registry/scatter_nd_update_impls.cpp b/src/plugins/intel_gpu/src/graph/registry/scatter_nd_update_impls.cppnew file mode 100644index 00000000000..336955c5796--- /dev/null+++ b/src/plugins/intel_gpu/src/graph/registry/scatter_nd_update_impls.cpp@@ -0,0 +1,28 @@+// Copyright (C) 2024 Intel Corporation+// SPDX-License-Identifier: Apache-2.0+//++#include "registry.hpp"+#include "intel_gpu/primitives/scatter_nd_update.hpp"+#include "primitive_inst.h"++#if OV_GPU_WITH_OCL+ #include "impls/ocl_v2/scatter_nd_update.hpp"+#endif+++namespace ov {+namespace intel_gpu {++using namespace cldnn;++const std::vector<std::shared_ptr<cldnn::ImplementationManager>>& Registry<scatter_nd_update>::get_implementations() {+ static const std::vector<std::shared_ptr<ImplementationManager>> impls = {+ OV_GPU_CREATE_INSTANCE_OCL(ocl::ScatterNDUpdate, shape_types::any)+ };++ return impls;+}++} // namespace intel_gpu+} // namespace ovdiff --git a/src/plugins/intel_gpu/src/kernel_selector/kernels/scatter_update/scatter_nd_update_kernel_ref.cpp b/src/plugins/intel_gpu/src/kernel_selector/kernels/scatter_update/scatter_nd_update_kernel_ref.cppdeleted file mode 100644index 1eebbf9d5f9..00000000000--- a/src/plugins/intel_gpu/src/kernel_selector/kernels/scatter_update/scatter_nd_update_kernel_ref.cpp+++ /dev/null@@ -1,230 +0,0 @@-// Copyright (C) 2018-2025 Intel Corporation-// SPDX-License-Identifier: Apache-2.0-//--#include "scatter_nd_update_kernel_ref.h"-#include "kernel_selector_utils.h"-#include <string>-#include <vector>--namespace kernel_selector {--ParamsKey ScatterNDUpdateKernelRef::GetSupportedKey() const {- ParamsKey k;- k.EnableInputDataType(Datatype::F16);- k.EnableInputDataType(Datatype::F32);- k.EnableInputDataType(Datatype::INT32);- k.EnableInputDataType(Datatype::INT8);- k.EnableInputDataType(Datatype::UINT8);- k.EnableOutputDataType(Datatype::F16);- k.EnableOutputDataType(Datatype::F32);- k.EnableOutputDataType(Datatype::INT32);- k.EnableOutputDataType(Datatype::INT8);- k.EnableOutputDataType(Datatype::UINT8);- k.EnableAllInputLayout();- k.EnableAllOutputLayout();- k.EnableTensorOffset();- k.EnableTensorPitches();- k.EnableBatching();- k.EnableDifferentTypes();- k.EnableDynamicShapesSupport();- return k;-}--static inline std::vector<std::string> GetDefaultOrder(size_t size) {- std::vector<std::string> default_order;- if (size <= 4) {- default_order = {"b", "f", "y", "x"};- } else if (size == 5) {- default_order = {"b", "f", "z", "y", "x"};- } else if (size == 6) {- default_order = {"b", "f", "w", "z", "y", "x"};- }-- return default_order;-}--ScatterNDUpdateKernelRef::DispatchData-ScatterNDUpdateKernelRef::SetDefault(const scatter_nd_update_params& params, bool is_second) const {- DispatchData dispatchData;-- if (!is_second) {- const auto& scope = params.outputs[0];- dispatchData.indicesLastDim = 1;- dispatchData.gws = { scope.X().v * scope.Y().v, scope.Z().v * scope.W().v, scope.Feature().v * scope.Batch().v };- } else {- auto indices_rank = params.indices_rank;- const auto& indices = params.inputs[1];- auto indices_dims = indices.LogicalDims();-- if (indices_dims.size() > 1) {- std::reverse(indices_dims.begin(), indices_dims.end());- }-- dispatchData.indicesLastDim = indices_dims[indices_rank - 1];- size_t indices_set_size = 1;- for (size_t i = 0; i < (indices_rank - 1); i++) {- indices_set_size *= indices_dims[i];- }-- dispatchData.gws = {1, 1, indices_set_size};- }-- dispatchData.lws = GetOptimalLocalWorkGroupSizes(dispatchData.gws, params.engineInfo);-- return dispatchData;-}--JitConstants ScatterNDUpdateKernelRef::GetJitConstants(const scatter_nd_update_params& params) const {- JitConstants jit = MakeBaseParamsJitConstants(params);-- if (!params.fused_ops.empty()) {- FusedOpsConfiguration conf1 = { "_FIRST_KERNEL", GetDefaultOrder(params.outputs[0].GetDims().size()), "val", params.inputs[0].GetDType() };- FusedOpsConfiguration conf2 = { "_SECOND_KERNEL", GetDefaultOrder(params.outputs[0].GetDims().size()), "val", params.inputs[0].GetDType() };- jit.Merge(MakeFusedOpsJitConstants(params, {conf1, conf2}));- }-- return jit;-}--bool ScatterNDUpdateKernelRef::Validate(const Params& p) const {- if (p.GetType() != KernelType:: SCATTER_ND_UPDATE) {- return false;- }-- const scatter_nd_update_params& params = static_cast<const scatter_nd_update_params&>(p);-- auto indices_rank = params.indices_rank;- if (indices_rank < 1) {- return false;- }-- if (!params.has_dynamic_inputs()) {- auto input_dims = params.inputs[0].LogicalDims();- auto indices_dims = params.inputs[1].LogicalDims();- std::reverse(indices_dims.begin(), indices_dims.end());-- if (indices_dims[indices_rank - 1] > input_dims.size()) {- return false;- }- }-- for (auto& fused_op : params.fused_ops) {- if (!IsFusedPrimitiveSupported(fused_op))- return false;- }-- return true;-}--static std::string GetInputBlockND(const scatter_nd_update_params& params, size_t num, size_t shape_info_offset, size_t rank) {- const auto& input = params.inputs[num];-- auto input_dims = input.LogicalDims();- std::reverse(input_dims.begin(), input_dims.end());- auto dims = input.GetDims();- std::reverse(dims.begin(), dims.end());-- std::vector<size_t> block_nd(rank + 1);- block_nd[rank] = 1;-- std::vector<std::string> block_nd_s(rank + 1);- block_nd_s[rank] = "1";- size_t input_offset = shape_info_offset;-- for (int32_t idx = static_cast<int32_t>(rank) - 1; idx >= 0; --idx) {- block_nd[idx] = input_dims[idx] * block_nd[idx + 1];-- size_t dim_offset = idx < 2 ? idx : (DataTensor::max_rank() - dims.size()) + idx; // convert to idx in default planar format- block_nd_s[idx] = "(" + toCodeString(dims[idx], input_offset + dim_offset) + "*" + block_nd_s[idx + 1] + ")";- }-- std::string result;- if (input.is_dynamic()) {- for (auto& block : block_nd_s) {- result += block + ",";- }- } else {- for (size_t block : block_nd) {- result += toCodeString(block) + ",";- }- }- return result;-}--void ScatterNDUpdateKernelRef::GetUpdateDispatchDataFunc(KernelData& kd) const {- kd.update_dispatch_data_func = [this](const Params& params, KernelData& kd) {- const auto& prim_params = static_cast<const scatter_nd_update_params&>(params);- OPENVINO_ASSERT(kd.kernels.size() == 2, "[GPU] Invalid kernels size for update dispatch data func");-- for (size_t i = 0; i < 2; ++i) {- auto dispatchData = SetDefault(prim_params, (i == 1));- kd.kernels[i].params.workGroups.global = dispatchData.gws;- kd.kernels[i].params.workGroups.local = dispatchData.lws;- kd.kernels[i].skip_execution = KernelData::SkipKernelExecution(prim_params);-- // Do not skip copy stage if output buffer is not empty or requires modification- if (i == 0 && prim_params.outputs[0].LogicalSize() != 0 && prim_params.outputs[0] != prim_params.inputs[0])- kd.kernels[i].skip_execution = false;- }- };-}--KernelsData ScatterNDUpdateKernelRef::GetKernelsData(const Params& params) const {- if (!Validate(params)) {- return {};- }-- KernelData kd = KernelData::Default<scatter_nd_update_params>(params, 2);- scatter_nd_update_params& newParams = *static_cast<scatter_nd_update_params*>(kd.params.get());- auto cldnn_jit = GetJitConstants(newParams);-- GetUpdateDispatchDataFunc(kd);-- // First iter - copy input data to output data- // Second iter - update values specified by updates at specific index position specified by indices- for (int i = 0; i < 2; i++) {- auto dispatchData = SetDefault(newParams, (i == 1));- auto entry_point = GetEntryPoint(kernelName, newParams.layerID, params, i);- auto inputs_number = i == 0 ? 1 : 3;-- if (i == 1) {- size_t input0_rank = newParams.inputs[0].LogicalDims().size();- size_t input2_rank = newParams.inputs[2].LogicalDims().size();- cldnn_jit.AddConstant(MakeJitConstant("IS_SECOND_ITER", "true"));- cldnn_jit.AddConstant(MakeJitConstant(- "INPUT0_BLOCK_ND",- GetInputBlockND(newParams, 0, newParams.inputs[0].get_dynamic_shape_offset(), input0_rank)));- cldnn_jit.AddConstant(MakeJitConstant(- "INPUT1_BLOCK_ND",- GetInputBlockND(newParams, 1, newParams.inputs[1].get_dynamic_shape_offset(), newParams.indices_rank - 1)));- cldnn_jit.AddConstant(MakeJitConstant(- "INPUT2_BLOCK_ND",- GetInputBlockND(newParams, 2, newParams.inputs[2].get_dynamic_shape_offset(), input2_rank)));-- cldnn_jit.AddConstant(MakeJitConstant("INDICES_RANK", newParams.indices_rank));-- const auto& ind_input = newParams.inputs[1];- if (ind_input.is_dynamic()) {- auto dims = ind_input.GetDims();- std::reverse(dims.begin(), dims.end());-- size_t last_idx = newParams.indices_rank - 1;- size_t dim_offset = last_idx < 2 ? last_idx : last_idx + DataTensor::max_rank() - newParams.indices_rank;- auto indices_last_dim = toCodeString(dims[last_idx], dim_offset + (newParams.inputs[0].is_dynamic() ? DataTensor::max_rank() : 0));- cldnn_jit.AddConstant(MakeJitConstant("INDICES_LAST_DIM", indices_last_dim));- } else {- cldnn_jit.AddConstant(MakeJitConstant("INDICES_LAST_DIM", dispatchData.indicesLastDim));- }- }- std::pair<std::string, std::string> jit = CreateJit(kernelName, cldnn_jit, entry_point);-- clKernelData& kernel = kd.kernels[i];-- FillCLKernelData(kernel, dispatchData, params.engineInfo, kernelName, jit, entry_point,- "", false, false, inputs_number, GetFusedPrimitiveInputsCount(params), 1, newParams.is_shape_agnostic);- }-- return {kd};-}-} // namespace kernel_selectordiff --git a/src/plugins/intel_gpu/src/kernel_selector/kernels/scatter_update/scatter_nd_update_kernel_ref.h b/src/plugins/intel_gpu/src/kernel_selector/kernels/scatter_update/scatter_nd_update_kernel_ref.hdeleted file mode 100644index 2a23063fc1c..00000000000--- a/src/plugins/intel_gpu/src/kernel_selector/kernels/scatter_update/scatter_nd_update_kernel_ref.h+++ /dev/null@@ -1,41 +0,0 @@-// Copyright (C) 2018-2025 Intel Corporation-// SPDX-License-Identifier: Apache-2.0-//--#pragma once--#include "kernel_base_opencl.h"--namespace kernel_selector {-////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////-// scatter_nd_update_params-////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////-struct scatter_nd_update_params : public base_params {- scatter_nd_update_params() : base_params(KernelType::SCATTER_ND_UPDATE), indices_rank(0) {}-- size_t indices_rank;-};--class ScatterNDUpdateKernelRef : public KernelBaseOpenCL {-public:- struct DispatchData : public CommonDispatchData {- size_t indicesLastDim;- };-- ScatterNDUpdateKernelRef() : KernelBaseOpenCL("scatter_nd_update_ref") {}- virtual ~ScatterNDUpdateKernelRef() {}- virtual JitConstants GetJitConstants(const scatter_nd_update_params& params) const;- virtual DispatchData SetDefault(const scatter_nd_update_params& params, bool is_second) const;- KernelsData GetKernelsData(const Params& params) const override;- ParamsKey GetSupportedKey() const override;- std::vector<FusedOpType> GetSupportedFusedOps() const override {- return { FusedOpType::QUANTIZE,- FusedOpType::ACTIVATION,- FusedOpType::ELTWISE };- }--protected:- bool Validate(const Params& p) const override;- void GetUpdateDispatchDataFunc(KernelData& kd) const override;-};-} // namespace kernel_selectordiff --git a/src/plugins/intel_gpu/src/kernel_selector/kernels/scatter_update/scatter_nd_update_kernel_selector.cpp b/src/plugins/intel_gpu/src/kernel_selector/kernels/scatter_update/scatter_nd_update_kernel_selector.cppdeleted file mode 100644index b273d71b681..00000000000--- a/src/plugins/intel_gpu/src/kernel_selector/kernels/scatter_update/scatter_nd_update_kernel_selector.cpp+++ /dev/null@@ -1,15 +0,0 @@-// Copyright (C) 2018-2025 Intel Corporation-// SPDX-License-Identifier: Apache-2.0-//--#include "scatter_nd_update_kernel_selector.h"-#include "scatter_nd_update_kernel_ref.h"--namespace kernel_selector {--scatter_nd_update_kernel_selector::scatter_nd_update_kernel_selector() { Attach<ScatterNDUpdateKernelRef>(); }--KernelsData scatter_nd_update_kernel_selector::GetBestKernels(const Params& params) const {- return GetNaiveBestKernel(params, KernelType::SCATTER_ND_UPDATE);-}-} // namespace kernel_selectordiff --git a/src/plugins/intel_gpu/src/kernel_selector/kernels/scatter_update/scatter_nd_update_kernel_selector.h b/src/plugins/intel_gpu/src/kernel_selector/kernels/scatter_update/scatter_nd_update_kernel_selector.hdeleted file mode 100644index c2fb888417a..00000000000--- a/src/plugins/intel_gpu/src/kernel_selector/kernels/scatter_update/scatter_nd_update_kernel_selector.h+++ /dev/null@@ -1,23 +0,0 @@-// Copyright (C) 2018-2025 Intel Corporation-// SPDX-License-Identifier: Apache-2.0-//--#pragma once--#include "kernel_selector.h"--namespace kernel_selector {-class scatter_nd_update_kernel_selector : public kernel_selector_base {-public:- static scatter_nd_update_kernel_selector& Instance() {- static scatter_nd_update_kernel_selector instance_;- return instance_;- }-- scatter_nd_update_kernel_selector();-- virtual ~scatter_nd_update_kernel_selector() {}-- KernelsData GetBestKernels(const Params& params) const override;-};-} // namespace kernel_selectordiff --git a/src/plugins/intel_gpu/tests/unit/dynamic_execution/skip_scatter_update_at_runtime.cpp b/src/plugins/intel_gpu/tests/unit/dynamic_execution/skip_scatter_update_at_runtime.cppindex 44572bd7980..6a12e277c9d 100644--- a/src/plugins/intel_gpu/tests/unit/dynamic_execution/skip_scatter_update_at_runtime.cpp+++ b/src/plugins/intel_gpu/tests/unit/dynamic_execution/skip_scatter_update_at_runtime.cpp@@ -87,15 +87,15 @@ TEST_P(skip_scatter_update_at_runtime_test, runtime_skip) {rank = input_layout_static.get_partial_shape().size();input_layout_dynamic = layout {ov::PartialShape::dynamic(rank), data_types::f16, format::get_default_format(rank)};- idx1_nonzero_layout = layout{ov::PartialShape{12,1}, data_types::f16, format::bfyx};- idx1_zero_layout = layout{ov::PartialShape{0,1}, data_types::f16, format::bfyx};+ idx1_nonzero_layout = layout{ov::PartialShape{12,1}, data_types::i32, format::bfyx};+ idx1_zero_layout = layout{ov::PartialShape{0,1}, data_types::i32, format::bfyx};update1_nonzero_layout = layout{ov::PartialShape{12}, data_types::f16, format::bfyx};update1_zero_layout = layout{ov::PartialShape{0}, data_types::f16, format::bfyx};rank = idx1_nonzero_layout.get_partial_shape().size();- auto idx_layout_dynamic = layout {ov::PartialShape::dynamic(rank), data_types::f16, format::get_default_format(rank)};+ auto idx_layout_dynamic = layout {ov::PartialShape::dynamic(rank), data_types::i32, format::get_default_format(rank)};- idx2_nonzero_layout = layout{ov::PartialShape{12,1}, data_types::f16, format::bfyx};- idx2_zero_layout = layout{ov::PartialShape{0,1}, data_types::f16, format::bfyx};+ idx2_nonzero_layout = layout{ov::PartialShape{12,1}, data_types::i32, format::bfyx};+ idx2_zero_layout = layout{ov::PartialShape{0,1}, data_types::i32, format::bfyx};update2_nonzero_layout = layout{ov::PartialShape{12}, data_types::f16, format::bfyx};update2_zero_layout = layout{ov::PartialShape{0}, data_types::f16, format::bfyx};diff --git a/src/plugins/intel_gpu/tests/unit/fusions/scatter_nd_update_fusion_test.cpp b/src/plugins/intel_gpu/tests/unit/fusions/scatter_nd_update_fusion_test.cppindex bfdc5c1e233..ef22637b35d 100644--- a/src/plugins/intel_gpu/tests/unit/fusions/scatter_nd_update_fusion_test.cpp+++ b/src/plugins/intel_gpu/tests/unit/fusions/scatter_nd_update_fusion_test.cpp@@ -49,7 +49,7 @@ public:}layout get_indices_layout(scatter_nd_update_test_params& p) {- return layout{ p.data_type, get_default_format(p.indices_rank), p.indices_shape };+ return layout{ data_types::i32, get_default_format(p.indices_rank), p.indices_shape };}layout get_updates_layout(scatter_nd_update_test_params& p) {@@ -100,14 +100,11 @@ public:cldnn::memory::ptr get_indices_mem(scatter_nd_update_test_params& p) {auto indices_layout = get_indices_layout(p);auto prim = engine.allocate_memory(indices_layout);- if (indices_layout.data_type == data_types::f32) {- VF<float> rnd_vec = generate_unique_indices<float>(p);+ if (indices_layout.data_type == data_types::i32) {+ VF<int32_t> rnd_vec = generate_unique_indices<int32_t>(p);set_values(prim, rnd_vec);- } else if (indices_layout.data_type == data_types::f16) {- VF<ov::float16> rnd_vec = generate_unique_indices<ov::float16>(p);- set_values(prim, rnd_vec);- } else if (indices_layout.data_type == data_types::i8) {- VF<int8_t> rnd_vec = generate_unique_indices<int8_t>(p);+ } else if (indices_layout.data_type == data_types::i64) {+ VF<int64_t> rnd_vec = generate_unique_indices<int64_t>(p);set_values(prim, rnd_vec);} else {throw std::runtime_error("Unsupported data type for indicies of scatter_nd_update primitive");diff --git a/src/plugins/intel_gpu/tests/unit/shape_infer/scatter_nd_update_si_test.cpp b/src/plugins/intel_gpu/tests/unit/shape_infer/scatter_nd_update_si_test.cppindex 4e31bb30b6b..fbe08c6b11d 100644--- a/src/plugins/intel_gpu/tests/unit/shape_infer/scatter_nd_update_si_test.cpp+++ b/src/plugins/intel_gpu/tests/unit/shape_infer/scatter_nd_update_si_test.cpp@@ -62,21 +62,21 @@ INSTANTIATE_TEST_SUITE_P(smoke, scatter_nd_update_test,testing::ValuesIn(std::vector<scatter_nd_update_test_params>{{layout{ov::PartialShape{1000, 256, 10, 15}, data_types::f32, format::bfyx},- layout{ov::PartialShape{25, 125, 3}, data_types::f32, format::bfyx},+ layout{ov::PartialShape{25, 125, 3}, data_types::i32, format::bfyx},layout{ov::PartialShape{25, 125, 15}, data_types::f32, format::bfyx},3,layout{ov::PartialShape{1000, 256, 10, 15}, data_types::f32, format::bfyx},},{layout{ov::PartialShape{3, 5}, data_types::f32, format::bfyx},- layout{ov::PartialShape{2}, data_types::f32, format::bfyx},+ layout{ov::PartialShape{2}, data_types::i32, format::bfyx},layout{ov::PartialShape{3, 2}, data_types::f32, format::bfyx},1,layout{ov::PartialShape{3, 5}, data_types::f32, format::bfyx},},{layout{ov::PartialShape::dynamic(2), data_types::f32, format::bfyx},- layout{ov::PartialShape::dynamic(3), data_types::f32, format::bfyx},+ layout{ov::PartialShape::dynamic(3), data_types::i32, format::bfyx},layout{ov::PartialShape::dynamic(3), data_types::f32, format::bfyx},3,layout{ov::PartialShape::dynamic(2), data_types::f32, format::bfyx},diff --git a/src/plugins/intel_gpu/tests/unit/test_cases/scatter_nd_update_gpu_test.cpp b/src/plugins/intel_gpu/tests/unit/test_cases/scatter_nd_update_gpu_test.cppindex b84f5b0e2d2..de86713571b 100644--- a/src/plugins/intel_gpu/tests/unit/test_cases/scatter_nd_update_gpu_test.cpp+++ b/src/plugins/intel_gpu/tests/unit/test_cases/scatter_nd_update_gpu_test.cpp@@ -88,7 +88,7 @@ struct scatter_nd_update_random_test : testing::TestWithParam<scatter_nd_update_return result;}- template<typename T, typename T_size>+ template<typename T, typename T_size, typename T_indices>void execute_fp16(const scatter_nd_update_basic_test_params& params, bool is_caching_test){auto& engine = get_test_engine();@@ -114,21 +114,18 @@ struct scatter_nd_update_random_test : testing::TestWithParam<scatter_nd_update_indices_vec.resize(params.indices_rank);auto input_data_fp16 = rg.generate_random_1d<T>(params.input_size.count(), -127, 127);- auto indices_data_fp16 = generate_unique_indices<T>(params);+ auto indices_data = generate_unique_indices<T_indices>(params);auto updates_data_fp16 = rg.generate_random_1d<T>(params.updates_size.count(), -127, 127);std::vector<float> input_data(params.input_size.count());for (size_t i = 0; i < params.input_size.count(); ++i)input_data[i] = static_cast<float>(input_data_fp16[i]);- std::vector<float> indices_data(params.indices_size.count());- for (size_t i = 0; i < params.indices_size.count(); ++i)- indices_data[i] = static_cast<float>(indices_data_fp16[i]);std::vector<float> updates_data(params.updates_size.count());for (size_t i = 0; i < params.updates_size.count(); ++i)updates_data[i] = static_cast<float>(updates_data_fp16[i]);set_values(input1, input_data_fp16);- set_values(input2, indices_data_fp16);+ set_values(input2, indices_data);set_values(input3, updates_data_fp16);// execute scatter_nd_update@@ -154,7 +151,7 @@ struct scatter_nd_update_random_test : testing::TestWithParam<scatter_nd_update_cldnn::mem_lock<T_size> outputs_ptr(output, get_test_stream());auto outputs_ref = std::vector<float>(params.input_size.count());- ov::reference::scatterNdUpdate<float, float>(input_data.data(),+ ov::reference::scatterNdUpdate<float, T_indices>(input_data.data(),indices_data.data(),updates_data.data(),outputs_ref.data(),@@ -167,7 +164,7 @@ struct scatter_nd_update_random_test : testing::TestWithParam<scatter_nd_update_}}- template<typename T>+ template<typename T, typename T_indices>void execute(const scatter_nd_update_basic_test_params& params, bool is_caching_test){// create input, indices, updates using params@@ -194,7 +191,7 @@ struct scatter_nd_update_random_test : testing::TestWithParam<scatter_nd_update_indices_vec.resize(params.indices_rank);auto input_data = rg.generate_random_1d<T>(params.input_size.count(), -127, 127);- auto indices_data = generate_unique_indices<T>(params);+ auto indices_data = generate_unique_indices<T_indices>(params);auto updates_data = rg.generate_random_1d<T>(params.updates_size.count(), -127, 127);set_values(input1, input_data);@@ -224,7 +221,7 @@ struct scatter_nd_update_random_test : testing::TestWithParam<scatter_nd_update_cldnn::mem_lock<T> outputs_ptr(output, get_test_stream());auto outputs_ref = std::vector<T>(params.input_size.count());- ov::reference::scatterNdUpdate<T, T>(input_data.data(),+ ov::reference::scatterNdUpdate<T, T_indices>(input_data.data(),indices_data.data(),updates_data.data(),outputs_ref.data(),@@ -240,19 +237,32 @@ struct scatter_nd_update_random_test : testing::TestWithParam<scatter_nd_update_TEST_P(scatter_nd_update_random_test, random){+ bool cache = false;auto param = GetParam();- if (param.input_type == data_types::u8)- this->execute<uint8_t>(param, false);- else if (param.input_type == data_types::i8)- this->execute<int8_t>(param, false);- else if (param.input_type == data_types::i32)- this->execute<int32_t>(param, false);- else if (param.input_type == data_types::i64)- this->execute<int64_t>(param, false);- else if (param.input_type == data_types::f16)- this->execute_fp16<ov::float16, uint16_t>(param, false);- else if (param.input_type == data_types::f32)- this->execute<float>(param, false);+ if (param.input_type == data_types::u8 && param.indices_type == data_types::i32)+ this->execute<uint8_t, int32_t>(param, cache);+ else if (param.input_type == data_types::u8 && param.indices_type == data_types::i64)+ this->execute<uint8_t, int64_t>(param, cache);+ else if (param.input_type == data_types::i8 && param.indices_type == data_types::i32)+ this->execute<int8_t, int32_t>(param, cache);+ else if (param.input_type == data_types::i8 && param.indices_type == data_types::i64)+ this->execute<int8_t, int64_t>(param, cache);+ else if (param.input_type == data_types::i32 && param.indices_type == data_types::i32)+ this->execute<int32_t, int32_t>(param, cache);+ else if (param.input_type == data_types::i32 && param.indices_type == data_types::i64)+ this->execute<int32_t, int64_t>(param, cache);+ else if (param.input_type == data_types::i64 && param.indices_type == data_types::i32)+ this->execute<int64_t, int32_t>(param, cache);+ else if (param.input_type == data_types::i64 && param.indices_type == data_types::i64)+ this->execute<int64_t, int64_t>(param, cache);+ else if (param.input_type == data_types::f16 && param.indices_type == data_types::i32)+ this->execute_fp16<ov::float16, uint16_t, int32_t>(param, cache);+ else if (param.input_type == data_types::f16 && param.indices_type == data_types::i64)+ this->execute_fp16<ov::float16, uint16_t, int64_t>(param, cache);+ else if (param.input_type == data_types::f32 && param.indices_type == data_types::i32)+ this->execute<float, int32_t>(param, cache);+ else if (param.input_type == data_types::f32 && param.indices_type == data_types::i64)+ this->execute<float, int64_t>(param, cache);elseOPENVINO_THROW("unidentified data type");}@@ -261,7 +271,7 @@ INSTANTIATE_TEST_SUITE_P(scatter_nd_update_gpu_random_test_fp32_bsv32_fsv16_4d_rscatter_nd_update_random_test,testing::ValuesIn(std::vector<scatter_nd_update_basic_test_params>{- { data_types::f32, data_types::f32, data_types::f32,+ { data_types::f32, data_types::i32, data_types::f32,format::bfyx, format::bfyx, format::bfyx,format::bs_fs_yx_bsv32_fsv16, format::bs_fs_yx_bsv32_fsv16, format::bs_fs_yx_bsv32_fsv16,{ 6, 1, 1, 1 }, { 3, 1, 1, 1 }, { 3, 1, 1, 1 },@@ -272,7 +282,7 @@ INSTANTIATE_TEST_SUITE_P(scatter_nd_update_gpu_random_test_fp32_bsv32_fsv16_4d_rscatter_nd_update_random_test,testing::ValuesIn(std::vector<scatter_nd_update_basic_test_params>{- { data_types::f32, data_types::f32, data_types::f32,+ { data_types::f32, data_types::i32, data_types::f32,format::bfyx, format::bfyx, format::bfyx,format::bs_fs_yx_bsv32_fsv16, format::bs_fs_yx_bsv32_fsv16, format::bs_fs_yx_bsv32_fsv16,{ 48, 24, 3, 3 }, { 3, 2, 1, 1 }, { 3, 3, 1, 3 },@@ -283,7 +293,7 @@ INSTANTIATE_TEST_SUITE_P(scatter_nd_update_gpu_random_test_fp32_fsv16_4d_rank_1,scatter_nd_update_random_test,testing::ValuesIn(std::vector<scatter_nd_update_basic_test_params>{- { data_types::f32, data_types::f32, data_types::f32,+ { data_types::f32, data_types::i32, data_types::f32,format::bfyx, format::bfyx, format::bfyx,format::b_fs_yx_fsv16, format::b_fs_yx_fsv16, format::b_fs_yx_fsv16,{ 6, 1, 1, 1 }, { 3, 1, 1, 1 }, { 3, 1, 1, 1 },@@ -294,7 +304,7 @@ INSTANTIATE_TEST_SUITE_P(scatter_nd_update_gpu_random_test_fp32_fsv16_4d_rank_2,scatter_nd_update_random_test,testing::ValuesIn(std::vector<scatter_nd_update_basic_test_params>{- { data_types::f32, data_types::f32, data_types::f32,+ { data_types::f32, data_types::i32, data_types::f32,format::bfyx, format::bfyx, format::bfyx,format::b_fs_yx_fsv16, format::b_fs_yx_fsv16, format::b_fs_yx_fsv16,{ 48, 24, 3, 3 }, { 3, 2, 1, 1 }, { 3, 3, 1, 3 },@@ -305,7 +315,7 @@ INSTANTIATE_TEST_SUITE_P(scatter_nd_update_gpu_random_test_fp32_fsv16_5d_rank_2,scatter_nd_update_random_test,testing::ValuesIn(std::vector<scatter_nd_update_basic_test_params>{- { data_types::f32, data_types::f32, data_types::f32,+ { data_types::f32, data_types::i32, data_types::f32,format::bfzyx, format::bfyx, format::bfzyx,format::b_fs_zyx_fsv16, format::b_fs_yx_fsv16, format::b_fs_zyx_fsv16,{ 6, 7, 3, 3, 10 }, { 5, 2, 1, 1 }, { 5, 10, 1, 3, 3 },@@ -316,7 +326,7 @@ INSTANTIATE_TEST_SUITE_P(scatter_nd_update_gpu_random_test_fp32_fsv16_5d_rank_3,scatter_nd_update_random_test,testing::ValuesIn(std::vector<scatter_nd_update_basic_test_params>{- { data_types::f32, data_types::f32, data_types::f32,+ { data_types::f32, data_types::i32, data_types::f32,format::bfzyx, format::bfyx, format::bfzyx,format::b_fs_zyx_fsv16, format::b_fs_yx_fsv16, format::b_fs_zyx_fsv16,{ 6, 7, 8, 9, 10 }, { 5, 2, 1, 2 }, { 5, 2, 8, 9, 10 },@@ -327,7 +337,7 @@ INSTANTIATE_TEST_SUITE_P(scatter_nd_update_gpu_random_test_fp32_fsv16_5d_rank_4,scatter_nd_update_random_test,testing::ValuesIn(std::vector<scatter_nd_update_basic_test_params>{- { data_types::f32, data_types::f32, data_types::f32,+ { data_types::f32, data_types::i32, data_types::f32,format::bfzyx, format::bfyx, format::bfzyx,format::b_fs_zyx_fsv16, format::b_fs_yx_fsv16, format::b_fs_zyx_fsv16,{ 6, 7, 8, 9, 10 }, { 5, 2, 4, 3 }, { 5, 2, 1, 8, 3 },@@ -338,7 +348,7 @@ INSTANTIATE_TEST_SUITE_P(scatter_nd_update_gpu_random_test_fp16_fsv16_4d_rank_1,scatter_nd_update_random_test,testing::ValuesIn(std::vector<scatter_nd_update_basic_test_params>{- { data_types::f16, data_types::f16, data_types::f16,+ { data_types::f16, data_types::i32, data_types::f16,format::bfyx, format::bfyx, format::bfyx,format::b_fs_yx_fsv16, format::b_fs_yx_fsv16, format::b_fs_yx_fsv16,{ 6, 1, 1, 1 }, { 3, 1, 1, 1 }, { 3, 1, 1, 1 },@@ -349,7 +359,7 @@ INSTANTIATE_TEST_SUITE_P(scatter_nd_update_gpu_random_test_fp16_fsv16_4d_rank_2,scatter_nd_update_random_test,testing::ValuesIn(std::vector<scatter_nd_update_basic_test_params>{- { data_types::f16, data_types::f16, data_types::f16,+ { data_types::f16, data_types::i32, data_types::f16,format::bfyx, format::bfyx, format::bfyx,format::b_fs_yx_fsv16, format::b_fs_yx_fsv16, format::b_fs_yx_fsv16,{ 48, 24, 3, 3 }, { 3, 2, 1, 1 }, { 3, 3, 1, 3 },@@ -360,7 +370,7 @@ INSTANTIATE_TEST_SUITE_P(scatter_nd_update_gpu_random_test_fp16_fsv16_5d_rank_1,scatter_nd_update_random_test,testing::ValuesIn(std::vector<scatter_nd_update_basic_test_params>{- { data_types::f16, data_types::f16, data_types::f16,+ { data_types::f16, data_types::i32, data_types::f16,format::bfzyx, format::bfyx, format::bfzyx,format::b_fs_zyx_fsv16, format::b_fs_yx_fsv16, format::b_fs_zyx_fsv16,{ 6, 7, 8, 9, 10 }, { 5, 1, 1, 1 }, { 5, 7, 8, 9, 10 },@@ -371,7 +381,7 @@ INSTANTIATE_TEST_SUITE_P(scatter_nd_update_gpu_random_test_fp16_fsv16_5d_rank_2,scatter_nd_update_random_test,testing::ValuesIn(std::vector<scatter_nd_update_basic_test_params>{- { data_types::f16, data_types::f16, data_types::f16,+ { data_types::f16, data_types::i32, data_types::f16,format::bfzyx, format::bfyx, format::bfzyx,format::b_fs_zyx_fsv16, format::b_fs_yx_fsv16, format::b_fs_zyx_fsv16,{ 6, 7, 8, 9, 10 }, { 5, 4, 1, 1 }, { 5, 8, 1, 1, 1 },@@ -382,7 +392,7 @@ INSTANTIATE_TEST_SUITE_P(scatter_nd_update_gpu_random_test_fp16_fsv16_5d_rank_3,scatter_nd_update_random_test,testing::ValuesIn(std::vector<scatter_nd_update_basic_test_params>{- { data_types::f16, data_types::f16, data_types::f16,+ { data_types::f16, data_types::i32, data_types::f16,format::bfzyx, format::bfyx, format::bfzyx,format::b_fs_zyx_fsv16, format::b_fs_yx_fsv16, format::b_fs_zyx_fsv16,{ 6, 7, 8, 9, 10 }, { 5, 2, 1, 3 }, { 5, 2, 1, 8, 9 },@@ -393,7 +403,7 @@ INSTANTIATE_TEST_SUITE_P(scatter_nd_update_gpu_random_test_fp16_fsv16_5d_rank_4,scatter_nd_update_random_test,testing::ValuesIn(std::vector<scatter_nd_update_basic_test_params>{- { data_types::f16, data_types::f16, data_types::f16,+ { data_types::f16, data_types::i32, data_types::f16,format::bfzyx, format::bfyx, format::bfzyx,format::b_fs_zyx_fsv16, format::b_fs_yx_fsv16, format::b_fs_zyx_fsv16,{ 6, 7, 8, 9, 10 }, { 5, 2, 4, 3 }, { 5, 2, 1, 8, 3 },@@ -404,7 +414,7 @@ INSTANTIATE_TEST_SUITE_P(scatter_nd_update_gpu_random_test_fp16_bsv32_fsv16_4d_rscatter_nd_update_random_test,testing::ValuesIn(std::vector<scatter_nd_update_basic_test_params>{- { data_types::f16, data_types::f16, data_types::f16,+ { data_types::f16, data_types::i32, data_types::f16,format::bfyx, format::bfyx, format::bfyx,format::bs_fs_yx_bsv32_fsv16, format::bs_fs_yx_bsv32_fsv16, format::bs_fs_yx_bsv32_fsv16,{ 6, 1, 1, 1 }, { 3, 1, 1, 1 }, { 3, 1, 1, 1 },@@ -415,7 +425,7 @@ INSTANTIATE_TEST_SUITE_P(scatter_nd_update_gpu_random_test_fp16_bsv32_fsv16_4d_rscatter_nd_update_random_test,testing::ValuesIn(std::vector<scatter_nd_update_basic_test_params>{- { data_types::f16, data_types::f16, data_types::f16,+ { data_types::f16, data_types::i32, data_types::f16,format::bfyx, format::bfyx, format::bfyx,format::bs_fs_yx_bsv32_fsv16, format::bs_fs_yx_bsv32_fsv16, format::bs_fs_yx_bsv32_fsv16,{ 48, 24, 3, 3 }, {3, 2, 1, 1 }, { 3, 3, 1, 3 },@@ -426,7 +436,7 @@ INSTANTIATE_TEST_SUITE_P(scatter_nd_update_gpu_random_test_i8_bsv32_fsv16_4d_ranscatter_nd_update_random_test,testing::ValuesIn(std::vector<scatter_nd_update_basic_test_params>{- { data_types::i8, data_types::i8, data_types::i8,+ { data_types::i8, data_types::i32, data_types::i8,format::bfyx, format::bfyx, format::bfyx,format::bs_fs_yx_bsv32_fsv16, format::bs_fs_yx_bsv32_fsv16, format::bs_fs_yx_bsv32_fsv16,{ 41, 23, 3, 3 }, { 3, 2, 1, 1 }, { 3, 3, 1, 3 },@@ -437,7 +447,7 @@ INSTANTIATE_TEST_SUITE_P(scatter_nd_update_gpu_random_test_i8_bsv32_fsv32_4d_ranscatter_nd_update_random_test,testing::ValuesIn(std::vector<scatter_nd_update_basic_test_params>{- { data_types::i8, data_types::i8, data_types::i8,+ { data_types::i8, data_types::i32, data_types::i8,format::bfyx, format::bfyx, format::bfyx,format::bs_fs_yx_bsv32_fsv32, format::bs_fs_yx_bsv32_fsv32, format::bs_fs_yx_bsv32_fsv32,{ 6, 1, 1, 1 }, { 3, 1, 1, 1 }, { 3, 1, 1, 1 },@@ -448,7 +458,7 @@ INSTANTIATE_TEST_SUITE_P(scatter_nd_update_gpu_random_test_i8_fsv32_4d_rank_2,scatter_nd_update_random_test,testing::ValuesIn(std::vector<scatter_nd_update_basic_test_params>{- { data_types::i8, data_types::i8, data_types::i8,+ { data_types::i8, data_types::i32, data_types::i8,format::bfyx, format::bfyx, format::bfyx,format::b_fs_yx_fsv32, format::b_fs_yx_fsv32, format::b_fs_yx_fsv32,{ 41, 23, 3, 3 }, { 3, 2, 1, 1 }, { 3, 3, 1, 3 },@@ -459,7 +469,7 @@ INSTANTIATE_TEST_SUITE_P(scatter_nd_update_gpu_random_test_i8_fsv32_5d_rank_3,scatter_nd_update_random_test,testing::ValuesIn(std::vector<scatter_nd_update_basic_test_params>{- { data_types::i8, data_types::i8, data_types::i8,+ { data_types::i8, data_types::i32, data_types::i8,format::bfzyx, format::bfyx, format::bfzyx,format::b_fs_zyx_fsv32, format::b_fs_yx_fsv32, format::b_fs_zyx_fsv32,{ 6, 7, 8, 9, 10 }, { 5, 2, 1, 2 }, { 5, 2, 8, 9, 10 },@@ -470,7 +480,7 @@ INSTANTIATE_TEST_SUITE_P(scatter_nd_update_gpu_random_test_i8_fsv16_4d_rank_2,scatter_nd_update_random_test,testing::ValuesIn(std::vector<scatter_nd_update_basic_test_params>{- { data_types::i8, data_types::i8, data_types::i8,+ { data_types::i8, data_types::i32, data_types::i8,format::bfyx, format::bfyx, format::bfyx,format::b_fs_yx_fsv16, format::b_fs_yx_fsv16, format::b_fs_yx_fsv16,{ 41, 23, 3, 3 }, { 3, 2, 1, 1 }, { 3, 3, 1, 3 },@@ -481,7 +491,7 @@ INSTANTIATE_TEST_SUITE_P(scatter_nd_update_gpu_random_test_i8_fsv16_5d_rank_4,scatter_nd_update_random_test,testing::ValuesIn(std::vector<scatter_nd_update_basic_test_params>{- { data_types::i8, data_types::i8, data_types::i8,+ { data_types::i8, data_types::i32, data_types::i8,format::bfzyx, format::bfyx, format::bfzyx,format::b_fs_zyx_fsv16, format::b_fs_yx_fsv16, format::b_fs_zyx_fsv16,{ 6, 7, 8, 9, 10 }, { 5, 2, 3, 3 }, { 5, 2, 8, 9, 3 },@@ -493,7 +503,7 @@ TEST(scatter_nd_update_gpu_fp16_test15, data5_indice3_update5) {auto& engine = get_test_engine();auto input1 = engine.allocate_memory({ data_types::f16, format::bfzyx, { 2, 2, 2, 4, 3 } }); // data- auto input2 = engine.allocate_memory({ data_types::f16, format::bfyx, { 1, 2, 1, 1 } }); // indices+ auto input2 = engine.allocate_memory({ data_types::i32, format::bfyx, { 1, 2, 1, 1 } }); // indicesauto input3 = engine.allocate_memory({ data_types::f16, format::bfwzyx, { 1, 2, 2, 4, 3, 2 } }); // updatesset_values(input1, {@@ -517,8 +527,8 @@ TEST(scatter_nd_update_gpu_fp16_test15, data5_indice3_update5) {});set_values(input2, {- ov::float16(1.0f),- ov::float16(0.0f),+ 1,+ 0,});set_values(input3, {@@ -588,7 +598,7 @@ TEST(scatter_nd_update_gpu_fp16_test14, data5_indice2_update3) {auto& engine = get_test_engine();auto input1 = engine.allocate_memory({ data_types::f16, format::bfzyx, { 2, 2, 2, 4, 3 } }); // data 2x2x3x4x2 (bfzyx)- auto input2 = engine.allocate_memory({ data_types::f16, format::bfyx, { 3, 3, 1, 1 } }); // indices+ auto input2 = engine.allocate_memory({ data_types::i32, format::bfyx, { 3, 3, 1, 1 } }); // indicesauto input3 = engine.allocate_memory({ data_types::f16, format::bfzyx, { 3, 4, 1, 1, 2 } }); // updatesset_values(input1, {@@ -612,9 +622,9 @@ TEST(scatter_nd_update_gpu_fp16_test14, data5_indice2_update3) {});set_values(input2, {- ov::float16(1.0f), ov::float16(1.0f), ov::float16(2.0f),- ov::float16(1.0f), ov::float16(1.0f), ov::float16(0.0f),- ov::float16(0.0f), ov::float16(1.0f), ov::float16(1.0f),+ 1, 1, 2,+ 1, 1, 0,+ 0, 1, 1,});set_values(input3, {@@ -672,7 +682,7 @@ TEST(scatter_nd_update_gpu_fp16_test13, data4_indice2_update2) {auto& engine = get_test_engine();auto input1 = engine.allocate_memory({ data_types::f16, format::bfyx, { 2, 3, 4, 2 } }); // data 2x3x2x4 (bfyx)- auto input2 = engine.allocate_memory({ data_types::f16, format::bfyx, { 3, 3, 1, 1 } }); // indices+ auto input2 = engine.allocate_memory({ data_types::i32, format::bfyx, { 3, 3, 1, 1 } }); // indicesauto input3 = engine.allocate_memory({ data_types::f16, format::bfyx, { 3, 4, 1, 1 } }); // updatesset_values(input1, {@@ -686,9 +696,9 @@ TEST(scatter_nd_update_gpu_fp16_test13, data4_indice2_update2) {});set_values(input2, {- ov::float16(1.0f), ov::float16(1.0f), ov::float16(0.0f),- ov::float16(1.0f), ov::float16(2.0f), ov::float16(1.0f),- ov::float16(0.0f), ov::float16(2.0f), ov::float16(1.0f),+ 1, 1, 0,+ 1, 2, 1,+ 0, 2, 1,});set_values(input3, {@@ -736,7 +746,7 @@ TEST(scatter_nd_update_gpu_fp16_test12, data3_indice3_update1) {auto& engine = get_test_engine();auto input1 = engine.allocate_memory({ data_types::f16, format::bfyx, { 3, 3, 1, 4 } }); // data 3x3x4 (bfy)- auto input2 = engine.allocate_memory({ data_types::f16, format::bfyx, { 4, 3, 1, 1 } }); // indices+ auto input2 = engine.allocate_memory({ data_types::i32, format::bfyx, { 4, 3, 1, 1 } }); // indicesauto input3 = engine.allocate_memory({ data_types::f16, format::bfyx, { 4, 1, 1, 1 } }); // updatesset_values(input1, {@@ -754,10 +764,10 @@ TEST(scatter_nd_update_gpu_fp16_test12, data3_indice3_update1) {});set_values(input2, {- ov::float16(2.0f), ov::float16(0.0f), ov::float16(0.0f),- ov::float16(1.0f), ov::float16(2.0f), ov::float16(3.0f),- ov::float16(1.0f), ov::float16(1.0f), ov::float16(1.0f),- ov::float16(0.0f), ov::float16(1.0f), ov::float16(0.0f),+ 2, 0, 0,+ 1, 2, 3,+ 1, 1, 1,+ 0, 1, 0,});set_values(input3, {@@ -807,7 +817,7 @@ TEST(scatter_nd_update_gpu_fp16_test11, data6_indice1_update6) {auto& engine = get_test_engine();auto input1 = engine.allocate_memory({ data_types::f16, format::bfwzyx, { 2, 2, 2, 3, 4, 2 } }); // data- auto input2 = engine.allocate_memory({ data_types::f16, format::bfyx, { 1, 1, 1, 1 } }); // indices+ auto input2 = engine.allocate_memory({ data_types::i32, format::bfyx, { 1, 1, 1, 1 } }); // indicesauto input3 = engine.allocate_memory({ data_types::f16, format::bfwzyx, { 1, 2, 2, 3, 4, 2 } }); // updatesset_values(input1, {@@ -850,7 +860,7 @@ TEST(scatter_nd_update_gpu_fp16_test11, data6_indice1_update6) {});set_values(input2, {- ov::float16(1.0f),+ 1,});set_values(input3, {@@ -937,7 +947,7 @@ TEST(scatter_nd_update_gpu_fp16_test10, data5_indice1_update5) {auto& engine = get_test_engine();auto input1 = engine.allocate_memory({ data_types::f16, format::bfzyx, { 2, 2, 3, 4, 2 } }); // data- auto input2 = engine.allocate_memory({ data_types::f16, format::bfyx, { 2, 1, 1, 1 } }); // indices+ auto input2 = engine.allocate_memory({ data_types::i32, format::bfyx, { 2, 1, 1, 1 } }); // indicesauto input3 = engine.allocate_memory({ data_types::f16, format::bfzyx, { 2, 2, 3, 4, 2 } }); // updatesset_values(input1, {@@ -961,7 +971,7 @@ TEST(scatter_nd_update_gpu_fp16_test10, data5_indice1_update5) {});set_values(input2, {- ov::float16(1.0f), ov::float16(0.0f),+ 1, 0,});set_values(input3, {@@ -1033,7 +1043,7 @@ TEST(scatter_nd_update_gpu_fp16_test9, data4_indice1_update4) {auto& engine = get_test_engine();auto input1 = engine.allocate_memory({ data_types::f16, format::bfyx, { 3, 3, 4, 2 } }); // data- auto input2 = engine.allocate_memory({ data_types::f16, format::bfyx, { 2, 1, 1, 1 } }); // indices+ auto input2 = engine.allocate_memory({ data_types::i32, format::bfyx, { 2, 1, 1, 1 } }); // indicesauto input3 = engine.allocate_memory({ data_types::f16, format::bfyx, { 2, 3, 4, 2 } }); // updatesset_values(input1, {@@ -1052,7 +1062,7 @@ TEST(scatter_nd_update_gpu_fp16_test9, data4_indice1_update4) {});set_values(input2, {- ov::float16(2.0f), ov::float16(0.0f),+ 2, 0,});set_values(input3, {@@ -1111,7 +1121,7 @@ TEST(scatter_nd_update_gpu_fp16_test8, data6_indice2_update5) {auto& engine = get_test_engine();auto input1 = engine.allocate_memory({ data_types::f16, format::bfwzyx, { 1, 2, 2, 4, 3, 2 } }); // data- auto input2 = engine.allocate_memory({ data_types::f16, format::bfyx, { 2, 2, 1, 1 } }); // indices+ auto input2 = engine.allocate_memory({ data_types::i32, format::bfyx, { 2, 2, 1, 1 } }); // indicesauto input3 = engine.allocate_memory({ data_types::f16, format::bfwzyx, { 2, 2, 1, 2, 4, 3 } }); // updatesset_values(input1, {@@ -1135,8 +1145,8 @@ TEST(scatter_nd_update_gpu_fp16_test8, data6_indice2_update5) {});set_values(input2, {- ov::float16(0.0f), ov::float16(1.0f),- ov::float16(0.0f), ov::float16(0.0f)+ 0, 1,+ 0, 0,});set_values(input3, {@@ -1209,7 +1219,7 @@ TEST(scatter_nd_update_gpu_fp16_test7, data5_indice2_update4) {auto& engine = get_test_engine();auto input1 = engine.allocate_memory({ data_types::f16, format::bfzyx, { 1, 2, 3, 4, 2 } }); // data- auto input2 = engine.allocate_memory({ data_types::f16, format::bfyx, { 2, 2, 1, 1 } }); // indices+ auto input2 = engine.allocate_memory({ data_types::i32, format::bfyx, { 2, 2, 1, 1 } }); // indicesauto input3 = engine.allocate_memory({ data_types::f16, format::bfzyx, { 2, 2, 1, 3, 4 } }); // updates@@ -1224,8 +1234,8 @@ TEST(scatter_nd_update_gpu_fp16_test7, data5_indice2_update4) {});set_values(input2, {- ov::float16(0.0f), ov::float16(1.0f),- ov::float16(0.0f), ov::float16(0.0f)+ 0, 1,+ 0, 0,});set_values(input3, {@@ -1278,7 +1288,7 @@ TEST(scatter_nd_update_gpu_fp16_test6, data4_indice2_update3) {auto& engine = get_test_engine();auto input1 = engine.allocate_memory({ data_types::f16, format::bfyx, { 2, 3, 2, 4 } }); // data- auto input2 = engine.allocate_memory({ data_types::f16, format::bfyx, { 3, 2, 1, 1 } }); // indices+ auto input2 = engine.allocate_memory({ data_types::i32, format::bfyx, { 3, 2, 1, 1 } }); // indicesauto input3 = engine.allocate_memory({ data_types::f16, format::bfyx, { 3, 4, 1, 2 } }); // updates@@ -1293,9 +1303,9 @@ TEST(scatter_nd_update_gpu_fp16_test6, data4_indice2_update3) {});set_values(input2, {- ov::float16(1.0f), ov::float16(1.0f),- ov::float16(1.0f), ov::float16(0.0f),- ov::float16(0.0f), ov::float16(2.0f)+ 1, 1,+ 1, 0,+ 0, 2,});set_values(input3, {@@ -1343,7 +1353,7 @@ TEST(scatter_nd_update_gpu_fp16_test5, data3_indice2_update2) {auto& engine = get_test_engine();auto input1 = engine.allocate_memory({ data_types::f16, format::bfyx, { 2, 3, 1, 4 } }); // data- auto input2 = engine.allocate_memory({ data_types::f16, format::bfyx, { 3, 2, 1, 1 } }); // indices+ auto input2 = engine.allocate_memory({ data_types::i32, format::bfyx, { 3, 2, 1, 1 } }); // indicesauto input3 = engine.allocate_memory({ data_types::f16, format::bfyx, { 3, 4, 1, 1 } }); // updates@@ -1358,9 +1368,9 @@ TEST(scatter_nd_update_gpu_fp16_test5, data3_indice2_update2) {});set_values(input2, {- ov::float16(1.0f), ov::float16(1.0f),- ov::float16(1.0f), ov::float16(0.0f),- ov::float16(0.0f), ov::float16(2.0f)+ 1, 1,+ 1, 0,+ 0, 2,});set_values(input3, {@@ -1408,7 +1418,7 @@ TEST(scatter_nd_update_gpu_fp16_test4, data2_indice2_update1) {auto& engine = get_test_engine();auto input1 = engine.allocate_memory({ data_types::f16, format::bfyx, { 3, 4, 1, 1 } }); // data- auto input2 = engine.allocate_memory({ data_types::f16, format::bfyx, { 3, 2, 1, 1 } }); // indices+ auto input2 = engine.allocate_memory({ data_types::i32, format::bfyx, { 3, 2, 1, 1 } }); // indicesauto input3 = engine.allocate_memory({ data_types::f16, format::bfyx, { 3, 1, 1, 1 } }); // updates@@ -1419,9 +1429,9 @@ TEST(scatter_nd_update_gpu_fp16_test4, data2_indice2_update1) {});set_values(input2, {- ov::float16(2.0f), ov::float16(1.0f),- ov::float16(0.0f), ov::float16(3.0f),- ov::float16(0.0f), ov::float16(2.0f)+ 2, 1,+ 0, 3,+ 0, 2});set_values(input3, {@@ -1463,7 +1473,7 @@ TEST(scatter_nd_update_gpu_fp16_test3, data3_indice1_update3) {auto& engine = get_test_engine();auto input1 = engine.allocate_memory({ data_types::f16, format::bfyx, { 3, 3, 4, 1 } }); // data- auto input2 = engine.allocate_memory({ data_types::f16, format::bfyx, { 2, 1, 1, 1 } }); // indices+ auto input2 = engine.allocate_memory({ data_types::i32, format::bfyx, { 2, 1, 1, 1 } }); // indicesauto input3 = engine.allocate_memory({ data_types::f16, format::bfyx, { 2, 3, 4, 1 } }); // updates@@ -1482,7 +1492,7 @@ TEST(scatter_nd_update_gpu_fp16_test3, data3_indice1_update3) {});set_values(input2, {- ov::float16(2.0f), ov::float16(0.0f)+ 2, 0,});set_values(input3, {@@ -1539,7 +1549,7 @@ TEST(scatter_nd_update_gpu_fp16_test2, data2_indice1_update2) {auto& engine = get_test_engine();auto input1 = engine.allocate_memory({ data_types::f16, format::bfyx, { 3, 4, 1, 1 } }); // data- auto input2 = engine.allocate_memory({ data_types::f16, format::bfyx, { 2, 1, 1, 1 } }); // indices+ auto input2 = engine.allocate_memory({ data_types::i32, format::bfyx, { 2, 1, 1, 1 } }); // indicesauto input3 = engine.allocate_memory({ data_types::f16, format::bfyx, { 2, 4, 1, 1 } }); // updates@@ -1550,12 +1560,12 @@ TEST(scatter_nd_update_gpu_fp16_test2, data2_indice1_update2) {});set_values(input2, {- ov::float16(2.0f), ov::float16(0.0f)+ 2, 0});set_values(input3, {- ov::float16(20.0f), ov::float16(21.0f), ov::float16(22.0f), ov::float16(23.0f),- ov::float16(24.0f), ov::float16(25.0f), ov::float16(26.0f), ov::float16(27.0f)+ ov::float16(20.0f), ov::float16(21.0f), ov::float16(22.0f), ov::float16(23.0f),+ ov::float16(24.0f), ov::float16(25.0f), ov::float16(26.0f), ov::float16(27.0f)});std::vector<float> expected_results = {@@ -1593,7 +1603,7 @@ TEST(scatter_nd_update_gpu_fp16_test1, data1_indice1_update1) {auto& engine = get_test_engine();auto input1 = engine.allocate_memory({ data_types::f16, format::bfyx, { 8, 1, 1, 1 } }); // Dictionary- auto input2 = engine.allocate_memory({ data_types::f16, format::bfyx, { 4, 1, 1, 1 } }); // Indexes+ auto input2 = engine.allocate_memory({ data_types::i32, format::bfyx, { 4, 1, 1, 1 } }); // Indexesauto input3 = engine.allocate_memory({ data_types::f16, format::bfyx, { 4, 1, 1, 1 } }); // Updates@@ -1602,7 +1612,7 @@ TEST(scatter_nd_update_gpu_fp16_test1, data1_indice1_update1) {});set_values(input2, {- ov::float16(2.0f), ov::float16(4.0f), ov::float16(5.0f), ov::float16(7.0f)+ 2, 4, 5, 7});set_values(input3, {@@ -1651,7 +1661,7 @@ TEST(scatter_nd_update_gpu_fp16, d6661_i2311) {auto& engine = get_test_engine();auto input1 = engine.allocate_memory({ data_types::f16, format::bfyx, { 6, 6, 1, 6 } }); // Dictionary- auto input2 = engine.allocate_memory({ data_types::f16, format::bfyx, { 2, 3, 1, 1 } }); // Indexes+ auto input2 = engine.allocate_memory({ data_types::i32, format::bfyx, { 2, 3, 1, 1 } }); // Indexesauto input3 = engine.allocate_memory({ data_types::f16, format::bfyx, { 2, 1, 1, 1 } }); // Updatesset_values(input1, {@@ -1699,8 +1709,8 @@ TEST(scatter_nd_update_gpu_fp16, d6661_i2311) {});set_values(input2, {- ov::float16(0.0f), ov::float16(1.0f), ov::float16(2.0f),- ov::float16(3.0f), ov::float16(4.0f), ov::float16(5.0f)+ 0, 1, 2,+ 3, 4, 5});set_values(input3, {@@ -1789,7 +1799,7 @@ TEST(scatter_nd_update_gpu_fp16, d6661_i2211) {auto& engine = get_test_engine();auto input1 = engine.allocate_memory({ data_types::f16, format::bfyx, { 6, 6, 1, 6 } }); // Dictionary- auto input2 = engine.allocate_memory({ data_types::f16, format::bfyx, { 2, 2, 1, 1 } }); // Indexes+ auto input2 = engine.allocate_memory({ data_types::i32, format::bfyx, { 2, 2, 1, 1 } }); // Indexesauto input3 = engine.allocate_memory({ data_types::f16, format::bfyx, { 2, 6, 1, 1 } }); // Updates@@ -1838,8 +1848,8 @@ TEST(scatter_nd_update_gpu_fp16, d6661_i2211) {});set_values(input2, {- ov::float16(0.0f), ov::float16(1.0f),- ov::float16(3.0f), ov::float16(4.0f),+ 0, 1,+ 3, 4,});set_values(input3, {@@ -1928,7 +1938,7 @@ TEST(scatter_nd_update_gpu_fp16, d6661_i2111) {auto& engine = get_test_engine();auto input1 = engine.allocate_memory({ data_types::f16, format::bfyx, { 6, 6, 1, 6 } }); // Dictionary- auto input2 = engine.allocate_memory({ data_types::f16, format::bfyx, { 2, 1, 1, 1 } }); // Indexes+ auto input2 = engine.allocate_memory({ data_types::i32, format::bfyx, { 2, 1, 1, 1 } }); // Indexesauto input3 = engine.allocate_memory({ data_types::f16, format::bfyx, { 2, 6, 1, 6 } }); // Updates@@ -1977,8 +1987,7 @@ TEST(scatter_nd_update_gpu_fp16, d6661_i2111) {});set_values(input2, {- ov::float16(0.0f),- ov::float16(3.0f)+ 0, 3});set_values(input3, {@@ -2079,7 +2088,7 @@ TEST(scatter_nd_update_gpu_fp16, d3232_i2411) {auto& engine = get_test_engine();auto input1 = engine.allocate_memory({ data_types::f16, format::bfyx, { 3, 2, 2, 3 } }); // Dictionary- auto input2 = engine.allocate_memory({ data_types::f16, format::bfyx, { 2, 4, 1, 1 } }); // Indexes+ auto input2 = engine.allocate_memory({ data_types::i32, format::bfyx, { 2, 4, 1, 1 } }); // Indexesauto input3 = engine.allocate_memory({ data_types::f16, format::bfyx, { 2, 1, 1, 1 } }); // Updates@@ -2110,8 +2119,8 @@ TEST(scatter_nd_update_gpu_fp16, d3232_i2411) {});set_values(input2, {- ov::float16(0.0f), ov::float16(1.0f), ov::float16(2.0f), ov::float16(1.0f),- ov::float16(2.0f), ov::float16(1.0f), ov::float16(2.0f), ov::float16(1.0f)+ 0, 1, 2, 1,+ 2, 1, 2, 1,});set_values(input3, {@@ -2182,7 +2191,7 @@ TEST(scatter_nd_update_gpu_fp16, d3232_i2311) {auto& engine = get_test_engine();auto input1 = engine.allocate_memory({ data_types::f16, format::bfyx, { 3, 2, 2, 3 } }); // Dictionary- auto input2 = engine.allocate_memory({ data_types::f16, format::bfyx, { 2, 3, 1, 1 } }); // Indexes+ auto input2 = engine.allocate_memory({ data_types::i32, format::bfyx, { 2, 3, 1, 1 } }); // Indexesauto input3 = engine.allocate_memory({ data_types::f16, format::bfyx, { 2, 2, 1, 1 } }); // Updates@@ -2213,8 +2222,8 @@ TEST(scatter_nd_update_gpu_fp16, d3232_i2311) {});set_values(input2, {- ov::float16(0.0f), ov::float16(1.0f), ov::float16(2.0f),- ov::float16(2.0f), ov::float16(1.0f), ov::float16(2.0f)+ 0, 1, 2,+ 2, 1, 2});set_values(input3, {@@ -2285,7 +2294,7 @@ TEST(scatter_nd_update_gpu_fp16, d3232_i2211) {auto& engine = get_test_engine();auto input1 = engine.allocate_memory({ data_types::f16, format::bfyx, { 3, 2, 2, 3 } }); // Dictionary- auto input2 = engine.allocate_memory({ data_types::f16, format::bfyx, { 2, 2, 1, 1 } }); // Indexes+ auto input2 = engine.allocate_memory({ data_types::i32, format::bfyx, { 2, 2, 1, 1 } }); // Indexesauto input3 = engine.allocate_memory({ data_types::f16, format::bfyx, { 2, 3, 1, 2 } }); // Updates@@ -2316,8 +2325,8 @@ TEST(scatter_nd_update_gpu_fp16, d3232_i2211) {});set_values(input2, {- ov::float16(0.0f), ov::float16(1.0f),- ov::float16(2.0f), ov::float16(1.0f)+ 0, 1,+ 2, 1});set_values(input3, {@@ -2394,7 +2403,7 @@ TEST(scatter_nd_update_gpu_fp16, d3232_i2111) {auto& engine = get_test_engine();auto input1 = engine.allocate_memory({ data_types::f16, format::bfyx, { 3, 2, 2, 3 } }); // Dictionary- auto input2 = engine.allocate_memory({ data_types::f16, format::bfyx, { 2, 1, 1, 1 } }); // Indexes+ auto input2 = engine.allocate_memory({ data_types::i32, format::bfyx, { 2, 1, 1, 1 } }); // Indexesauto input3 = engine.allocate_memory({ data_types::f16, format::bfyx, { 2, 2, 2, 3 } }); // Updates@@ -2425,8 +2434,8 @@ TEST(scatter_nd_update_gpu_fp16, d3232_i2111) {});set_values(input2, {- ov::float16(0.0f),- ov::float16(2.0f)+ 0,+ 2});set_values(input3, {@@ -2510,7 +2519,7 @@ TEST(scatter_nd_update_gpu_fp16, d32323_i25111) {auto& engine = get_test_engine();auto input1 = engine.allocate_memory({ data_types::f16, format::bfzyx, { 3, 2, 3, 2, 3 } }); // Dictionary- auto input2 = engine.allocate_memory({ data_types::f16, format::bfzyx, { 2, 5, 1, 1, 1 } }); // Indexes+ auto input2 = engine.allocate_memory({ data_types::i32, format::bfzyx, { 2, 5, 1, 1, 1 } }); // Indexesauto input3 = engine.allocate_memory({ data_types::f16, format::bfzyx, { 2, 1, 1, 1, 1 } }); // Updates@@ -2573,8 +2582,8 @@ TEST(scatter_nd_update_gpu_fp16, d32323_i25111) {});set_values(input2, {- ov::float16(0.0f), ov::float16(1.0f), ov::float16(1.0f), ov::float16(1.0f), ov::float16(2.0f),- ov::float16(2.0f), ov::float16(1.0f), ov::float16(1.0f), ov::float16(1.0f), ov::float16(1.0f)+ 0, 1, 1, 1, 2,+ 2, 1, 1, 1, 1,});set_values(input3, {@@ -2677,7 +2686,7 @@ TEST(scatter_nd_update_gpu_fp16, d32323_i24111) {auto& engine = get_test_engine();auto input1 = engine.allocate_memory({ data_types::f16, format::bfzyx, { 3, 2, 3, 2, 3 } }); // Dictionary- auto input2 = engine.allocate_memory({ data_types::f16, format::bfzyx, { 2, 4, 1, 1, 1 } }); // Indexes+ auto input2 = engine.allocate_memory({ data_types::i32, format::bfzyx, { 2, 4, 1, 1, 1 } }); // Indexesauto input3 = engine.allocate_memory({ data_types::f16, format::bfzyx, { 2, 3, 1, 1, 1 } }); // Updates@@ -2740,8 +2749,8 @@ TEST(scatter_nd_update_gpu_fp16, d32323_i24111) {});set_values(input2, {- ov::float16(0.0f), ov::float16(1.0f), ov::float16(1.0f), ov::float16(1.0f),- ov::float16(2.0f), ov::float16(1.0f), ov::float16(1.0f), ov::float16(1.0f)+ 0, 1, 1, 1,+ 2, 1, 1, 1,});set_values(input3, {@@ -2845,7 +2854,7 @@ TEST(scatter_nd_update_gpu_fp16, d32323_i23111) {auto& engine = get_test_engine();auto input1 = engine.allocate_memory({ data_types::f16, format::bfzyx, { 3, 2, 3, 2, 3 } }); // Dictionary- auto input2 = engine.allocate_memory({ data_types::f16, format::bfzyx, { 2, 3, 1, 1, 1 } }); // Indexes+ auto input2 = engine.allocate_memory({ data_types::i32, format::bfzyx, { 2, 3, 1, 1, 1 } }); // Indexesauto input3 = engine.allocate_memory({ data_types::f16, format::bfzyx, { 2, 2, 1, 1, 3 } }); // Updates@@ -2908,8 +2917,8 @@ TEST(scatter_nd_update_gpu_fp16, d32323_i23111) {});set_values(input2, {- ov::float16(0.0f), ov::float16(1.0f), ov::float16(1.0f),- ov::float16(2.0f), ov::float16(1.0f), ov::float16(1.0f)+ 0, 1, 1,+ 2, 1, 1,});set_values(input3, {@@ -3016,7 +3025,7 @@ TEST(scatter_nd_update_gpu_fp16, d32323_i22111) {auto& engine = get_test_engine();auto input1 = engine.allocate_memory({ data_types::f16, format::bfzyx, { 3, 2, 3, 2, 3 } }); // Dictionary- auto input2 = engine.allocate_memory({ data_types::f16, format::bfzyx, { 2, 2, 1, 1, 1 } }); // Indexes+ auto input2 = engine.allocate_memory({ data_types::i32, format::bfzyx, { 2, 2, 1, 1, 1 } }); // Indexesauto input3 = engine.allocate_memory({ data_types::f16, format::bfzyx, { 2, 3, 1, 3, 2 } }); // Updates@@ -3079,8 +3088,8 @@ TEST(scatter_nd_update_gpu_fp16, d32323_i22111) {});set_values(input2, {- ov::float16(0.0f), ov::float16(1.0f),- ov::float16(2.0f), ov::float16(1.0f)+ 0, 1,+ 2, 1,});set_values(input3, {@@ -3199,7 +3208,7 @@ TEST(scatter_nd_update_gpu_fp16, d32323_i21111) {auto& engine = get_test_engine();auto input1 = engine.allocate_memory({ data_types::f16, format::bfzyx, { 3, 2, 3, 2, 3 } }); // Dictionary- auto input2 = engine.allocate_memory({ data_types::f16, format::bfzyx, { 2, 1, 1, 1, 1 } }); // Indexes+ auto input2 = engine.allocate_memory({ data_types::i32, format::bfzyx, { 2, 1, 1, 1, 1 } }); // Indexesauto input3 = engine.allocate_memory({ data_types::f16, format::bfzyx, { 2, 2, 3, 2, 3 } }); // Updates@@ -3262,8 +3271,7 @@ TEST(scatter_nd_update_gpu_fp16, d32323_i21111) {});set_values(input2, {- ov::float16(0.0f),- ov::float16(2.0f)+ 0, 2,});set_values(input3, {@@ -3401,7 +3409,7 @@ TEST(scatter_nd_update_gpu_fp16, d222222_i261111) {// memory order is bfxyzwauto input1 = engine.allocate_memory({ data_types::f16, format::bfwzyx, { 2, 2, 2, 2, 2, 2 } }); // Dictionary- auto input2 = engine.allocate_memory({ data_types::f16, format::bfwzyx, { 2, 6, 1, 1, 1, 1 } }); // Indexes+ auto input2 = engine.allocate_memory({ data_types::i32, format::bfwzyx, { 2, 6, 1, 1, 1, 1 } }); // Indexesauto input3 = engine.allocate_memory({ data_types::f16, format::bfwzyx, { 2, 1, 1, 1, 1, 1 } }); // Updates@@ -3456,8 +3464,8 @@ TEST(scatter_nd_update_gpu_fp16, d222222_i261111) {});set_values(input2, {- ov::float16(0.0f), ov::float16(1.0f), ov::float16(1.0f), ov::float16(1.0f), ov::float16(1.0f), ov::float16(0.0f),- ov::float16(1.0f), ov::float16(1.0f), ov::float16(1.0f), ov::float16(1.0f), ov::float16(1.0f), ov::float16(0.0f)+ 0, 1, 1, 1, 1, 0,+ 1, 1, 1, 1, 1, 0,});set_values(input3, {@@ -3553,7 +3561,7 @@ TEST(scatter_nd_update_gpu_fp16, d222222_i251111) {// memory order is bfxyzwauto input1 = engine.allocate_memory({ data_types::f16, format::bfwzyx, { 2, 2, 2, 2, 2, 2 } }); // Dictionary- auto input2 = engine.allocate_memory({ data_types::f16, format::bfwzyx, { 2, 5, 1, 1, 1, 1 } }); // Indexes+ auto input2 = engine.allocate_memory({ data_types::i32, format::bfwzyx, { 2, 5, 1, 1, 1, 1 } }); // Indexesauto input3 = engine.allocate_memory({ data_types::f16, format::bfwzyx, { 2, 2, 1, 1, 1, 1 } }); // Updates@@ -3608,8 +3616,8 @@ TEST(scatter_nd_update_gpu_fp16, d222222_i251111) {});set_values(input2, {- ov::float16(0.0f), ov::float16(1.0f), ov::float16(1.0f), ov::float16(1.0f), ov::float16(1.0f),- ov::float16(1.0f), ov::float16(1.0f), ov::float16(1.0f), ov::float16(1.0f), ov::float16(1.0f)+ 0, 1, 1, 1, 1,+ 1, 1, 1, 1, 1,});set_values(input3, {@@ -3706,7 +3714,7 @@ TEST(scatter_nd_update_gpu_fp16, d222222_i241111) {// memory order is bfxyzwauto input1 = engine.allocate_memory({ data_types::f16, format::bfwzyx, { 2, 2, 2, 2, 2, 2 } }); // Dictionary- auto input2 = engine.allocate_memory({ data_types::f16, format::bfwzyx, { 2, 4, 1, 1, 1, 1 } }); // Indexes+ auto input2 = engine.allocate_memory({ data_types::i32, format::bfwzyx, { 2, 4, 1, 1, 1, 1 } }); // Indexesauto input3 = engine.allocate_memory({ data_types::f16, format::bfwzyx, { 2, 2, 1, 1, 1, 2 } }); // Updates@@ -3761,8 +3769,8 @@ TEST(scatter_nd_update_gpu_fp16, d222222_i241111) {});set_values(input2, {- ov::float16(0.0f), ov::float16(1.0f), ov::float16(1.0f), ov::float16(1.0f),- ov::float16(1.0f), ov::float16(1.0f), ov::float16(1.0f), ov::float16(1.0f)+ 0, 1, 1, 1,+ 1, 1, 1, 1,});set_values(input3, {@@ -3863,7 +3871,7 @@ TEST(scatter_nd_update_gpu_fp16, d222222_i231111) {// memory order is bfxyzwauto input1 = engine.allocate_memory({ data_types::f16, format::bfwzyx, { 2, 2, 2, 2, 2, 2 } }); // Dictionary- auto input2 = engine.allocate_memory({ data_types::f16, format::bfwzyx, { 2, 3, 1, 1, 1, 1 } }); // Indexes+ auto input2 = engine.allocate_memory({ data_types::i32, format::bfwzyx, { 2, 3, 1, 1, 1, 1 } }); // Indexesauto input3 = engine.allocate_memory({ data_types::f16, format::bfwzyx, { 2, 2, 1, 1, 2, 2 } }); // Updates@@ -3918,8 +3926,8 @@ TEST(scatter_nd_update_gpu_fp16, d222222_i231111) {});set_values(input2, {- ov::float16(0.0f), ov::float16(1.0f), ov::float16(1.0f),- ov::float16(1.0f), ov::float16(1.0f), ov::float16(1.0f)+ 0, 1, 1,+ 1, 1, 1,});set_values(input3, {@@ -4025,7 +4033,7 @@ TEST(scatter_nd_update_gpu_fp16, d222222_i221111) {// memory order is bfxyzwauto input1 = engine.allocate_memory({ data_types::f16, format::bfwzyx, { 2, 2, 2, 2, 2, 2 } }); // Dictionary- auto input2 = engine.allocate_memory({ data_types::f16, format::bfwzyx, { 2, 2, 1, 1, 1, 1 } }); // Indexes+ auto input2 = engine.allocate_memory({ data_types::i32, format::bfwzyx, { 2, 2, 1, 1, 1, 1 } }); // Indexesauto input3 = engine.allocate_memory({ data_types::f16, format::bfwzyx, { 2, 2, 1, 2, 2, 2 } }); // Updates@@ -4080,8 +4088,8 @@ TEST(scatter_nd_update_gpu_fp16, d222222_i221111) {});set_values(input2, {- ov::float16(0.0f), ov::float16(1.0f),- ov::float16(1.0f), ov::float16(1.0f)+ 0, 1,+ 1, 1,});set_values(input3, {@@ -4199,7 +4207,7 @@ void test_d222222_i211111(bool is_caching_test) {// memory order is bfxyzwauto input1 = engine.allocate_memory({ data_types::f16, format::bfwzyx, { 2, 2, 2, 2, 2, 2 } }); // Dictionary- auto input2 = engine.allocate_memory({ data_types::f16, format::bfwzyx, { 2, 1, 1, 1, 1, 1 } }); // Indexes+ auto input2 = engine.allocate_memory({ data_types::i32, format::bfwzyx, { 2, 1, 1, 1, 1, 1 } }); // Indexesauto input3 = engine.allocate_memory({ data_types::f16, format::bfwzyx, { 2, 2, 2, 2, 2, 2 } }); // Updates@@ -4254,8 +4262,8 @@ void test_d222222_i211111(bool is_caching_test) {});set_values(input2, {- T(0.0f),- T(1.0f)+ 0,+ 1,});set_values(input3, {@@ -4397,11 +4405,11 @@ TEST(scatter_nd_update_gpu, dynamic) {auto& engine = get_test_engine();auto input1_layout = layout{ ov::PartialShape::dynamic(4), data_types::f32, format::bfyx };- auto input2_layout = layout{ ov::PartialShape::dynamic(2), data_types::f32, format::bfyx };+ auto input2_layout = layout{ ov::PartialShape::dynamic(2), data_types::i32, format::bfyx };auto input3_layout = layout{ ov::PartialShape::dynamic(2), data_types::f32, format::bfyx };auto input1 = engine.allocate_memory({ { 2, 1, 2, 8 }, data_types::f32, format::bfyx }); // Dictionary- auto input2 = engine.allocate_memory({ { 2, 3 }, data_types::f32, format::bfyx }); // Indexes+ auto input2 = engine.allocate_memory({ { 2, 3 }, data_types::i32, format::bfyx }); // Indexesauto input3 = engine.allocate_memory({ { 2, 8 }, data_types::f32, format::bfyx }); // Updatesset_values(input1, {@@ -4412,7 +4420,7 @@ TEST(scatter_nd_update_gpu, dynamic) {});set_values(input2, {- 0.f, 1.f, 1.f, 2.f, 2.f, 2.f+ 0, 0, 1, 1, 0, 1});set_values(input3, {@@ -4469,11 +4477,11 @@ TEST(scatter_nd_update_gpu, dynamic_padded_output) {auto& engine = get_test_engine();auto input1_layout = layout{ ov::PartialShape::dynamic(4), data_types::f32, format::bfyx };- auto input2_layout = layout{ ov::PartialShape::dynamic(2), data_types::f32, format::bfyx };+ auto input2_layout = layout{ ov::PartialShape::dynamic(2), data_types::i32, format::bfyx };auto input3_layout = layout{ ov::PartialShape::dynamic(2), data_types::f32, format::bfyx };auto input1 = engine.allocate_memory({ { 1, 1, 2, 8 }, data_types::f32, format::bfyx }); // Dictionary- auto input2 = engine.allocate_memory({ { 0, 3 }, data_types::f32, format::bfyx }); // Indexes+ auto input2 = engine.allocate_memory({ { 0, 3 }, data_types::i32, format::bfyx }); // Indexesauto input3 = engine.allocate_memory({ { 0, 8 }, data_types::f32, format::bfyx }); // Updatesset_values(input1, {@@ -4635,19 +4643,32 @@ TEST(scatter_nd_update_gpu, dynamic_5d) {#ifdef RUN_ALL_MODEL_CACHING_TESTSTEST_P(scatter_nd_update_random_test, random_cached){+ bool cache = true;auto param = GetParam();- if (param.input_type == data_types::u8)- this->execute<uint8_t>(param, true);- else if (param.input_type == data_types::i8)- this->execute<int8_t>(param, true);- else if (param.input_type == data_types::i32)- this->execute<int32_t>(param, true);- else if (param.input_type == data_types::i64)- this->execute<int64_t>(param, true);- else if (param.input_type == data_types::f16)- this->execute_fp16<ov::float16, uint16_t>(param, true);- else if (param.input_type == data_types::f32)- this->execute<float>(param, true);+ if (param.input_type == data_types::u8 && param.indices_type == data_types::i32)+ this->execute<uint8_t, int32_t>(param, cache);+ else if (param.input_type == data_types::u8 && param.indices_type == data_types::i64)+ this->execute<uint8_t, int64_t>(param, cache);+ else if (param.input_type == data_types::i8 && param.indices_type == data_types::i32)+ this->execute<int8_t, int32_t>(param, cache);+ else if (param.input_type == data_types::i8 && param.indices_type == data_types::i64)+ this->execute<int8_t, int64_t>(param, cache);+ else if (param.input_type == data_types::i32 && param.indices_type == data_types::i32)+ this->execute<int32_t, int32_t>(param, cache);+ else if (param.input_type == data_types::i32 && param.indices_type == data_types::i64)+ this->execute<int32_t, int64_t>(param, cache);+ else if (param.input_type == data_types::i64 && param.indices_type == data_types::i32)+ this->execute<int64_t, int32_t>(param, cache);+ else if (param.input_type == data_types::i64 && param.indices_type == data_types::i64)+ this->execute<int64_t, int64_t>(param, cache);+ else if (param.input_type == data_types::f16 && param.indices_type == data_types::i32)+ this->execute_fp16<ov::float16, uint16_t, int32_t>(param, cache);+ else if (param.input_type == data_types::f16 && param.indices_type == data_types::i64)+ this->execute_fp16<ov::float16, uint16_t, int64_t>(param, cache);+ else if (param.input_type == data_types::f32 && param.indices_type == data_types::i32)+ this->execute<float, int32_t>(param, cache);+ else if (param.input_type == data_types::f32 && param.indices_type == data_types::i64)+ this->execute<float, int64_t>(param, cache);elseOPENVINO_THROW("unidentified data type");}