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
09a1a2f8
"vscode:/vscode.git/clone" did not exist on "3e06bc6f2ddd56cd713229a7f0404ff56cabda47"
Unverified
Commit
09a1a2f8
authored
Nov 21, 2023
by
Andrei Ivanov
Committed by
GitHub
Nov 22, 2023
Browse files
Improving the JKNET example. (#6596)
parent
f6345635
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
examples/pytorch/jknet/model.py
examples/pytorch/jknet/model.py
+3
-0
No files found.
examples/pytorch/jknet/model.py
View file @
09a1a2f8
...
...
@@ -41,6 +41,9 @@ class JKNet(nn.Module):
feats
=
self
.
dropout
(
layer
(
g
,
feats
))
feat_lst
.
append
(
feats
)
if
self
.
mode
==
"lstm"
:
self
.
jump
.
lstm
.
flatten_parameters
()
g
.
ndata
[
"h"
]
=
self
.
jump
(
feat_lst
)
g
.
update_all
(
fn
.
copy_u
(
"h"
,
"m"
),
fn
.
sum
(
"m"
,
"h"
))
...
...
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