From a097204d9543975270afe3f3263c49952108b430 Mon Sep 17 00:00:00 2001 From: Steve Yoo Date: Thu, 5 Dec 2024 21:08:51 +0000 Subject: [PATCH] [GPU] Confine update implementation condition to crop --- .../src/graph/graph_optimizer/remove_redundant_reorders.cpp | 3 ++- 1 file changed, 2 insertions(+), 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 6cf4a571481a62..f771300a160167 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,8 @@ 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 (!update_implementations || (r_node.get_dependency(0).is_type() && r_node.get_dependency(0).can_be_optimized())) + if ((!update_implementations && r_node.get_dependency(0).is_type()) || + (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,