Skip to content

Commit 50e5ea3

Browse files
authored
fix missing import os for ddp
1 parent 0c01f45 commit 50e5ea3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/2.1/_sources/notes/ddp.rst.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ updated, and all models on different processes should be exactly the same.
2828
import torch.multiprocessing as mp
2929
import torch.nn as nn
3030
import torch.optim as optim
31+
import os
3132
from torch.nn.parallel import DistributedDataParallel as DDP
3233
3334

0 commit comments

Comments
 (0)