1. What does it mean that PyTorch runs in eager mode by default?
- You must compile the whole model into a static graph before running it
- Operations are queued and run only when you call `torch.run()`
- Each operation executes immediately as Python reaches it, so you can print and debug normally
- Gradients are computed eagerly before the forward pass
Show answer
Answer: Each operation executes immediately as Python reaches it, so you can print and debug normally
In eager mode every line runs as soon as Python executes it. That is why you can use print, debuggers and ordinary control flow inside a model.