Skip to content

Update from code changes: document new Permutation torch format defaults#300

Open
mintlify[bot] wants to merge 1 commit into
mainfrom
mintlify/686265a9
Open

Update from code changes: document new Permutation torch format defaults#300
mintlify[bot] wants to merge 1 commit into
mainfrom
mintlify/686265a9

Conversation

@mintlify

@mintlify mintlify Bot commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Summary

Updates the PyTorch integration page to document the new default behavior of Permutation.with_format("torch") — per-row {col: tensor} dicts that PyTorch's default DataLoader collate stacks into {col: tensor(B,)} — and the new "torch_row" literal that preserves the previous single-tensor shape. See lancedb/lancedb#3369.

Changes

  • Added a torch formats comparison table on training/torch.mdx covering "torch", "torch_row", and "torch_col" output shapes and default collate behavior.
  • Added a warning callout flagging the breaking default change and pointing at "torch_row" for the previous behavior.
  • Added a "torch" usage example alongside the existing "torch_col" example so users can pick the format that matches their training loop.

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.

0 participants