Skip to content

How to workaround the SVD issue with XLA #112

Closed Answered by jhoydis
pustovale asked this question in Q&A
Discussion options

You must be logged in to vote

Hi!

You can in principle put decorators around any part of the model you want. But you cannot put an XLA decorator around the entire model and then selectively exclude parts of the graph from it. So you would need to decorate specific components, e.g., the channel model and the receiver.

You could also try to implement SVD in a different manner. If an eigen decomposition would be sufficient, you could use tf.linalg.eigh which works with XLA. I am guessing that you might only need either u or v. You could then probably do something like this:

_, u = tf.linalg.eigh(tf.matmul(h,h,adjoint_b=True))
_, v = tf.linalg.eigh(tf.matmul(h,h,adjoint_a=True))

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@pustovale
Comment options

Answer selected by pustovale
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants