Skip to content

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

[GPU] fix tests SpaceToDepthBS3 (#29892)

Michal Miotk50a1f38cebbb
diff --git a/src/plugins/intel_gpu/src/graph/impls/ocl/space_to_depth.cpp b/src/plugins/intel_gpu/src/graph/impls/ocl/space_to_depth.cpp
index b2ce589dc77..f16aaeddd74 100644
--- a/src/plugins/intel_gpu/src/graph/impls/ocl/space_to_depth.cpp
+++ b/src/plugins/intel_gpu/src/graph/impls/ocl/space_to_depth.cpp
@@ -44,10 +44,12 @@ attach_space_to_depth_impl::attach_space_to_depth_impl() {
std::make_tuple(data_types::f16, format::bfzyx),
std::make_tuple(data_types::u8, format::bfzyx),
std::make_tuple(data_types::i8, format::bfzyx),
+ std::make_tuple(data_types::i32, format::bfzyx),
std::make_tuple(data_types::f32, format::bfyx),
std::make_tuple(data_types::f16, format::bfyx),
std::make_tuple(data_types::u8, format::bfyx),
std::make_tuple(data_types::i8, format::bfyx),
+ std::make_tuple(data_types::i32, format::bfyx),
std::make_tuple(data_types::f32, format::b_fs_yx_fsv16),
std::make_tuple(data_types::f16, format::b_fs_yx_fsv16),
std::make_tuple(data_types::u8, format::b_fs_yx_fsv16),
diff --git a/src/plugins/intel_gpu/src/graph/impls/onednn/reorder_onednn.hpp b/src/plugins/intel_gpu/src/graph/impls/onednn/reorder_onednn.hpp
index daa5b7de1fa..7ed80ffa0ca 100644
--- a/src/plugins/intel_gpu/src/graph/impls/onednn/reorder_onednn.hpp
+++ b/src/plugins/intel_gpu/src/graph/impls/onednn/reorder_onednn.hpp
@@ -76,7 +76,8 @@ struct ReorderImplementationManager : public ImplementationManager {
if (input_fmt.dimension() != output_fmt.dimension())
return false;
- if (in_dt == data_types::i64 || out_dt == data_types::i64)
+ if (in_dt == data_types::u16 || in_dt == data_types::u32 || in_dt == data_types::i16 || in_dt == data_types::i64 || out_dt == data_types::u16
+ || out_dt == data_types::u32 || out_dt == data_types::i16 || out_dt == data_types::i64)
return false;
// For mixed precision case, oneDNN is slower than clDNN
diff --git a/src/plugins/intel_gpu/src/kernel_selector/kernels/space_to_depth/space_to_depth_kernel_ref.cpp b/src/plugins/intel_gpu/src/kernel_selector/kernels/space_to_depth/space_to_depth_kernel_ref.cpp
index 144be077e9a..a126f8819ed 100644
--- a/src/plugins/intel_gpu/src/kernel_selector/kernels/space_to_depth/space_to_depth_kernel_ref.cpp
+++ b/src/plugins/intel_gpu/src/kernel_selector/kernels/space_to_depth/space_to_depth_kernel_ref.cpp
@@ -11,10 +11,12 @@ namespace kernel_selector {
ParamsKey SpaceToDepthKernelRef::GetSupportedKey() const {
ParamsKey k;
k.EnableInputDataType(Datatype::INT8);
+ k.EnableInputDataType(Datatype::INT32);
k.EnableInputDataType(Datatype::UINT8);
k.EnableInputDataType(Datatype::F16);
k.EnableInputDataType(Datatype::F32);
k.EnableOutputDataType(Datatype::INT8);
+ k.EnableOutputDataType(Datatype::INT32);
k.EnableOutputDataType(Datatype::UINT8);
k.EnableOutputDataType(Datatype::F16);
k.EnableOutputDataType(Datatype::F32);