File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -371,10 +371,4 @@ def main(cmd_args):
371371
372372
373373if __name__ == '__main__' :
374- # NOTE(kan-bayashi): setting multiple times causes RuntimeError
375- # See also https://github.com/pytorch/pytorch/issues/3492
376- try :
377- mp .set_start_method ('spawn' )
378- except RuntimeError :
379- pass
380374 main (sys .argv [1 :])
Original file line number Diff line number Diff line change @@ -167,10 +167,4 @@ def main(cmd_args):
167167
168168
169169if __name__ == '__main__' :
170- # NOTE(kan-bayashi): setting multiple times causes RuntimeError
171- # See also https://github.com/pytorch/pytorch/issues/3492
172- try :
173- mp .set_start_method ('spawn' )
174- except RuntimeError :
175- pass
176170 main (sys .argv [1 :])
Original file line number Diff line number Diff line change @@ -260,10 +260,4 @@ def main(cmd_args):
260260
261261
262262if __name__ == '__main__' :
263- # NOTE(kan-bayashi): setting multiple times causes RuntimeError
264- # See also https://github.com/pytorch/pytorch/issues/3492
265- try :
266- mp .set_start_method ('spawn' )
267- except RuntimeError :
268- pass
269263 main (sys .argv [1 :])
Original file line number Diff line number Diff line change @@ -182,10 +182,4 @@ def main(cmd_args):
182182
183183
184184if __name__ == "__main__" :
185- # NOTE(kan-bayashi): setting multiple times causes RuntimeError
186- # See also https://github.com/pytorch/pytorch/issues/3492
187- try :
188- mp .set_start_method ('spawn' )
189- except RuntimeError :
190- pass
191185 main (sys .argv [1 :])
You can’t perform that action at this time.
0 commit comments