from local

This commit is contained in:
dohe0342 2022-12-10 13:39:37 +09:00
parent 8afcd618c6
commit b98df53225
2 changed files with 2 additions and 2 deletions

View File

@ -1350,9 +1350,9 @@ def main():
world_size = args.world_size world_size = args.world_size
assert world_size >= 1 assert world_size >= 1
if world_size > 1: if world_size > 1:
mp.spawn(run, args=(world_size, args), nprocs=world_size, join=True) mp.spawn(run, args=(world_size, args, wb), nprocs=world_size, join=True)
else: else:
run(rank=0, world_size=1, args=args) run(rank=0, world_size=1, args=args, wb=wb)
torch.set_num_threads(1) torch.set_num_threads(1)