From b8d2eaf11c513382702b762a6f5998051e84ad93 Mon Sep 17 00:00:00 2001 From: fortfanop Date: Wed, 4 Jun 2025 02:12:26 +0530 Subject: [PATCH] Add import os to example code block --- intermediate_source/ddp_tutorial.rst | 1 + 1 file changed, 1 insertion(+) 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