From 4ad2202634724029dedbe518087a1f294aa7181b Mon Sep 17 00:00:00 2001 From: Wilson Seok Date: Thu, 25 Jul 2024 18:27:35 -0700 Subject: [PATCH] [GPU] Use get_output_pshape() in crop_in_place_optimization::match() to check user output dynamic shape (#25632) ### Details: - Use get_output_pshape() in crop_in_place_optimization::match() to check user output dynamic shape because user would have valid_output_layouts=false ### Tickets: - 146725 --- .../src/graph/graph_optimizer/prepare_buffer_fusing.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 7f1fb69446edb9..680445296eb606 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 @@ -470,7 +470,7 @@ bool crop_in_place_optimization::match(const program_node& node, for (auto user : node.get_users()) { // If the user node's output shape is already static, the padding // w/ dyn pad mask will not be propagated properly at runtime - if (node.is_dynamic() && !user->get_output_layout().is_dynamic()) + if (node.is_dynamic() && !user->get_output_pshape().is_dynamic()) return false; // do not optimize when next node is concatenation which is not output if (user->is_type() && !user->is_output())