Skip to content

Commit 4f6208b

Browse files
committed
[GPU] Disable crop fusing
1 parent c81a17f commit 4f6208b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/plugins/intel_gpu/src/graph/graph_optimizer/prepare_primitive_fusing.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -736,8 +736,6 @@ void prepare_primitive_fusing::fuse_simple_primitives(program &p) {
736736

737737
should_fuse |= input.is_type<strided_slice>();
738738

739-
should_fuse |= input.is_type<crop>();
740-
741739
bool legacy_fusion = activation_node.get_dependencies().size() == 1 &&
742740
!input.can_be_optimized() &&
743741
!activation_node.is_constant() &&
@@ -922,8 +920,7 @@ void prepare_primitive_fusing::fuse_simple_primitives(program &p) {
922920
(parents[i].first->is_type<gather>()) ||
923921
(parents[i].first->is_type<reduce>() &&
924922
reduce_supports_fusings(parents[i].first->as<reduce>())) ||
925-
(parents[i].first->is_type<lrn>()) ||
926-
(parents[i].first->is_type<crop>());
923+
(parents[i].first->is_type<lrn>());
927924
}
928925

929926
// Disable fusion to a node on constant path when second input is in data flow
@@ -1063,6 +1060,9 @@ void prepare_primitive_fusing::fuse_simple_primitives(program &p) {
10631060
fused_node->get_input_pshape().rbegin()->is_dynamic();
10641061

10651062
if (is_fc_lora || is_conv_lora || is_gemm_lora) {
1063+
if (!can_fuse_parents[peer_idx]) {
1064+
return;
1065+
}
10661066
std::swap(peer_node, fused_node);
10671067
}
10681068
}

0 commit comments

Comments
 (0)