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
01a22144
"git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "29b1325a5ae28fa8d7f459b372582287ffc571e5"
Unverified
Commit
01a22144
authored
Sep 19, 2021
by
nv-dlasalle
Committed by
GitHub
Sep 19, 2021
Browse files
Enable faster validation for pytorch graphsage example (#3361)
parent
bc5cac44
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
examples/pytorch/graphsage/model.py
examples/pytorch/graphsage/model.py
+2
-1
No files found.
examples/pytorch/graphsage/model.py
View file @
01a22144
...
@@ -58,8 +58,9 @@ class SAGE(nn.Module):
...
@@ -58,8 +58,9 @@ class SAGE(nn.Module):
g
,
g
,
th
.
arange
(
g
.
num_nodes
()).
to
(
g
.
device
),
th
.
arange
(
g
.
num_nodes
()).
to
(
g
.
device
),
sampler
,
sampler
,
device
=
device
if
num_workers
==
0
else
None
,
batch_size
=
batch_size
,
batch_size
=
batch_size
,
shuffle
=
Tru
e
,
shuffle
=
Fals
e
,
drop_last
=
False
,
drop_last
=
False
,
num_workers
=
num_workers
)
num_workers
=
num_workers
)
...
...
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