Commit 4414cb29 authored by Anthony Larcher's avatar Anthony Larcher
Browse files

parallel

parent 89b36652
......@@ -1309,8 +1309,9 @@ def new_xtrain(dataset_description,
embedding_size = model.embedding_size
# Set the device and manage parallel processing
device = torch.cuda.device(local_rank)
torch.cuda.set_device(local_rank)
device = torch.device("cuda")
#device = torch.device("cuda")
model.to(device)
# If multi-gpu
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment