Skip to content

Commit c0b678f

Browse files
committed
Enable grad when doing mst decoding
1 parent 8b98df9 commit c0b678f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

supar/structs/tree.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ def __add__(self, other):
5858

5959
@lazy_property
6060
def argmax(self):
61-
with torch.no_grad():
62-
return mst(self.scores, self.mask, self.multiroot)
61+
return mst(self.scores, self.mask, self.multiroot)
6362

6463
def kmax(self, k):
64+
# TODO: Camerini algorithm
6565
raise NotImplementedError
6666

6767
def sample(self):

0 commit comments

Comments
 (0)