Skip to content
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

paddle.einsum is broken in dev version, and breaks tests in einops #63927

Open
arogozhnikov opened this issue Apr 27, 2024 · 1 comment
Open
Assignees

Comments

@arogozhnikov
Copy link

bug描述 Describe the Bug

Example to reproduce the problem:

import paddle
import numpy as np

x = np.zeros([2, 3], dtype=np.float32)
tensor = paddle.to_tensor(x)
tensor.stop_gradient = False

paddle.einsum('..., ... , ... -> ...', tensor, tensor, tensor)

result:

ValueError: Einstein sum subscript 'bn' does not contain the correct number of indices for operand 0.

Previous versions correctly handled this operation.

Example of job failure in einops tests: https://github.com/arogozhnikov/einops/actions/runs/8745826953/job/24001566418?pr=316

其他补充信息 Additional Supplementary Information

Currently I test with dev version (that's currently latest main):

pip install numpy paddlepaddle==0.0.0 -f https://www.paddlepaddle.org.cn/whl/linux/cpu-mkl/develop.html
paddle.version.show()
commit: 12692a4a715f4a7aa6c00f38ebdc0e86d88d5a42
cuda: False
cudnn: False
nccl: 0
xpu: False
xpu_xccl: False
xpu_xhpc: False
cinn: False

as I mentioned, previously paddle worked correctly.

@Galaxy1458
Copy link
Contributor

Thank you for your feedback!, we will push for fixing the bug after successful reproduction.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants