Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "[GPU] Avoid crop buffer fusing when dynamic shape and squeeze/unsqueeze reshape mode" #25895

Merged
merged 1 commit into from
Aug 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -484,10 +484,10 @@ bool crop_in_place_optimization::match(const program_node& node,
if (node.is_dynamic() && (user->is_type<convolution>() || user->is_type<gemm>()))
return false;
if (user->is_type<reshape>()) {
auto& reshape_node = user->as<reshape>();
// runtime buffer fusing is only handled when there is only one reshape user and reshape mode is base
if (node.is_dynamic() && (node.get_users().size() != 1 || reshape_node.get_primitive()->mode != reshape::reshape_mode::base))
// runtime buffer fusing is only handled when there is only one reshape user
if (node.is_dynamic() && node.get_users().size() != 1)
return false;
auto& reshape_node = user->as<reshape>();
if (can_reshape_be_optimized(reshape_node) &&
(!node.is_dynamic() || !reshape_node.is_runtime_propagatable_padding()))
return false;
Expand Down
Loading