np.einsum documentation says that the optimize arg default is True:
|
function. See ``np.einsum_path`` for more details. Default is True. |
but when the argument is missing, it defaults to False:
|
optimize_arg = kwargs.pop('optimize', False) |
Proposed fix: change the argument to default to True, as it makes sense to use optimization unless explicitly disabled