From a9ae5d9ace894daeac6d875d95caf28a8cf024fb Mon Sep 17 00:00:00 2001 From: Luwei Zhou Date: Thu, 26 Dec 2024 20:16:42 +0800 Subject: [PATCH] test. --- .../graph/graph_optimizer/prepare_buffer_fusing.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/plugins/intel_gpu/src/graph/graph_optimizer/prepare_buffer_fusing.cpp b/src/plugins/intel_gpu/src/graph/graph_optimizer/prepare_buffer_fusing.cpp index e7566fd414c5dc..ee0d6712450bbd 100644 --- a/src/plugins/intel_gpu/src/graph/graph_optimizer/prepare_buffer_fusing.cpp +++ b/src/plugins/intel_gpu/src/graph/graph_optimizer/prepare_buffer_fusing.cpp @@ -68,7 +68,7 @@ auto available_pred = [](const program_node& input) { !input.is_type() && !input.is_type() && !input.is_type() && !input.is_type() && !input.is_type() && !input.is_type() && !input.is_type() && !(input.is_type() && !input.as().is_rotating_except_batch()) && - !input.is_type()) + !input.is_type() && !input.is_type()) return false; return true; }; @@ -158,10 +158,10 @@ bool concat_in_place_optimization::match(const program_node& concat_node, } } // TODO: handle optimized reshape - if (pred.first->is_type() && pred.first->can_be_optimized()) { - GPU_DEBUG_TRACE_DETAIL << "[prepare_buffer_fusing_match_fail] : " << pred.first->id() << " , " << concat_node.id() << std::endl; - return false; - } + // if (pred.first->is_type() && pred.first->can_be_optimized()) { + // GPU_DEBUG_TRACE_DETAIL << "[prepare_buffer_fusing_match_fail] : " << pred.first->id() << " , " << concat_node.id() << std::endl; + // return false; + // } // TODO: Investigate if this condition is needed if (pred.first->get_users().size() > 2) { GPU_DEBUG_TRACE_DETAIL << "[prepare_buffer_fusing_match_fail] : " << pred.first->id() << " , " << concat_node.id() << std::endl; @@ -179,7 +179,7 @@ bool concat_in_place_optimization::match(const program_node& concat_node, } } // Check that input isn't optimized out non-concatenation. - if (!pred.first->is_type() && pred.first->can_be_optimized()) { + if (!pred.first->is_type() && !pred.first->is_type() && pred.first->can_be_optimized()) { GPU_DEBUG_TRACE_DETAIL << "[prepare_buffer_fusing_match_fail] : " << pred.first->id() << " , " << concat_node.id() << std::endl; return false; }