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

Pow operator complex32 type UT failure on Windows #842

Open
Kanya-Mo opened this issue Aug 29, 2024 · 0 comments
Open

Pow operator complex32 type UT failure on Windows #842

Kanya-Mo opened this issue Aug 29, 2024 · 0 comments
Assignees

Comments

@Kanya-Mo
Copy link
Contributor

Kanya-Mo commented Aug 29, 2024

🐛 Describe the bug

(Windows only) Pow operator gives incorrect result in UT test_binary_ufuncs_xpu.py::TestBinaryUfuncsXPU::test_pow_xpu_float16.
#798 is to fix this failure. However, additional overhead was introduced in type cast so we need to record this.

The failure is related to the cast of complex half type in kernel. If we convert with opmath_t{}, other ops like log will also gives incorrect results.

Versions

torch-xpu-ops: 47cbc58
pytorch: c8626a4e1f0553c8a9af32515555409d151a00c0

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

3 participants