WIP: Explore reshape-aware dynamic padding buckets - #32
Draft
stevenvar wants to merge 5 commits into
Draft
Conversation
stevenvar
force-pushed
the
steven.dynamic-padding-alignment-wip
branch
3 times, most recently
from
July 31, 2026 16:28
98abd71 to
40ce995
Compare
stevenvar
force-pushed
the
steven.tile-targeted-compile-time-guard
branch
7 times, most recently
from
August 14, 2026 16:02
ffee85a to
b072b26
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This WIP explores padding dynamic input dimensions while preserving divisibility requirements used by internal shape expressions.
Dynamic padding buckets inspect dynamic
Reshapeoutput expressions and align the selected compile batch with their constant divisors. For example, an internalA / 12reshape selects384rather than512for a runtime value of300.Tests
A / 12selects divisible buckets.12and18are combined.WIP limitations
The prototype currently scans the cluster function during compilation and only reads
Reshapeoutput-shape expressions. Before making this ready, the analysis should be computed once during clustering and stored as cluster metadata. It also needs a more general treatment of shape-derived value paths such asShape -> arithmetic -> Fill/Tile.