diff --git a/src/plugins/intel_gpu/src/plugin/transformations/convert_stridedslices_to_variadicsplit.cpp b/src/plugins/intel_gpu/src/plugin/transformations/convert_stridedslices_to_variadicsplit.cpp index 500a156be56fcb..07ec61b155ff3f 100644 --- a/src/plugins/intel_gpu/src/plugin/transformations/convert_stridedslices_to_variadicsplit.cpp +++ b/src/plugins/intel_gpu/src/plugin/transformations/convert_stridedslices_to_variadicsplit.cpp @@ -31,7 +31,7 @@ ConvertStridedSlicesToVariadicSplit::ConvertStridedSlicesToVariadicSplit() { return false; user_count++; } - return (user_count == num_users_to_fuse) && consumers_count(num_users_to_fuse); + return (user_count == num_users_to_fuse) && consumers_count(num_users_to_fuse)(output); }; auto data_m = any_input(); diff --git a/src/plugins/intel_gpu/src/plugin/transformations/unsqueeze_broadcast_reshape_matmul_fusion.cpp b/src/plugins/intel_gpu/src/plugin/transformations/unsqueeze_broadcast_reshape_matmul_fusion.cpp index 6a2a9ba627573b..f71ecc23e7fe04 100644 --- a/src/plugins/intel_gpu/src/plugin/transformations/unsqueeze_broadcast_reshape_matmul_fusion.cpp +++ b/src/plugins/intel_gpu/src/plugin/transformations/unsqueeze_broadcast_reshape_matmul_fusion.cpp @@ -26,20 +26,16 @@ UnsqueezeBroadcastReshapeMatmulFusion::UnsqueezeBroadcastReshapeMatmulFusion() { return ov::as_type_ptr(output.get_node_shared_ptr()) == nullptr; }; - auto unsqueeze_predicate = [](const ov::Output& output) -> bool { - return rank_equals(5)(output) && consumers_count(1); - }; + auto unsqueeze_predicate = rank_equals(5) && consumers_count(1); auto broadcast_predicate = [](const ov::Output& output) -> bool { const auto broadcast = ov::as_type_ptr(output.get_node_shared_ptr()); if (!broadcast || broadcast->get_broadcast_spec().m_type != ov::op::BroadcastType::BIDIRECTIONAL) return false; - return rank_equals(5)(output) && consumers_count(1); + return rank_equals(5)(output) && consumers_count(1)(output); }; - auto reshape_predicate = [](const ov::Output& output) -> bool { - return rank_equals(4)(output) && consumers_count(1); - }; + auto reshape_predicate = rank_equals(4) && consumers_count(1); auto input_a_m = any_input(not_reshape); auto input_b_m = wrap_type({any_input(), any_input()}); diff --git a/src/plugins/intel_gpu/src/plugin/transformations/unsqueeze_broadcast_reshape_sdpa_fusion.cpp b/src/plugins/intel_gpu/src/plugin/transformations/unsqueeze_broadcast_reshape_sdpa_fusion.cpp index 9d5ea8db863556..b99a8e02fef85d 100644 --- a/src/plugins/intel_gpu/src/plugin/transformations/unsqueeze_broadcast_reshape_sdpa_fusion.cpp +++ b/src/plugins/intel_gpu/src/plugin/transformations/unsqueeze_broadcast_reshape_sdpa_fusion.cpp @@ -23,20 +23,16 @@ using ov::pass::pattern::op::Or; UnsqueezeBroadcastReshapeSDPAFusion::UnsqueezeBroadcastReshapeSDPAFusion() { using namespace ov::pass::pattern; - auto unsqueeze_predicate = [](const ov::Output& output) -> bool { - return rank_equals(5)(output) && consumers_count(1); - }; + auto unsqueeze_predicate = rank_equals(5) && consumers_count(1); auto broadcast_predicate = [](const ov::Output& output) -> bool { const auto broadcast = ov::as_type_ptr(output.get_node_shared_ptr()); if (!broadcast || broadcast->get_broadcast_spec().m_type != ov::op::BroadcastType::BIDIRECTIONAL) return false; - return rank_equals(5)(output) && consumers_count(1); + return rank_equals(5)(output) && consumers_count(1)(output); }; - auto reshape_predicate = [](const ov::Output& output) -> bool { - return rank_equals(4)(output) && consumers_count(1); - }; + auto reshape_predicate = rank_equals(4) && consumers_count(1); auto input_a_m = any_input(); auto input_attn_mask = any_input();