diff options
author | Guillaume Horel | 2025-03-27 13:14:42 -0400 |
---|---|---|
committer | Guillaume Horel | 2025-03-27 13:15:28 -0400 |
commit | b2a08a509c64c3416a50aa096b41c0d6d9f6bc1f (patch) | |
tree | df06f400029d16cbd5e5f04f3456bc02801f78f2 /test.patch | |
parent | 9275cb093046a6ea78616d5b23337be1915f9d85 (diff) | |
download | aur-python-autograd.tar.gz |
update makedepends, fix test
Diffstat (limited to 'test.patch')
-rw-r--r-- | test.patch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test.patch b/test.patch new file mode 100644 index 000000000000..8d9beb07a8c4 --- /dev/null +++ b/test.patch @@ -0,0 +1,12 @@ +diff -urN autograd-1.7.0-orig/tests/test_scipy.py autograd-1.7.0/tests/test_scipy.py +--- autograd-1.7.0-orig/tests/test_scipy.py 2025-03-27 13:10:21.257950899 -0400 ++++ autograd-1.7.0/tests/test_scipy.py 2025-03-27 13:10:29.408092213 -0400 +@@ -124,7 +124,7 @@ + def test_dirichlet_logpdf_alpha(): combo_check(stats.dirichlet.logpdf, [1])([x], [alpha]) + + ### Misc ### +- def test_logsumexp1(): combo_check(special.logsumexp, [0], modes=['fwd', 'rev'])([1.1, R(4), R(3,4)], axis=[None, 0], keepdims=[True, False]) ++ def test_logsumexp1(): combo_check(special.logsumexp, [0], modes=['fwd', 'rev'])([np.array([1.1]), R(4), R(3,4)], axis=[None, 0], keepdims=[True, False]) + def test_logsumexp2(): combo_check(special.logsumexp, [0], modes=['fwd', 'rev'])([R(3,4), R(4,5,6), R(1,5)], axis=[None, 0, 1], keepdims=[True, False]) + def test_logsumexp3(): combo_check(special.logsumexp, [0], modes=['fwd', 'rev'])([R(4)], b = [np.exp(R(4))], axis=[None, 0], keepdims=[True, False]) + def test_logsumexp4(): combo_check(special.logsumexp, [0], modes=['fwd', 'rev'])([R(3,4),], b = [np.exp(R(3,4))], axis=[None, 0, 1], keepdims=[True, False]) |