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
79940695
"vscode:/vscode.git/clone" did not exist on "4decb3cc6878a7d51e92dd5f48ec0fb25ec8ba19"
Unverified
Commit
79940695
authored
Jan 07, 2021
by
Quan (Andy) Gan
Committed by
GitHub
Jan 07, 2021
Browse files
[Examples][Bug] fix a silly typo in JTNN (#2505)
parent
e2e524df
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
examples/pytorch/jtnn/jtnn/nnutils.py
examples/pytorch/jtnn/jtnn/nnutils.py
+1
-1
No files found.
examples/pytorch/jtnn/jtnn/nnutils.py
View file @
79940695
...
@@ -8,7 +8,7 @@ def cuda(x):
...
@@ -8,7 +8,7 @@ def cuda(x):
if
torch
.
cuda
.
is_available
()
and
not
os
.
getenv
(
'NOCUDA'
,
None
):
if
torch
.
cuda
.
is_available
()
and
not
os
.
getenv
(
'NOCUDA'
,
None
):
return
x
.
to
(
torch
.
device
(
'cuda'
))
# works for both DGLGraph and tensor
return
x
.
to
(
torch
.
device
(
'cuda'
))
# works for both DGLGraph and tensor
else
:
else
:
return
tensor
return
x
class
GRUUpdate
(
nn
.
Module
):
class
GRUUpdate
(
nn
.
Module
):
...
...
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