Skip to content

Commit 8ce0de5

Browse files
authored
fix einsum issue (#67588) (#67825)
Signed-off-by: Zhang Jun <[email protected]>
1 parent d16d420 commit 8ce0de5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/paddle/tensor/einsum.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -754,7 +754,7 @@ def fake_shape(ori_label, label, op):
754754
"length of shape and length of label must be the same, but received %d != %d"
755755
% (len(op.shape), len(label))
756756
)
757-
fakes = [s for i, (l, s) in enumerate(zip(label, op.shape)) if l != '.']
757+
fakes = [s for i, (l, s) in enumerate(zip(label, op.shape))]
758758
fakes = list(map(abs, fakes)) # make -1 -> 1
759759
if '.' in ori_label:
760760
fakes.insert(ori_label.index('.'), 1)

0 commit comments

Comments
 (0)