Skip to content

Commit c875d93

Browse files
JohnReidJohn Reid
and
John Reid
authored
Fix log partition function name (#96)
Co-authored-by: John Reid <[email protected]>
1 parent e3b04e3 commit c875d93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torch_struct/alignment.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def _check_potentials(self, edge, lengths=None):
4545
assert max(lengths) == N, "One length must be at least N"
4646
return edge, batch, N, M, lengths
4747

48-
def logparition(self, log_potentials, lengths=None, force_grad=False, cache=True):
48+
def logpartition(self, log_potentials, lengths=None, force_grad=False, cache=True):
4949
return self._dp_scan(log_potentials, lengths, force_grad)
5050

5151
def _dp_scan(self, log_potentials, lengths=None, force_grad=False):

0 commit comments

Comments
 (0)