Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
srush committed Sep 8, 2019
1 parent 97d150e commit e979d19
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions torch_struct/deptree.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,9 @@ def _dp(self, arc_scores, lengths=None, force_grad=False):
batch, N, lengths = self._check_potentials(arc_scores, lengths)

DIRS = 2
s = MySlice.apply

#s = MySlice.apply
def s(input, e, a, b, c, d):
return input[e, :, a:b, c:d]
def stack(a, b):
return torch.stack([a, b])

Expand Down

0 comments on commit e979d19

Please sign in to comment.