Skip to content

OpenVINO™ is an open source toolkit for optimizing and deploying AI inference

[GPU] Optimize reduce and deconvolution (#25770)

Jade Cho2acca180f6b3
diff --git a/src/plugins/intel_gpu/src/kernel_selector/cl_kernels/deconvolution_gpu_bfyx_opt.cl b/src/plugins/intel_gpu/src/kernel_selector/cl_kernels/deconvolution_gpu_bfyx_opt.cl
index b51cb8ff0b5..99f001b3ebe 100644
--- a/src/plugins/intel_gpu/src/kernel_selector/cl_kernels/deconvolution_gpu_bfyx_opt.cl
+++ b/src/plugins/intel_gpu/src/kernel_selector/cl_kernels/deconvolution_gpu_bfyx_opt.cl
@@ -25,6 +25,23 @@ KERNEL(deconvolution_gpu_bfyx_opt)(
const uint batch_offset = b_f / OUTPUT_FEATURE_NUM;
const uint ofm_offset = b_f % OUTPUT_FEATURE_NUM;
+#if Y_AXIS_1D_FILTER == 1
+ const uint global_y_group = get_group_id(0);
+ const uint global_x_group = get_group_id(1);
+
+ const uint local_y = get_local_id(0);
+ const uint local_x = get_local_id(1);
+
+ const uint stride_y_id = global_y_group % STRIDE_SIZE_Y;
+ const uint stride_x_id = global_x_group % STRIDE_SIZE_X;
+
+ const uint id_y = (global_y_group / STRIDE_SIZE_Y) * STRIDE_SIZE_Y * WORK_GROUP_GROUP_SIZE + local_y * STRIDE_SIZE_Y + stride_y_id;
+
+ if (id_y >= OUTPUT_SIZE_Y)
+ return;
+
+ const uint id_x = (global_x_group / STRIDE_SIZE_X) * STRIDE_SIZE_X + local_x * STRIDE_SIZE_X + stride_x_id;
+#else // Y_AXIS_1D_FILTER == 1
const uint global_x_group = get_group_id(0);
const uint global_y_group = get_group_id(1);
@@ -40,6 +57,8 @@ KERNEL(deconvolution_gpu_bfyx_opt)(
return;
const uint id_y = (global_y_group / STRIDE_SIZE_Y) * STRIDE_SIZE_Y + local_y * STRIDE_SIZE_Y + stride_y_id;
+#endif // Y_AXIS_1D_FILTER == 1
+
const int in_x = (int)id_x + PADDING_SIZE_X - (FILTER_SIZE_X - 1);
const int in_y = (int)id_y + PADDING_SIZE_Y - (FILTER_SIZE_Y - 1);
@@ -60,6 +79,21 @@ KERNEL(deconvolution_gpu_bfyx_opt)(
const uint input_offset = INPUT0_OFFSET + batch_offset*INPUT0_BATCH_PITCH + in_split_offset;
+#if Y_AXIS_1D_FILTER == 1
+ for (uint i = start_x; i < FILTER_SIZE_X; i+=STRIDE_SIZE_X)
+ {
+ const int input_offset_x = in_x + i;
+ const bool zero_x = (input_offset_x >= INPUT0_SIZE_X * STRIDE_SIZE_X) || (input_offset_x < 0);
+
+ if(!zero_x)
+ {
+ for (uint j = start_y; j < FILTER_SIZE_Y; j+=STRIDE_SIZE_Y)
+ {
+ const int input_offset_y = in_y + j;
+ const bool zero_y = (input_offset_y >= INPUT0_SIZE_Y * STRIDE_SIZE_Y) || (input_offset_y < 0);
+
+ if(!zero_y)
+#else // Y_AXIS_1D_FILTER == 1
for (uint i = start_y; i < FILTER_SIZE_Y; i+=STRIDE_SIZE_Y)
{
const int input_offset_y = in_y + i;
@@ -73,6 +107,7 @@ KERNEL(deconvolution_gpu_bfyx_opt)(
const bool zero_x = (input_offset_x >= INPUT0_SIZE_X * STRIDE_SIZE_X) || (input_offset_x < 0);
if(!zero_x)
+#endif // Y_AXIS_1D_FILTER == 1
{
uint fixed_input_offset_x = (uint)input_offset_x / STRIDE_SIZE_X;
uint fixed_input_offset_y = (uint)input_offset_y / STRIDE_SIZE_Y;
diff --git a/src/plugins/intel_gpu/src/kernel_selector/cl_kernels/reduce_simple_to_scalar.cl b/src/plugins/intel_gpu/src/kernel_selector/cl_kernels/reduce_simple_to_scalar.cl
new file mode 100644
index 00000000000..fc1b7007ee8
--- /dev/null
+++ b/src/plugins/intel_gpu/src/kernel_selector/cl_kernels/reduce_simple_to_scalar.cl
@@ -0,0 +1,73 @@
+// Copyright (C) 2024 Intel Corporation
+// SPDX-License-Identifier: Apache-2.0
+//
+
+#include "include/batch_headers/fetch_data.cl"
+
+KERNEL(reduce_simple_to_scalar)(
+ OPTIONAL_SHAPE_INFO_ARG
+ const __global INPUT0_TYPE* data,
+ __global OUTPUT_TYPE* output
+#if HAS_FUSED_OPS_DECLS
+ , FUSED_OPS_DECLS
+#endif
+)
+{
+ __local ACCUMULATOR_TYPE buffer[NUM_BLOCKS];
+
+ const uint bi = (uint)get_global_id(0);
+
+ ACCUMULATOR_TYPE acc = data[bi];
+
+ for (uint i = bi + BLOCK_STRIDE; i < TOTAL_NUM_ELEMENTS; i += BLOCK_STRIDE) {
+#ifdef REDUCE_SUM_MODE
+ acc += data[i];
+#elif REDUCE_MEAN_MODE
+ acc += data[i];
+#elif REDUCE_MAX_MODE
+ acc = data[i] > acc ? data[i] : acc;
+#elif REDUCE_MIN_MODE
+ acc = data[i] < acc ? data[i] : acc;
+#elif REDUCE_PROD_MODE
+ acc *= data[i];
+#endif
+ }
+
+ buffer[bi] = acc;
+
+ barrier(CLK_LOCAL_MEM_FENCE);
+
+ if (bi != 0)
+ return;
+
+ acc = buffer[0];
+
+ for (uint i = 1; i < NUM_BLOCKS; i++) {
+#ifdef REDUCE_SUM_MODE
+ acc += buffer[i];
+#elif REDUCE_MEAN_MODE
+ acc += buffer[i];
+#elif REDUCE_MAX_MODE
+ acc = buffer[i] > acc ? buffer[i] : acc;
+#elif REDUCE_MIN_MODE
+ acc = buffer[i] < acc ? buffer[i] : acc;
+#elif REDUCE_PROD_MODE
+ acc *= buffer[i];
+#endif
+ }
+
+ FINAL_ACCUMULATOR_TYPE final_acc = TO_FINAL_ACCUMULATOR_TYPE(acc);
+ #if REDUCE_MEAN_MODE
+ final_acc /= TOTAL_NUM_ELEMENTS;
+ #endif
+
+ OUTPUT_TYPE final_result;
+ ACTIVATION_TYPE reduce_result = TO_ACTIVATION_TYPE(final_acc);
+#if HAS_FUSED_OPS
+ FUSED_OPS;
+ final_result = FUSED_OPS_RESULT;
+#else
+ final_result = TO_OUTPUT_TYPE(ACTIVATION(reduce_result, ACTIVATION_PARAMS));
+#endif
+ output[0] = final_result;
+}
diff --git a/src/plugins/intel_gpu/src/kernel_selector/kernels/deconvolution/deconvolution_kernel_bfyx_opt.cpp b/src/plugins/intel_gpu/src/kernel_selector/kernels/deconvolution/deconvolution_kernel_bfyx_opt.cpp
index fa03e85e5a4..716cb0d2131 100644
--- a/src/plugins/intel_gpu/src/kernel_selector/kernels/deconvolution/deconvolution_kernel_bfyx_opt.cpp
+++ b/src/plugins/intel_gpu/src/kernel_selector/kernels/deconvolution/deconvolution_kernel_bfyx_opt.cpp
@@ -34,14 +34,21 @@ CommonDispatchData DeconvolutionKernel_bfyx_opt::SetDefault(const deconvolution_
auto wg_size = 16;
- dispatchData.gws[0] = Align(params.outputs[0].X().v, wg_size * params.stride.x);
- dispatchData.gws[1] = params.outputs[0].Y().v;
- dispatchData.gws[2] = params.outputs[0].Batch().v * params.outputs[0].Feature().v;
+ if (params.inputs[0].X().v == 1 && params.outputs[0].X().v == 1 && params.filterSize.x == 1) {
+ dispatchData.gws[0] = Align(params.outputs[0].Y().v, wg_size * params.stride.y);
+ dispatchData.gws[1] = params.outputs[0].X().v;
+ dispatchData.gws[2] = params.outputs[0].Batch().v * params.outputs[0].Feature().v;
+ } else {
+ dispatchData.gws[0] = Align(params.outputs[0].X().v, wg_size * params.stride.x);
+ dispatchData.gws[1] = params.outputs[0].Y().v;
+ dispatchData.gws[2] = params.outputs[0].Batch().v * params.outputs[0].Feature().v;
+ }
dispatchData.lws[0] = wg_size;
dispatchData.lws[1] = 1;
dispatchData.lws[2] = 1;
+
return dispatchData;
}
@@ -64,6 +71,11 @@ JitConstants DeconvolutionKernel_bfyx_opt::GetJitConstants(const deconvolution_p
BoundaryCheck::DISABLED };
jit.Merge(MakeFusedOpsJitConstants(params, { conf }));
}
+
+ if (params.inputs[0].X().v == 1 && params.outputs[0].X().v == 1 && params.filterSize.x == 1) {
+ jit.AddConstant(MakeJitConstant("Y_AXIS_1D_FILTER", 1));
+ }
+
return jit;
}
diff --git a/src/plugins/intel_gpu/src/kernel_selector/kernels/reduce/reduce_kernel_selector.cpp b/src/plugins/intel_gpu/src/kernel_selector/kernels/reduce/reduce_kernel_selector.cpp
index 5bc3c8842d6..a6ea0718b2f 100644
--- a/src/plugins/intel_gpu/src/kernel_selector/kernels/reduce/reduce_kernel_selector.cpp
+++ b/src/plugins/intel_gpu/src/kernel_selector/kernels/reduce/reduce_kernel_selector.cpp
@@ -5,12 +5,14 @@
#include "reduce_kernel_selector.h"
#include "reduce_kernel_ref.h"
#include "reduce_kernel_b_fs_yx_fsv16.h"
+#include "reduce_kernel_simple_to_scalar.h"
namespace kernel_selector {
reduce_kernel_selector::reduce_kernel_selector() {
Attach<ReduceKernelRef>();
Attach<ReduceKernel_b_fs_yx_fsv16>();
+ Attach<ReduceKernelSimpleToScalar>();
}
KernelsData reduce_kernel_selector::GetBestKernels(const Params& params) const {
diff --git a/src/plugins/intel_gpu/src/kernel_selector/kernels/reduce/reduce_kernel_simple_to_scalar.cpp b/src/plugins/intel_gpu/src/kernel_selector/kernels/reduce/reduce_kernel_simple_to_scalar.cpp
new file mode 100644
index 00000000000..8bdcfe0fc7c
--- /dev/null
+++ b/src/plugins/intel_gpu/src/kernel_selector/kernels/reduce/reduce_kernel_simple_to_scalar.cpp
@@ -0,0 +1,157 @@
+// Copyright (C) 2018-2024 Intel Corporation
+// SPDX-License-Identifier: Apache-2.0
+//
+
+#include "reduce_kernel_simple_to_scalar.h"
+#include "kernel_selector_utils.h"
+#include <vector>
+#include <string>
+#include "common_tools.h"
+
+namespace kernel_selector {
+ParamsKey ReduceKernelSimpleToScalar::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.EnableInputLayout(DataLayout::bfyx);
+ k.EnableInputLayout(DataLayout::yxfb);
+ k.EnableInputLayout(DataLayout::byxf);
+ k.EnableInputLayout(DataLayout::byfx);
+ k.EnableInputLayout(DataLayout::bxfy);
+ k.EnableInputLayout(DataLayout::fbyx);
+ k.EnableInputLayout(DataLayout::fyxb);
+ k.EnableInputLayout(DataLayout::bfxy);
+ k.EnableInputLayout(DataLayout::bfzyx);
+ k.EnableInputLayout(DataLayout::bzyxf);
+ k.EnableInputLayout(DataLayout::bfwzyx);
+ k.EnableInputLayout(DataLayout::bfuwzyx);
+ k.EnableInputLayout(DataLayout::bfvuwzyx);
+ k.EnableOutputLayout(DataLayout::bfyx);
+ k.EnableOutputLayout(DataLayout::yxfb);
+ k.EnableOutputLayout(DataLayout::byxf);
+ k.EnableOutputLayout(DataLayout::byfx);
+ k.EnableOutputLayout(DataLayout::bxfy);
+ k.EnableOutputLayout(DataLayout::fbyx);
+ k.EnableOutputLayout(DataLayout::fyxb);
+ k.EnableOutputLayout(DataLayout::bfxy);
+ k.EnableOutputLayout(DataLayout::bfzyx);
+ k.EnableOutputLayout(DataLayout::bzyxf);
+ k.EnableOutputLayout(DataLayout::bfwzyx);
+ k.EnableOutputLayout(DataLayout::bfuwzyx);
+ k.EnableOutputLayout(DataLayout::bfvuwzyx);
+
+ k.EnableBatching();
+ k.EnableDifferentTypes();
+
+ return k;
+}
+
+bool ReduceKernelSimpleToScalar::Validate(const Params& p) const {
+ const reduce_params& params = static_cast<const reduce_params&>(p);
+
+ if (params.inputs.size() != 1 || params.outputs.size() != 1)
+ return false;
+
+ if (!params.inputs[0].SimpleLayout() || !params.outputs[0].SimpleLayout())
+ return false;
+
+ if (params.inputs[0].LogicalSize() < params.engineInfo.maxWorkGroupSize)
+ return false;
+
+ if (params.outputs[0].LogicalSize() != 1)
+ return false;
+
+ std::set<ReduceMode> supported_modes = {
+ ReduceMode::SUM,
+ ReduceMode::PROD,
+ ReduceMode::MIN,
+ ReduceMode::MAX,
+ ReduceMode::MEAN,
+ };
+
+ if (supported_modes.find(params.reduceMode) == supported_modes.end())
+ return false;
+
+ auto& in_dims = params.inputs[0].GetDims();
+ auto& out_dims = params.outputs[0].GetDims();
+ auto has_padding = std::count_if(in_dims.cbegin(), in_dims.cend(),
+ [](Tensor::Dim d) { return d.pad.before > 0 || d.pad.after > 0; }) > 0;
+ has_padding |= std::count_if(out_dims.cbegin(), out_dims.cend(),
+ [](Tensor::Dim d) {
+ return d.pad.before > 0 || d.pad.after > 0;
+ }) > 0;
+
+ if (has_padding)
+ return false;
+
+ return true;
+}
+
+CommonDispatchData ReduceKernelSimpleToScalar::SetDefault(const reduce_params& params) const {
+ CommonDispatchData dispatchData;
+ std::vector<std::vector<Tensor::DataChannelName>> dims_by_gws = {{ Tensor::DataChannelName::X, Tensor::DataChannelName::Y },
+ { Tensor::DataChannelName::Z, Tensor::DataChannelName::W,
+ Tensor::DataChannelName::U, Tensor::DataChannelName::V },
+ { Tensor::DataChannelName::FEATURE, Tensor::DataChannelName::BATCH }};
+
+ dispatchData.gws = {params.engineInfo.maxWorkGroupSize, 1, 1};
+ dispatchData.lws = dispatchData.gws;
+ return dispatchData;
+}
+
+JitConstants ReduceKernelSimpleToScalar::GetJitConstants(const reduce_params& params) const {
+ auto jit = ReduceKernelBase::GetJitConstants(params);
+
+ jit.Merge(MakeTypeJitConstants(GetActivationType(params), "ACTIVATION"));
+ jit.Merge(MakeTypeJitConstants(GetAccumulatorType(params), "ACCUMULATOR"));
+ jit.Merge(MakeTypeJitConstants(GetFinalAccumulatorType(params), "FINAL_ACCUMULATOR"));
+
+ if (!params.fused_ops.empty()) {
+ auto input_dt = GetActivationType(params);
+
+ std::vector<std::string> idx_order;
+ switch (DataTensor::ChannelsCount(params.inputs[0].GetLayout())) {
+ case 8: idx_order = {"b", "f", "v", "u", "w", "z", "y", "x" }; break;
+ case 7: idx_order = {"b", "f", "u", "w", "z", "y", "x" }; break;
+ case 6: idx_order = {"b", "f", "w", "z", "y", "x" }; break;
+ case 5: idx_order = {"b", "f", "z", "y", "x" }; break;
+ default: idx_order = {"b", "f", "y", "x" }; break;
+ }
+
+ FusedOpsConfiguration conf = {"",
+ idx_order,
+ "reduce_result",
+ input_dt,
+ 1,
+ LoadType::LT_UNALIGNED,
+ BoundaryCheck::DISABLED,
+ IndexType::TENSOR_COORD,
+ Tensor::DataChannelName::X};
+
+ jit.Merge(MakeFusedOpsJitConstants(params, {conf}));
+ }
+
+ jit.AddConstant(MakeJitConstant("NUM_BLOCKS", params.engineInfo.maxWorkGroupSize));
+ jit.AddConstant(MakeJitConstant("BLOCK_STRIDE", params.engineInfo.maxWorkGroupSize));
+ jit.AddConstant(MakeJitConstant("TOTAL_NUM_ELEMENTS", params.inputs[0].LogicalSize()));
+
+ return jit;
+}
+
+KernelsData ReduceKernelSimpleToScalar::GetKernelsData(const Params& params) const {
+ return GetCommonKernelsData(params);
+}
+
+KernelsPriority ReduceKernelSimpleToScalar::GetKernelsPriority(const Params& /*params*/) const {
+ return FORCE_PRIORITY_9;
+}
+} // namespace kernel_selector
diff --git a/src/plugins/intel_gpu/src/kernel_selector/kernels/reduce/reduce_kernel_simple_to_scalar.h b/src/plugins/intel_gpu/src/kernel_selector/kernels/reduce/reduce_kernel_simple_to_scalar.h
new file mode 100644
index 00000000000..31ebd9af8c2
--- /dev/null
+++ b/src/plugins/intel_gpu/src/kernel_selector/kernels/reduce/reduce_kernel_simple_to_scalar.h
@@ -0,0 +1,27 @@
+// Copyright (C) 2018-2024 Intel Corporation
+// SPDX-License-Identifier: Apache-2.0
+//
+
+#pragma once
+
+#include "reduce_kernel_base.h"
+#include <vector>
+
+namespace kernel_selector {
+class ReduceKernelSimpleToScalar : public ReduceKernelBase {
+public:
+ ReduceKernelSimpleToScalar() : ReduceKernelBase("reduce_simple_to_scalar") {}
+ virtual ~ReduceKernelSimpleToScalar() {}
+ CommonDispatchData SetDefault(const reduce_params& params) const override;
+ KernelsData GetKernelsData(const Params& params) const override;
+ KernelsPriority GetKernelsPriority(const Params& params) const override;
+ ParamsKey GetSupportedKey() const override;
+ bool Validate(const Params& p) const override;
+ JitConstants GetJitConstants(const reduce_params& params) const override;
+ std::vector<FusedOpType> GetSupportedFusedOps() const override {
+ return { FusedOpType::QUANTIZE,
+ FusedOpType::ELTWISE,
+ FusedOpType::ACTIVATION };
+ }
+};
+} // namespace kernel_selector
diff --git a/src/plugins/intel_gpu/tests/unit/fusions/deconvolution_fusion_test.cpp b/src/plugins/intel_gpu/tests/unit/fusions/deconvolution_fusion_test.cpp
index d315f414586..71ba6d07032 100644
--- a/src/plugins/intel_gpu/tests/unit/fusions/deconvolution_fusion_test.cpp
+++ b/src/plugins/intel_gpu/tests/unit/fusions/deconvolution_fusion_test.cpp
@@ -155,6 +155,8 @@ public:
#define CASE_DECONV_FP16_6 { 1, 16, 4, 5 }, { 1, 32, 9, 11 }, { 1, 1, 3, 3 }, { 2, 2 }, { 0, 0 }, { 1, 1 }, 1, data_types::f16, format::b_fs_yx_fsv16, data_types::f16, format::is_os_yx_isv16_osv16, data_types::f16, format::bfyx
#define CASE_DECONV_FP16_7 { 1, 16, 4, 5 }, { 1, 32, 7, 9 }, { 1, 1, 1, 1 }, { 2, 2 }, { 0, 0 }, { 1, 1 }, 1, data_types::f16, format::b_fs_yx_fsv16, data_types::f16, format::is_os_yx_isv16_osv16, data_types::f16, format::bfyx
#define CASE_DECONV_FP16_8 { 1, 32, 4, 5 }, { 1, 32, 7, 9 }, { 1, 1, 3, 3 }, { 2, 2 }, { 1, 1 }, { 1, 1 }, 32, data_types::f16, format::b_fs_yx_fsv16, data_types::f16, format::gs_oiyx_gsv16, data_types::f16, format::bfyx
+// 1D deconv when the size of x axis is 1
+#define CASE_DECONV_FP16_9 { 1, 768, 1, 302 }, { 1, 384, 1, 1212 }, { 1, 1, 1, 8 }, { 4, 1 }, { 0, 0 }, { 1, 1 }, 1, data_types::f16, format::bfyx, data_types::f16, format::oiyx, data_types::f16, format::bfyx
#define CASE_DECONV_S8S8_1 { 1, 15, 4, 5 }, { 1, 30, 6, 7 }, { 1, 1, 3, 3 }, { 1, 1 }, { 0, 0 }, { 1, 1 }, 1, data_types::i8, format::bfyx, data_types::i8, format::oiyx, data_types::f32, format::bfyx
#define CASE_DECONV_S8S8_2 { 1, 16, 4, 5 }, { 1, 32, 6, 7 }, { 1, 1, 3, 3 }, { 1, 1 }, { 0, 0 }, { 1, 1 }, 1, data_types::i8, format::b_fs_yx_fsv16, data_types::i8, format::oiyx, data_types::f32, format::bfyx
@@ -270,6 +272,7 @@ INSTANTIATE_TEST_SUITE_P(fusings_gpu, deconv_actv, ::testing::ValuesIn(std::vect
deconv_test_params{ CASE_DECONV_FP16_6, 2, 2, 3 },
deconv_test_params{ CASE_DECONV_FP16_7, 2, 2, 3 },
deconv_test_params{ CASE_DECONV_FP16_8, 2, 2, 3 },
+ deconv_test_params{ CASE_DECONV_FP16_9, 2, 2, 3 },
deconv_test_params{ CASE_DECONV_U8S8_1, 2, 2, 3 },
deconv_test_params{ CASE_DECONV_U8S8_2, 2, 2, 3 },
diff --git a/src/plugins/intel_gpu/tests/unit/test_cases/reduce_gpu_test.cpp b/src/plugins/intel_gpu/tests/unit/test_cases/reduce_gpu_test.cpp
index d0c3dcca089..9707b0319e0 100644
--- a/src/plugins/intel_gpu/tests/unit/test_cases/reduce_gpu_test.cpp
+++ b/src/plugins/intel_gpu/tests/unit/test_cases/reduce_gpu_test.cpp
@@ -2202,3 +2202,17 @@ TEST_P(general_reduce_gpu_xy_i8, base_cached) { execute(true); }
TEST(reduce_gpu, common_bfyx_cached) {
test_common_bfyx<float>(true);
}
+
+class reduce_scalar_output_f16_f16 : public ReduceTestBase<data_types::f16, data_types::f16> {};
+TEST_P(reduce_scalar_output_f16_f16, base) { execute(false); }
+
+INSTANTIATE_TEST_SUITE_P(reduce_scalar_output_f16_f16,
+ reduce_scalar_output_f16_f16,
+ ::testing::Values(
+ TestParamType_general_reduce_gpu(1, 1, 1, 1, 1013, 2, format::bfyx, reduce_mode::sum, {3, 2, 1, 0}, "reduce_simple_to_scalar", false, data_types::f16, false, data_types::f16),
+ TestParamType_general_reduce_gpu(1, 1, 1, 1, 1013, 2, format::bfyx, reduce_mode::min, {3, 2, 1, 0}, "reduce_simple_to_scalar", false, data_types::f16, false, data_types::f16),
+ TestParamType_general_reduce_gpu(1, 1, 1, 1, 1013, 2, format::bfyx, reduce_mode::mean, {3, 2, 1, 0}, "reduce_simple_to_scalar", false, data_types::f16, false, data_types::f16),
+ TestParamType_general_reduce_gpu(1, 1, 1, 1, 1013, 2, format::bfyx, reduce_mode::max, {3, 2, 1, 0}, "reduce_simple_to_scalar", false, data_types::f16, false, data_types::f16),
+ TestParamType_general_reduce_gpu(1, 1, 1, 1, 1024, 1, format::bfyx, reduce_mode::min, {3, 2, 1, 0}, "reduce_simple_to_scalar", false, data_types::f16, false, data_types::f16),
+ TestParamType_general_reduce_gpu(1, 1, 1, 1, 1025, 1, format::bfyx, reduce_mode::min, {3, 2, 1, 0}, "reduce_simple_to_scalar", false, data_types::f16, false, data_types::f16)
+ ), general_reduce_gpu::PrintToStringParamName);