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
dfa32286
"...git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "a647682224fed7d65ac4d2a75ed9f2db8e5253e7"
Unverified
Commit
dfa32286
authored
Jan 23, 2024
by
Ramon Zhou
Committed by
GitHub
Jan 23, 2024
Browse files
[Misc] DGL multi-gpu example run error work around (#6999)
parent
d2497448
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
examples/multigpu/node_classification_sage.py
examples/multigpu/node_classification_sage.py
+10
-6
No files found.
examples/multigpu/node_classification_sage.py
View file @
dfa32286
...
@@ -171,12 +171,16 @@ def train(
...
@@ -171,12 +171,16 @@ def train(
use_uva
,
use_uva
,
):
):
# Instantiate a neighbor sampler
# Instantiate a neighbor sampler
sampler
=
NeighborSampler
(
if
args
.
mode
==
"benchmark"
:
[
10
,
10
,
10
],
# A work-around to prevent CUDA running error. For more details, please
prefetch_node_feats
=
[
"feat"
],
# see https://github.com/dmlc/dgl/issues/6697.
prefetch_labels
=
[
"label"
],
sampler
=
NeighborSampler
([
10
,
10
,
10
],
fused
=
False
)
fused
=
(
args
.
mode
!=
"benchmark"
),
else
:
)
sampler
=
NeighborSampler
(
[
10
,
10
,
10
],
prefetch_node_feats
=
[
"feat"
],
prefetch_labels
=
[
"label"
],
)
train_dataloader
=
DataLoader
(
train_dataloader
=
DataLoader
(
g
,
g
,
train_idx
,
train_idx
,
...
...
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