Skip to content

Commit b8d2eaf

Browse files
committed
Add import os to example code block
1 parent d627981 commit b8d2eaf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

intermediate_source/ddp_tutorial.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,7 @@ Let's still use the Toymodel example and create a file named ``elastic_ddp.py``.
311311

312312
.. code:: python
313313
314+
import os
314315
import torch
315316
import torch.distributed as dist
316317
import torch.nn as nn

0 commit comments

Comments
 (0)