Skip to content

Commit

Permalink
[GPU] Reinforce dependency check condition
Browse files Browse the repository at this point in the history
  • Loading branch information
steve-y committed Dec 21, 2024
1 parent 4165b03 commit 6a7e582
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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<crop>())
if (!update_implementations || (r_node.get_dependency(0).is_type<crop>() && 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,
Expand Down

0 comments on commit 6a7e582

Please sign in to comment.