Check that all gradient methods run without error.
(nx)
| 134 | |
| 135 | |
| 136 | def test_backend(nx): |
| 137 | """Check that all gradient methods run without error.""" |
| 138 | batchsize = 2 |
| 139 | n = 4 |
| 140 | d = 2 |
| 141 | X = np.random.randn(batchsize, n, d) |
| 142 | X = nx.from_numpy(X) |
| 143 | M = dist_batch(X, X) |
| 144 | solve_batch(M, reg=0.1, max_iter=10, tol=1e-5) |
| 145 | solve_sample_batch(X, X, reg=0.1, max_iter=10, tol=1e-5) |
nothing calls this directly
no test coverage detected