Skip to content

Commit

Permalink
Fix bug and test
Browse files Browse the repository at this point in the history
  • Loading branch information
wesselb committed Sep 4, 2021
1 parent 8965ec6 commit 9cea80d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion matrix/ops/sum.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def sum(a: Woodbury, axis: Union[B.Int, None] = None):
else:
# We're summing over batch dimensions: align the batches first.
diag, lr = align_batch(a.diag, a.lr)
axis = resolved_axis(a, axis)
axis = resolve_axis(a, axis)
return B.sum(diag, axis=axis) + B.sum(lr, axis=axis)


Expand Down
4 changes: 2 additions & 2 deletions tests/ops/test_shape.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from lab.shape import Shape

from matrix.ops.shape import _drop_axis

# noinspection PyUnresolvedReferences
from ..util import (
AssertDenseWarning,
Expand Down Expand Up @@ -88,4 +87,5 @@ def test_drop_axis():


def test_shape_tb(shape, tb1):
check_un_op(shape, tb1, asserted_type=(tuple, Shape))
with AssertDenseWarning(["tiling", "concatenating"]):
check_un_op(shape, tb1, asserted_type=(tuple, Shape))

0 comments on commit 9cea80d

Please sign in to comment.