Skip to content

Commit 7cd41bc

Browse files
committed
fix einsum issue (PaddlePaddle#67588)
Signed-off-by: Zhang Jun <jzhang533@gmail.com>
1 parent 94c6682 commit 7cd41bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/paddle/tensor/einsum.py

Lines changed: 1 addition & 1 deletion
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)