Skip to content

Commit

Permalink
jnp.linalg.multi_dot: use optimize='auto'
Browse files Browse the repository at this point in the history
  • Loading branch information
jakevdp committed May 9, 2024
1 parent 1e88e2f commit 5edfaa6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jax/_src/numpy/linalg.py
Original file line number Diff line number Diff line change
Expand Up @@ -2017,4 +2017,4 @@ def multi_dot(arrays: Sequence[ArrayLike], *, precision: PrecisionLike = None) -
if arrs[-1].ndim == 1:
einsum_axes[-1] = einsum_axes[-1][:1]
return jnp.einsum(*itertools.chain(*zip(arrs, einsum_axes)), # type: ignore[arg-type, call-overload]
optimize='optimal', precision=precision)
optimize='auto', precision=precision)

0 comments on commit 5edfaa6

Please sign in to comment.