Skip to content

Commit a5f28f5

Browse files
committed
distribute
1 parent c69eb47 commit a5f28f5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ml.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ def load_checkpoint(self):
488488
self.model.eval()
489489

490490

491-
self.model = self.model.cuda(self.local_rank)
491+
self.model = self.model.cuda(f"cuda:{self.local_rank}")
492492
self.model = nn.parallel.DistributedDataParallel(self.model,
493493
device_ids=[self.local_rank],
494494
output_device=self.local_rank,

0 commit comments

Comments
 (0)