Skip to content

How does Jax handle loop invariants? #3770

Answered by thisiscam
thisiscam asked this question in General
Discussion options

You must be logged in to vote

My bad. What I found was wrong. Jax does perform LICM in some way (common computation of the gradient and the likelihood function is only done before entering the loop). Though I don't know how it's achieved, maybe through partial evaluation?

Replies: 1 comment 1 reply

Comment options

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

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