Skip to content

Commit 50ba81f

Browse files
Add import os to example code block (#3378)
Co-authored-by: sekyondaMeta <[email protected]>
1 parent 0f312df commit 50ba81f

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)