Skip to content

fix einsum issue #67588

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 21, 2024
Merged

fix einsum issue #67588

merged 1 commit into from
Aug 21, 2024

Conversation

jzhang533
Copy link
Contributor

@jzhang533 jzhang533 commented Aug 20, 2024

PR Category

User Experience

PR Types

Bug fixes

Description

fix the following use case, which is simplified from https://github.com/arogozhnikov/einops/blob/master/tests/test_einsum.py

import paddle
import numpy as np

p = "..., ..., ... -> ..."
in_shapes = ((3, 2), (3, 2), (3, 2))

in_arrays = [np.random.uniform(size=shape).astype("float32") for shape in in_shapes]
paddle_in_arrays = [paddle.to_tensor(array) for array in in_arrays]

paddle.einsum(p, *paddle_in_arrays)

this bug seems being introduced in #61348, this PR is only a workaround.

please ignore the following
PCard-66972

Copy link

paddle-bot bot commented Aug 20, 2024

你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

Signed-off-by: Zhang Jun <jzhang533@gmail.com>
Copy link
Contributor

@2742195759 2742195759 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jzhang533 jzhang533 merged commit 0aa9377 into PaddlePaddle:develop Aug 21, 2024
28 checks passed
jzhang533 added a commit to jzhang533/Paddle that referenced this pull request Aug 29, 2024
Signed-off-by: Zhang Jun <jzhang533@gmail.com>
@jzhang533 jzhang533 mentioned this pull request Aug 29, 2024
jzhang533 added a commit to jzhang533/Paddle that referenced this pull request Sep 3, 2024
Signed-off-by: Zhang Jun <jzhang533@gmail.com>
phlrain pushed a commit that referenced this pull request Sep 6, 2024
Signed-off-by: Zhang Jun <jzhang533@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants