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
4bf70f09
Unverified
Commit
4bf70f09
authored
Nov 22, 2021
by
Harsh Sinha
Committed by
GitHub
Nov 23, 2021
Browse files
[Bugfix] issue #3527 (#3528)
* Fix issue 3527 * Changed default device * Added g to device
parent
8dbf3a47
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
examples/pytorch/model_zoo/geometric/mnist.py
examples/pytorch/model_zoo/geometric/mnist.py
+1
-0
No files found.
examples/pytorch/model_zoo/geometric/mnist.py
View file @
4bf70f09
...
...
@@ -177,6 +177,7 @@ for epoch in range(10):
for
g
,
x
,
y
in
test_loader
:
x
=
x
.
to
(
device
)
y
=
y
.
to
(
device
)
g
=
[
g_i
.
to
(
device
)
for
g_i
in
g
]
out
=
model
(
g
,
x
)
hit
+=
(
out
.
max
(
-
1
)[
1
]
==
y
).
sum
().
item
()
tot
+=
len
(
y
)
...
...
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