AssertionError: Default process group is not initialized

放在开头部分

>>> import torch.distributed as dist
>>> dist.init_process_group('gloo', init_method='file:///tmp/somefile', rank=0, world_size=1)

https://github.com/pytorch/pytorch/issues/22538

你可能感兴趣的:(python,深度学习)