πŸ“œ Flattening Visualizer

Watch each number slide β€” slowly, one at a time β€” from its 3D spot into a flat chain.

πŸ“‹ How To Use This Lab
  1. Look at the two grids up top β€” that's your 3D tensor: 2 separate channels, each a 3Γ—3 grid.
  2. Pick Start Dim and End Dim below β†’ those axes will merge into one.
  3. Press the big β–Ά Play Unfold button β†’ watch every number slide, one at a time, into its new flat position.
  4. Try Start Dim = End Dim β†’ nothing moves at all β€” that's a real no-op.
(2, 3, 3)
➜
(2, 9)
Original Tensor β€” 2 Channels Channel 0 Channel 1 Flattened Output
πŸ€– FOLDPress β–Ά Play Unfold β€” I'll slide every number, one at a time, into its real new position.
πŸ§‘β€πŸ« PROF. TORCHFlatten never reorders memory β€” it's just a view that merges dimensions, so the data order stays identical.

πŸŽ›οΈ Choose Dimensions to Merge