Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
da03 committed Oct 14, 2021
1 parent ada7645 commit 2f72847
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion torch_struct/semimarkov.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ def logpartition(self, log_potentials, lengths=None, force_grad=False):
c[:, :, : K - 1, 0] = semiring.sum(
torch.stack([c.data[:, :, : K - 1, 0], lp[:, :, 1:K]], dim=-1)
)
end = torch.max(lengths) - 1
mask = torch.zeros(*init.shape, device=log_potentials.device).bool()
for k in range(1, K - 1):
for b in range(batch):
Expand Down

0 comments on commit 2f72847

Please sign in to comment.