Skip to content

Commit

Permalink
Merge pull request #25055 from dfm:multi-dot
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 702039013
  • Loading branch information
Google-ML-Automation committed Dec 2, 2024
2 parents 385328b + 236d4c6 commit 46c748b
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 @@ -2119,7 +2119,7 @@ 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[call-overload]
optimize='optimal', precision=precision)
optimize='auto', precision=precision)


@export
Expand Down

0 comments on commit 46c748b

Please sign in to comment.