Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dgl
Commits
2f322a94
Unverified
Commit
2f322a94
authored
Jul 14, 2022
by
Rhett Ying
Committed by
GitHub
Jul 14, 2022
Browse files
[BugFix] fetch device from graph (#4245)
Co-authored-by:
Xin Yao
<
xiny@nvidia.com
>
parent
e26d2064
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
python/dgl/dataloading/dataloader.py
python/dgl/dataloading/dataloader.py
+1
-1
No files found.
python/dgl/dataloading/dataloader.py
View file @
2f322a94
...
...
@@ -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
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment