From 6a7e5824b85c549bdddd6082b664f579405b6eb4 Mon Sep 17 00:00:00 2001 From: Steve Yoo Date: Thu, 5 Dec 2024 08:50:01 +0000 Subject: [PATCH] [GPU] Reinforce dependency check condition --- .../src/graph/graph_optimizer/remove_redundant_reorders.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/intel_gpu/src/graph/graph_optimizer/remove_redundant_reorders.cpp b/src/plugins/intel_gpu/src/graph/graph_optimizer/remove_redundant_reorders.cpp index 3c6311e01218c5..6cf4a571481a62 100644 --- a/src/plugins/intel_gpu/src/graph/graph_optimizer/remove_redundant_reorders.cpp +++ b/src/plugins/intel_gpu/src/graph/graph_optimizer/remove_redundant_reorders.cpp @@ -295,7 +295,7 @@ void remove_redundant_reorders::run(program& p) { auto o_layout = r_node.get_output_layout(); const auto& i_layout = r_node.get_input_layout(0); - if (r_node.get_dependency(0).is_type()) + if (!update_implementations || (r_node.get_dependency(0).is_type() && r_node.get_dependency(0).can_be_optimized())) continue; // Optimize reorder b_fs_yx_fsv16 -> bfyx when spatials are equal to 1. In this case we can reinterpret buffer,