Skip to content

Commit

Permalink
comment line too long
Browse files Browse the repository at this point in the history
  • Loading branch information
shubhamagarwal92 committed Mar 8, 2020
1 parent 6d89505 commit 54e9a5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytorch_lightning/trainer/evaluation_loop.py
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ def evaluation_forward(self, model, batch, batch_idx, dataloader_idx, test_mode:

# set cuda device to root gpu
# related to https://github.com/PyTorchLightning/pytorch-lightning/issues/958
# Refer solution: https://github.com/pytorch/pytorch/issues/9871#issuecomment-408304190
# Refer: https://github.com/pytorch/pytorch/issues/9871#issuecomment-408304190
root_device = torch.device("cuda", root_gpu)
torch.cuda.set_device(root_device)
else:
Expand Down

0 comments on commit 54e9a5e

Please sign in to comment.