Skip to content

Commit

Permalink
try optimize=True with einsum
Browse files Browse the repository at this point in the history
closes #2583

can revert if this ends up problematic for some reason!
  • Loading branch information
mattjj committed Apr 21, 2020
1 parent 18f9674 commit 783e24f
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 783e24f

Please sign in to comment.