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 3486167 commit b853722
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions torch_struct/semimarkov.py
Expand Up @@ -61,8 +61,8 @@ def _dp(self, log_potentials, lengths=None, force_grad=False):
lp[:, :, 1:K]], dim=-1)
)
end = torch.min(lengths) - 1
for k in range(1, K - 1):
semiring.one_(init.data[:, :, : end - (k - 1), k - 1, k].diagonal(0, -2, -1))
# for k in range(1, K - 1):
# semiring.one_(init.data[:, :, : end - (k - 1), k - 1, k].diagonal(0, -2, -1))

K_1 = K - 1

Expand Down

0 comments on commit b853722

Please sign in to comment.