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
ee8a0e66
Unverified
Commit
ee8a0e66
authored
Dec 08, 2020
by
Maybewuss
Committed by
GitHub
Dec 08, 2020
Browse files
correct error when using enisum (#2406)
Co-authored-by:
Zihao Ye
<
expye@outlook.com
>
parent
1c976222
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
examples/pytorch/hgt/model.py
examples/pytorch/hgt/model.py
+1
-1
No files found.
examples/pytorch/hgt/model.py
View file @
ee8a0e66
...
@@ -74,7 +74,7 @@ class HGTLayer(nn.Module):
...
@@ -74,7 +74,7 @@ class HGTLayer(nn.Module):
relation_msg
=
self
.
relation_msg
[
e_id
]
relation_msg
=
self
.
relation_msg
[
e_id
]
k
=
torch
.
einsum
(
"bij,ijk->bik"
,
k
,
realtion_att
)
k
=
torch
.
einsum
(
"bij,ijk->bik"
,
k
,
realtion_att
)
v
=
torch
.
einsum
(
"bij,ijk->bik"
,
k
,
relation_msg
)
v
=
torch
.
einsum
(
"bij,ijk->bik"
,
v
,
relation_msg
)
sub_graph
.
srcdata
[
'k'
]
=
k
sub_graph
.
srcdata
[
'k'
]
=
k
sub_graph
.
dstdata
[
'q'
]
=
q
sub_graph
.
dstdata
[
'q'
]
=
q
...
...
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