Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sasha committed Nov 26, 2019
1 parent 5ee12a9 commit 6cae984
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torch_struct/semimarkov.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def _dp(self, log_potentials, lengths=None, force_grad=False):
chart = semiring.matmul(chart[:, :, 1::2], chart[:, :, 0::2])

final = chart.view(-1, batch, 1, K_1, C, K_1, C)
# v = semiring.sum(semiring.sum(final[:, :, 0, 0, :, 0, :]))
v = semiring.sum(semiring.sum(final[:, :, 0, 0, :, 0, :]))
return v, [log_potentials], None

# def _dp_standard(self, edge, lengths=None, force_grad=False):
Expand Down

0 comments on commit 6cae984

Please sign in to comment.