Skip to content

Commit

Permalink
FIX test kronecker
Browse files Browse the repository at this point in the history
Account for numerical error.
  • Loading branch information
JeanKossaifi committed Jan 24, 2018
1 parent da78e9e commit 3dbf6bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tensorly/tenalg/tests/test_kronecker.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def test_kronecker():
# Khatri-rao product is a column-wise kronecker product
kr = khatri_rao(W)
for i, shape in enumerate(shapes):
T.assert_array_equal(res, kr)
T.assert_array_almost_equal(res, kr)

a = T.tensor([[1, 2],
[0, 3]])
Expand Down

0 comments on commit 3dbf6bd

Please sign in to comment.