diff --git a/intermediate_source/ddp_tutorial.rst b/intermediate_source/ddp_tutorial.rst index c91c195d6f0..1f7221680b1 100644 --- a/intermediate_source/ddp_tutorial.rst +++ b/intermediate_source/ddp_tutorial.rst @@ -311,6 +311,7 @@ Let's still use the Toymodel example and create a file named ``elastic_ddp.py``. .. code:: python + import os import torch import torch.distributed as dist import torch.nn as nn