File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/plugins/intel_gpu/src/graph/impls/onednn Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -57,8 +57,8 @@ struct reduction_onednn : typed_primitive_onednn_impl<reduce> {
57
57
// oneDNN reduction does not allow this. So this function reverts it.
58
58
reorder_unreduced_axis_no_fusion (input_layout, output_layout, prim->axes );
59
59
60
- auto input_md = onednn::layout_to_memory_desc (input_layout);
61
- auto output_md = onednn::layout_to_memory_desc (output_layout);
60
+ auto input_md = onednn::layout_to_memory_desc (input_layout, dnnl::memory::format_tag::undef, mem_flags::need_blocked );
61
+ auto output_md = onednn::layout_to_memory_desc (output_layout, dnnl::memory::format_tag::undef, mem_flags::need_blocked );
62
62
63
63
float p = 0 .f ;
64
64
float eps = 0 .f ;
@@ -122,8 +122,8 @@ struct reduction_onednn : typed_primitive_onednn_impl<reduce> {
122
122
dnnl::algorithm alg;
123
123
ib >> make_data (&alg, sizeof (dnnl::algorithm));
124
124
125
- auto input_md = onednn::layout_to_memory_desc (impl_params->get_input_layout (0 ));
126
- auto output_md = onednn::layout_to_memory_desc (impl_params->get_output_layout ());
125
+ auto input_md = onednn::layout_to_memory_desc (impl_params->get_input_layout (0 ), dnnl::memory::format_tag::undef, mem_flags::need_blocked );
126
+ auto output_md = onednn::layout_to_memory_desc (impl_params->get_output_layout (), dnnl::memory::format_tag::undef, mem_flags::need_blocked );
127
127
128
128
float p, eps;
129
129
ib >> p >> eps;
You can’t perform that action at this time.
0 commit comments