Skip to content

Add tensor flat copy helpers#23

Merged
jduprat merged 1 commit into
facebookresearch:mainfrom
neuralsorcerer:tensor-flat
May 15, 2026
Merged

Add tensor flat copy helpers#23
jduprat merged 1 commit into
facebookresearch:mainfrom
neuralsorcerer:tensor-flat

Conversation

@neuralsorcerer
Copy link
Copy Markdown
Contributor

  • Added Tensor.to_list() to materialize tensor values in natural flat logical order, returning storage-backed values for data tensors and computed offsets for algebraic tensors.
  • Added Tensor.copy_from(src) for layout-aware flat logical copying, including validation for source type, destination storage, size compatibility, and snapshotting before writes so aliased-storage copies remain correct.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label May 9, 2026
@jduprat jduprat merged commit 64d1657 into facebookresearch:main May 15, 2026
9 checks passed
@neuralsorcerer neuralsorcerer deleted the tensor-flat branch May 16, 2026 05:30
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.

2 participants