bug描述 Describe the Bug
Values computed by simple operations in paddle deviate too much from expected result, see einops CI tests:
https://github.com/arogozhnikov/einops/actions/runs/10293928146/job/28491790703?pr=325
these are multiple tests running on CPU and checking behavior of simple operations like .sum() between numpy and other packages (including paddle)
tests fail for python=3.10 and paddle=2.6.1
tests pass for python=3.8 and paddle=2.6.1
Testing for paddle was thus switched off in einops.
其他补充信息 Additional Supplementary Information
No response
3条答案
按热度按时间kqqjbcuj1#
Thank you for your information, we will check it out and reply soon.
8cdiaqws2#
Could you provide the reproduction code for the issue?
4ktjp1zp3#
The main reason for the test failures is that
paddle.to_tensor
breaks when converting a NumPy array to a Paddle Tensor in paddlepaddle 2.6.1, Python 3.10, NumPy 2.1.0 setup.This has been solved in nightly build, i.e., when using https://github.com/arogozhnikov/einops/blob/master/test.py#L44, all of the tests passed, except
test_functional
, on case https://github.com/arogozhnikov/einops/blob/master/tests/test_einsum.py#L150. PR #67588 will fix this case.