Skip to content

[TIRx] Store tensor address geometry in layouts - #20786

Merged
tqchen merged 16 commits into
apache:mainfrom
tqchen:tensor-type-layout-strides
Oct 18, 2026
Merged

tqchen merged 16 commits into
apache:mainfrom
tqchen:tensor-type-layout-strides

Conversation

@tqchen

@tqchen tqchen commented Oct 17, 2026 •

Copy link
Copy Markdown
Member

Make layout the single source of tensor strides and element offsets. Tensor and S-TIR declarations accept explicit layouts, while views forward layout geometry directly. Shape-aligned memory layouts support dynamic strides and linear offset expressions through the existing parameter binder.

Provide structural shape/stride matching and distinguish TileLayout contiguity from TensorType default shape coverage and zero origin. Both predicates reuse an optional analyzer after deep-equality checks. Python exposes the optional named matching result only in S-TIR. Shared-memory pools select their physical allocation base with pointer offsets, and Relax preserves contiguous native tensor origins at call boundaries.

@tqchen
tqchen merged commit 20e978c into apache:main Oct 18, 2026
7 of 8 checks passed
tqchen added a commit that referenced this pull request Oct 18, 2026
Make layout the single source of tensor strides and element offsets.
Tensor and S-TIR declarations accept explicit layouts, while views
forward layout geometry directly. Shape-aligned memory layouts support
dynamic strides and linear offset expressions through the existing
parameter binder.

Provide structural shape/stride matching and distinguish TileLayout
contiguity from TensorType default shape coverage and zero origin. Both
predicates reuse an optional analyzer after deep-equality checks. Python
exposes the optional named matching result only in S-TIR. Shared-memory
pools select their physical allocation base with pointer offsets, and
Relax preserves contiguous native tensor origins at call boundaries.
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