diff options
author | Sebastian Berg <sebastian@sipsolutions.net> | 2018-08-12 17:46:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-12 17:46:44 +0200 |
commit | ebcbd4f4d8c761ac758e7ae9da4bc0d202f80fff (patch) | |
tree | 90900d69b15e8c311b0cd40b7a8d53123d24d2f0 | |
parent | a53ec84a2c3af41dc6d202f0fe15fb526e863c99 (diff) | |
parent | 7204258b7dce4b51186ce607e32bf6a4c1a2e3bc (diff) | |
download | numpy-ebcbd4f4d8c761ac758e7ae9da4bc0d202f80fff.tar.gz |
Merge pull request #11717 from charris/fix-einsum-default-optimize
MAINT: Make einsum optimize default to False.
-rw-r--r-- | numpy/core/einsumfunc.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/core/einsumfunc.py b/numpy/core/einsumfunc.py index 163f125c2..5b8689235 100644 --- a/numpy/core/einsumfunc.py +++ b/numpy/core/einsumfunc.py @@ -1319,8 +1319,8 @@ def einsum(*operands, **kwargs): """ - # Grab non-einsum kwargs; never optimize 2-argument case. - optimize_arg = kwargs.pop('optimize', len(operands) > 3) + # Grab non-einsum kwargs; do not optimize by default. + optimize_arg = kwargs.pop('optimize', False) # If no optimization, run pure einsum if optimize_arg is False: |