Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
T
TFM_AdrianAyusoMuñoz
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Disnet
GNNs
TFM_AdrianAyusoMuñoz
Commits
882541a1
Commit
882541a1
authored
Jun 28, 2023
by
ADRIAN AYUSO MUNOZ
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix logic.
parent
c1efac0d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
dmsr.py
dmsr.py
+4
-4
No files found.
dmsr.py
View file @
882541a1
...
...
@@ -97,17 +97,17 @@ class HeteroGNN(torch.nn.Module):
edge_weight
=
data
.
edge_feature
# Edge weights need to be reformated to match model's requirements.
keys
=
[
key
for
key
in
edge_weight
]
edge_weight2
=
{}
for
key
in
keys
:
newKey
=
key
[
1
]
edge_weight
[
newKey
]
=
edge_weight
[
key
]
del
edge_weight
[
key
]
edge_weight2
[
newKey
]
=
edge_weight
[
key
]
x
=
self
.
convs1
(
x
,
edge_index
,
edge_weight
)
x
=
self
.
convs1
(
x
,
edge_index
,
edge_weight
2
)
x
=
forward_op
(
x
,
self
.
bns1
)
x
=
forward_op
(
x
,
self
.
relus1
)
x
=
forward_op
(
x
,
self
.
dropout1
)
x
=
self
.
convs2
(
x
,
edge_index
,
edge_weight
)
x
=
self
.
convs2
(
x
,
edge_index
,
edge_weight
2
)
x
=
forward_op
(
x
,
self
.
bns2
)
return
x
...
...
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