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
c3907460
Commit
c3907460
authored
May 11, 2018
by
zzhang-cn
Browse files
list aliasing bug
parent
a3ce6e2f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
model.py
model.py
+1
-1
No files found.
model.py
View file @
c3907460
...
...
@@ -88,7 +88,7 @@ class TreeGlimpsedClassifier(NN.Module):
{
i
:
'h%d'
%
i
for
i
in
range
(
len
(
G
.
nodes
()))},
False
)
self
.
h_nodes_list
=
h_nodes_list
=
G
.
nodes
(
)
self
.
h_nodes_list
=
h_nodes_list
=
list
(
G
.
nodes
)
[:]
for
h
in
h_nodes_list
:
G
.
node
[
h
][
'type'
]
=
'h'
b_nodes_list
=
[
'b%d'
%
i
for
i
in
range
(
len
(
h_nodes_list
))]
...
...
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