Skip to content

Disable the move-pad preseg pass when the resize scheduler is enabled#3675

Merged
naoyam merged 1 commit intomainfrom
disable_move_pad_when_resize_sched_enabled
Jan 13, 2025
Merged

Disable the move-pad preseg pass when the resize scheduler is enabled#3675
naoyam merged 1 commit intomainfrom
disable_move_pad_when_resize_sched_enabled

Conversation

@naoyam
Copy link
Collaborator

@naoyam naoyam commented Jan 7, 2025

For a fusion with pad ops, as long as it can be accepted by the resize scheduler, the move-pad pass is no longer necessary. This PR disables the pass only when the resize scheduler is enabled.

@naoyam
Copy link
Collaborator Author

naoyam commented Jan 7, 2025

!test

@naoyam naoyam marked this pull request as ready for review January 7, 2025 05:20
@naoyam naoyam requested a review from jjsjann123 January 7, 2025 05:23
@naoyam naoyam merged commit e286c6f into main Jan 13, 2025
@naoyam naoyam deleted the disable_move_pad_when_resize_sched_enabled branch January 13, 2025 17:05
naoyam added a commit that referenced this pull request Jan 15, 2025
Depends on #3674, #3675, #3679

Reorder tensors to align with the largest input. This should improve
memory accesses by minimizing strides. Store throughputs may be lowered,
but it should generally be more important to optimize load accesses.

I do not have actual performance results by this change. I just remember
this was effective in some cases while manually trying out different
optimization strategies. We may eventually need to enable or disable
this reordering by some heuristic.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants