Skip to content

Commit

Permalink
Merge pull request #2786 from google/einsum-optimize-default
Browse files Browse the repository at this point in the history
try optimize=True default with einsum
  • Loading branch information
mattjj authored Apr 22, 2020
2 parents 6db1f0c + 783e24f commit ec03f8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jax/numpy/lax_numpy.py
Original file line number Diff line number Diff line change
Expand Up @@ -2558,7 +2558,7 @@ def tensordot(a, b, axes=2, precision=None):

@_wraps(onp.einsum, lax_description=_PRECISION_DOC)
def einsum(*operands, **kwargs):
optimize = kwargs.pop('optimize', 'auto')
optimize = kwargs.pop('optimize', True)
optimize = 'greedy' if optimize is True else optimize
precision = kwargs.pop('precision', None)
if kwargs:
Expand Down

0 comments on commit ec03f8e

Please sign in to comment.