"git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "794f7e49a97103a436b6fe2990d15c79fcd97b03"
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):
if use_uva:
device = torch.cuda.current_device()
else:
device = self.graph.device
device = graph.device
device = _get_device(device)
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