Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
srush committed Sep 11, 2019
1 parent 705619b commit b536a40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torch_struct/cky.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ def to_networkx(cls, spans):
indices = {}

for n in spans.nonzero():
indices[(n[0].item(), n[1]].item(), n[2].item())] = cur
indices[(n[0].item(), n[1].item(), n[2].item())] = cur
G.add_node(cur, label=n[3].item())
cur += 1
for k, v in splits.items():
Expand Down

0 comments on commit b536a40

Please sign in to comment.