Skip to content
Discussion options

You must be logged in to vote

I don't know of any documentation that summarizes the algebraic simplification rules implemented by XLA, but you can see it in the source code. For example, I believe this is the relevant implementation for XLA on CPU: https://github.com/tensorflow/tensorflow/blob/master/tensorflow/compiler/xla/service/algebraic_simplifier.cc

The header file may be easier to skim through, and has some useful comments: https://github.com/tensorflow/tensorflow/blob/master/tensorflow/compiler/xla/service/algebraic_simplifier.h

For example, here we see that A - A is simplified to 0 only for integer A.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@mariogeiger
Comment options

@jakevdp
Comment options

@mariogeiger
Comment options

Answer selected by mariogeiger
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