Skip to content

Commit

Permalink
Update main_horovod.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Jongchan authored Oct 12, 2018
1 parent 6ceea4c commit 05ac140
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/cifar100/main_horovod.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def forward(self, x):

print ("use cuda!!")
print ("local rank {}, rank {}".format(hvd.local_rank(),hvd.rank()))
torch.cuda.set_device(hvd.rank())
torch.cuda.set_device(hvd.local_rank())
torch.cuda.manual_seed(1111)

best_acc = 0
Expand Down

0 comments on commit 05ac140

Please sign in to comment.