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.asin()算子在不同操作系统下计算的结果不同 #69646

Open
rookieLiu2018 opened this issue Nov 23, 2024 · 3 comments
Open

paddle.asin()算子在不同操作系统下计算的结果不同 #69646

rookieLiu2018 opened this issue Nov 23, 2024 · 3 comments
Assignees

Comments

@rookieLiu2018
Copy link

bug描述 Describe the Bug

import paddle
import numpy as np
print(paddle.__version__)
paddle.set_device("cpu")
x = paddle.to_tensor([complex(float('nan'), 0), complex(0, float('nan')), complex(float('nan'), float('nan'))], dtype=paddle.complex128)
out = paddle.asin(x).numpy()
print("CPU Output:", out)
np_out = np.arcsin(np.array([complex(np.nan, 0), complex(0, np.nan), complex(np.nan, np.nan)], dtype='complex128'))
print("Numpy Output:", np_out)

以上代码在windows10操作系统上所输出的结果为:

2.6.2
CPU Output: [nan+nanj nan+nanj nan+nanj]
Numpy Output: [nan+nanj  0.+nanj nan+nanj]

计算结果与Numpy计算结果不同
当我尝试在colab中复现结果,输出的结果却不同,colab中的系统为 Ubuntu 22.04.3 LTS (x86_64)

2.6.2
CPU Output: [nan+nanj  0.+nanj nan+nanj]
Numpy Output: [nan+nanj  0.+nanj nan+nanj]

其他补充信息 Additional Supplementary Information

No response

@liym27
Copy link
Contributor

liym27 commented Nov 23, 2024

你好,我们看下问题,稍后回复您。

@rookieLiu2018
Copy link
Author

在最近的3.0.0-beta2版本上,windows系统中仍然可以复现该问题

@liym27
Copy link
Contributor

liym27 commented Nov 25, 2024

在最近的3.0.0-beta2版本上,windows系统中仍然可以复现该问题

好的,感谢反馈。该问题已反馈给负责同事,稍后我们将修复该问题。@wtmlon

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