✂️ Detaching Tensors Visualizer
Click any computed node to cut its wire to the graph — watch tracking recompute live, downstream.
📋 How To Use This Lab
Click on node
p
or
f
→
a menu appears with a
Detach
option.
Select it
→
animated scissors cut that node's incoming wires, and it goes grey.
Click a detached node again
→
you can Reattach it, undoing the cut.
Try detaching
p
alone
→
watch
f
stay bright anyway, because x still feeds it directly!
Snip
◀ Previous Step
Next Step ▶
Auto Run ▶▶
↺ Reset
🤖 SNIP
Click on p or f to open the detach menu — I'll cut the wire with real scissors.
🧑🏫 PROF. TORCH
detach() returns a tensor sharing the same data but with no grad_fn — it's disconnected from autograd, not deleted.