"...pytorch/git@developer.sourcefind.cn:OpenDAS/dgl.git" did not exist on "1328baf7cbfc908fa179df3011b8d8eee064958c"
Unverified Commit 2f322a94 authored by Rhett Ying's avatar Rhett Ying Committed by GitHub
Browse files

[BugFix] fetch device from graph (#4245)


Co-authored-by: default avatarXin Yao <xiny@nvidia.com>
parent e26d2064
...@@ -941,7 +941,7 @@ class EdgeDataLoader(DataLoader): ...@@ -941,7 +941,7 @@ class EdgeDataLoader(DataLoader):
if use_uva: if use_uva:
device = torch.cuda.current_device() device = torch.cuda.current_device()
else: else:
device = self.graph.device device = graph.device
device = _get_device(device) device = _get_device(device)
if isinstance(graph_sampler, BlockSampler): if isinstance(graph_sampler, BlockSampler):
......
Markdown is supported
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