๐Ÿงฑ Reshape & View Visualizer

Watch tensor memory blocks physically rearrange into new rows & columns โ€” the same data, a different shape, never losing count.

๐Ÿ“‹ How To Use This Lab
  1. The top strip is the underlying memory โ€” 12 fixed values that never move or get copied.
  2. Drag the Rows and Columns sliders โ†’ Shifty pulls blocks from memory into a new grid below.
  3. If rows ร— columns โ‰  12, the sliders and grid turn red โ€” exactly like a real PyTorch shape error.
  4. Notice the block values are always the same 12 numbers, just arranged differently โ€” that's what view() means.
Underlying Memory (contiguous โ€” never moves) Shifty Current View โ€” x.view(rows, cols) โœ•
๐Ÿค– SHIFTY
๐Ÿง‘โ€๐Ÿซ PROF. TORCH

๐ŸŽ›๏ธ Choose a New Shape