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
a347214f
Unverified
Commit
a347214f
authored
May 11, 2018
by
Zheng Zhang
Committed by
GitHub
May 11, 2018
Browse files
Merge pull request #6 from zzhang-cn/zz-play
list aliasing bug
parents
a3ce6e2f
c3907460
Changes
1
Show 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 @
a347214f
...
...
@@ -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