Skip to content

Fix contiguous analysis for shifted layouts#26

Open
neuralsorcerer wants to merge 1 commit into
facebookresearch:mainfrom
neuralsorcerer:cont
Open

Fix contiguous analysis for shifted layouts#26
neuralsorcerer wants to merge 1 commit into
facebookresearch:mainfrom
neuralsorcerer:cont

Conversation

@neuralsorcerer
Copy link
Copy Markdown
Contributor

  • Updated is_bijective so it correctly treats a layout as bijective when it visits every offset in its occupied span exactly once, including shifted dense subviews and negative-stride dense traversals.
  • Kept is_contiguous aligned with the corrected bijectivity semantics and clarified that contiguity means a dense, gap-free produced offset range.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label May 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant