Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 97ae30b

Browse files
author
Will Feng
committed
Revert "fix bug in aws_distributed_training_tutorial"
This reverts commit 62cfed9.
1 parent 96c7392 commit 97ae30b

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

beginner_source/aws_distributed_training_tutorial.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -210,10 +210,7 @@
210210
import torch
211211

212212
if __name__ == '__main__':
213-
try:
214-
torch.multiprocessing.set_start_method('spawn')
215-
except RuntimeError:
216-
pass
213+
torch.multiprocessing.set_start_method('spawn')
217214

218215
import torch.nn as nn
219216
import torch.nn.parallel

0 commit comments

Comments
 (0)