Skip to content

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

[GPU] Fix segfault in layer tests for onnx_tests.test_lstm.TestLSTM (#26159)

Andrew Kwangwoong Park9d09d0a8fbf3
diff --git a/src/plugins/intel_gpu/src/graph/include/reshape_inst.h b/src/plugins/intel_gpu/src/graph/include/reshape_inst.h
index d5a60138a50..a94f48a6ec9 100644
--- a/src/plugins/intel_gpu/src/graph/include/reshape_inst.h
+++ b/src/plugins/intel_gpu/src/graph/include/reshape_inst.h
@@ -44,7 +44,7 @@ public:
return false;
// oneDNN supports padded input of outer axis only for buffer fusing on static shape
- if (!has_outer_padding_offset() && get_users().front()->get_preferred_impl_type() == impl_types::onednn)
+ if (!has_outer_padding_offset() && get_users().size() == 1 && get_users().front()->get_preferred_impl_type() == impl_types::onednn)
return false;
// TODO: If user is RoPE or MVN and dynamic padding exists, ouput padding propagation is not supported in the base mode