From e9a208501bffe1c5885acab310d506a545c6ba3e Mon Sep 17 00:00:00 2001 From: Mingyu Kim Date: Fri, 3 Feb 2023 09:52:40 +0900 Subject: [PATCH] [GPU] Add layout supports for shuffle_channels (#15400) * [GPU] Add layout supports for shuffle_channels --- .../src/graph/impls/ocl/shuffle_channels.cpp | 36 ++++++++----------- 1 file changed, 15 insertions(+), 21 deletions(-) diff --git a/src/plugins/intel_gpu/src/graph/impls/ocl/shuffle_channels.cpp b/src/plugins/intel_gpu/src/graph/impls/ocl/shuffle_channels.cpp index 7c796a3b7fa..64767a0f090 100644 --- a/src/plugins/intel_gpu/src/graph/impls/ocl/shuffle_channels.cpp +++ b/src/plugins/intel_gpu/src/graph/impls/ocl/shuffle_channels.cpp @@ -48,28 +48,22 @@ struct shuffle_channels_impl : typed_primitive_impl_ocl { namespace detail { attach_shuffle_channels_impl::attach_shuffle_channels_impl() { - implementation_map::add(impl_types::ocl, typed_primitive_impl_ocl::create, { - 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::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), - std::make_tuple(data_types::i8, format::b_fs_yx_fsv16), - std::make_tuple(data_types::f32, format::b_fs_yx_fsv4), - std::make_tuple(data_types::f16, format::b_fs_yx_fsv4), - std::make_tuple(data_types::u8, format::b_fs_yx_fsv4), - std::make_tuple(data_types::i8, format::b_fs_yx_fsv4), - std::make_tuple(data_types::f32, format::bs_fs_yx_bsv16_fsv16), - std::make_tuple(data_types::f16, format::bs_fs_yx_bsv16_fsv16), - std::make_tuple(data_types::u8, format::bs_fs_yx_bsv16_fsv16), - std::make_tuple(data_types::i8, format::bs_fs_yx_bsv16_fsv16), - std::make_tuple(data_types::f32, format::fs_b_yx_fsv32), - std::make_tuple(data_types::f16, format::fs_b_yx_fsv32), - }); -} + auto types = + {data_types::f16, data_types::f32, 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::fs_b_yx_fsv32, + format::bs_fs_yx_bsv16_fsv32, + format::bs_fs_yx_bsv16_fsv16, + format::bs_fs_yx_bsv32_fsv32, + format::bs_fs_yx_bsv32_fsv16, + }; + implementation_map::add(impl_types::ocl, typed_primitive_impl_ocl::create, types, formats); +} } // namespace detail } // namespace ocl } // namespace cldnn