bytedance / byteps

A high performance and generic framework for distributed DNN training
Other
3.63k stars 488 forks source link

import issue in example/pytorch/mnist-distributed.py #376

Closed hengruo closed 3 years ago

hengruo commented 3 years ago

Describe the bug line 10: from nn.parallel import DistributedDataParallel as DDP can't find module for Python 3.8 should be changed into from torch.nn.parallel import DistributedDataParallel as DDP

(I definitely remember from nn.xxx used to work well...)

To Reproduce just run it

Environment (please complete the following information):

pleasantrabbit commented 3 years ago

@heliumsea Thanks for reporting this issue. It's fixed by https://github.com/bytedance/byteps/pull/379.