Skip to content

Commit

Permalink
Remove uses of deprecated argument sym_pos from `jax.scipy.linalg.s…
Browse files Browse the repository at this point in the history
…olve`

This was deprecated in JAX v0.3.16 (following a similar deprecation upstream in scipy), and is being removed after JAX v0.4.20.

PiperOrigin-RevId: 580868603
  • Loading branch information
Jake VanderPlas authored and copybara-github committed Nov 9, 2023
1 parent 4c65116 commit 218bead
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chirp/models/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ def least_squares_solve_mix(matrix, rhs, diag_loading=1e-3):
cov_matrix.shape[-1], dtype=cov_matrix.dtype
)
return scipy.linalg.solve(
cov_matrix, jnp.matmul(adj_matrix, rhs), sym_pos=True
cov_matrix, jnp.matmul(adj_matrix, rhs), assume_a='pos'
)


Expand Down

0 comments on commit 218bead

Please sign in to comment.