Skip to content

Commit

Permalink
example: fix import for python3.8 (#379)
Browse files Browse the repository at this point in the history
fix the import statement in pytorch/mnist-distributed.py for python 3.8

Signed-off-by: Yulu Jia <yulu.jia@bytedance.com>
  • Loading branch information
pleasantrabbit committed Mar 30, 2021
1 parent 85798db commit 47ff669
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example/pytorch/mnist-distributed.py
Expand Up @@ -7,7 +7,7 @@
import torch
import torch.nn as nn
import torch.distributed as dist
from nn.parallel import DistributedDataParallel as DDP
from torch.nn.parallel import DistributedDataParallel as DDP


def main():
Expand Down

0 comments on commit 47ff669

Please sign in to comment.