Skip to content

Commit

Permalink
Merge branch 'branch-23.12' into generators
Browse files Browse the repository at this point in the history
  • Loading branch information
nv-rliu authored Oct 30, 2023
2 parents 36ffccf + e0c3a93 commit bfed89f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/cugraph-dgl/examples/graphsage/node-classification.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,9 @@ def train(args, device, g, dataset, model):

else:
g = g.to("cuda" if args.mode == "gpu_dgl" else "cpu")
device = torch.device("cpu" if args.mode == "cpu" else "cuda")
device = torch.device(
"cpu" if args.mode == "cpu" or args.mode == "mixed" else "cuda"
)

# create GraphSAGE model
feat_shape = (
Expand Down

0 comments on commit bfed89f

Please sign in to comment.