Distributed DataParallel Basics
Simulate training with torch.nn.DataParallel:
- Define a simple CNN.
- Run it on 2 GPUs (if available).
- Verify batch is split across devices.
Inspect model.module usage.
Simulate training with torch.nn.DataParallel:
Inspect model.module usage.