Skip to content

Commit

Permalink
[GPU] Skip crop fusing when it has padding and its user is reorder
Browse files Browse the repository at this point in the history
  • Loading branch information
steve-y committed Nov 14, 2024
1 parent 2b25007 commit 9e3852a
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -844,6 +844,8 @@ void prepare_buffer_fusing::run(program& p) {
crop_params->input_offsets[0],
node.get_primitive()->axis,
false);
if (static_cast<bool>(crop_layout.data_padding) && node.get_users().front()->is_type<reorder>())
return;
if (user_info.first) {
node.get_users().front()->set_output_layout(user_info.second);
}
Expand Down

0 comments on commit 9e3852a

Please sign in to comment.