Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix an issue occurring in the cuGraph-DGL example for "mixed" mode. #3927

Merged
merged 8 commits into from
Oct 30, 2023
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