-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Implement complex QR decomposition in HLO (TPU) #1274
Comments
The QR implementation we are using is implemented in XLA/HLO on all platforms and only supports real inputs. On CPU and GPU we should really be calling LAPACK and Cusolver implementations of QR decomposition anyway. Both libraries support complex inputs and would probably perform better than the HLO implementation on their respective platforms. On TPU we would need to add complex number support here: Which platform are you interested in? |
Hi! We'd be interested in all three. The ranking is CPU, GPU and TPU, with TPU the least important right now. Thanks for the quick reply! |
PR #1306 adds complex QR support on CPU and GPU. TPU is not yet implemented, so I'll leave this issue open and retitle it. |
awesome thanks! |
I got a similar error, from #3862, |
GE and LT are "greater than" and "less than", respectively. That error is saying that those operations aren't implemented for complex numbers. (NumPy implements them with a kind of weird convention, since complex numbers don't have a total ordering.) |
Thank you for your answer, Matthew. Would there be any plans for finalizing the conversion of complex comparison? Could we just follow the convention of NumPy in XLA first? Thank you. |
We've already fixed this at head! |
The following code raises
RuntimeError: Unimplemented: complex comparison 'LT'
Noticed this because one of our test cases fails (google/TensorNetwork#221)
The text was updated successfully, but these errors were encountered: