From 9f73bf19ca594dbe52086294fad5492dbd0fbdd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tadej=20Ciglari=C4=8D?= Date: Thu, 17 Oct 2024 08:41:56 +0200 Subject: [PATCH] generic: sycl: resampling: fix checks --- src/gpu/generic/sycl/ref_resampling.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gpu/generic/sycl/ref_resampling.hpp b/src/gpu/generic/sycl/ref_resampling.hpp index a51ad1602ba..cc5a7c86605 100644 --- a/src/gpu/generic/sycl/ref_resampling.hpp +++ b/src/gpu/generic/sycl/ref_resampling.hpp @@ -88,10 +88,10 @@ struct ref_resampling_bwd_t : public gpu::generic::sycl::primitive_t { const memory_desc_wrapper diff_dst_d(diff_dst_md(0)); const memory_desc_wrapper diff_src_d(diff_src_md(0)); - bool ok = !is_fwd() && is_supported_type(src_md(0)->data_type) - && is_supported_type(dst_md(0)->data_type) + bool ok = !is_fwd() && is_supported_type(diff_src_md(0)->data_type) + && is_supported_type(diff_dst_md(0)->data_type) && set_default_params() == status::success - && (src_md(0)->format_desc.blocking.inner_nblks == 0) + && (diff_src_md(0)->format_desc.blocking.inner_nblks == 0) && (diff_dst_md(0)->format_desc.blocking.inner_nblks == 0) && attr()->has_default_values() && md_dims_in_range(diff_dst_md());