10000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1bd60c9 commit 0ba249aCopy full SHA for 0ba249a
numpy/core/einsumfunc.py
@@ -1109,7 +1109,7 @@ def einsum(*operands, **kwargs):
1109
# Checks have already been handled
1110
input_str, results_index = einsum_str.split('->')
1111
input_left, input_right = input_str.split(',')
1112
- if 1 in tmp_operands[0] or 1 in tmp_operands[1]:
+ if 1 in tmp_operands[0].shape or 1 in tmp_operands[1].shape:
1113
left_dims = {dim: size for dim, size in
1114
zip(input_left, tmp_operands[0].shape)}
1115
right_dims = {dim: size for dim, size in
0 commit comments