πŸ’‘ requires_grad Switch Visualizer

Toggle requires_grad on each leaf and watch it propagate live β€” bright means tracked, dim means invisible to autograd.

πŸ“‹ How To Use This Lab
  1. Flip x.requires_grad and y.requires_grad β€” everything downstream updates instantly.
  2. A node glows bright if ANY of its inputs require grad β€” even indirectly.
  3. Use Next/Previous Step or Auto Run to walk through all four combinations.
  4. Set BOTH switches off and watch what happens if you try to call .backward().
Lumen
x.requires_grad
False
True
y.requires_grad
False
True
πŸ€– LUMENFlip a switch β€” I'll light up (or dim) every node that depends on it.
πŸ§‘β€πŸ« PROF. TORCHrequires_grad spreads forward: if ANY input to an operation requires grad, its output does too.