Skip to content

lax cond allocating memory for inactive branch? #17463

Discussion options

You must be logged in to vote

So XLA performs all memory allocation up-front, i.e. there is no dynamic memory allocation. In particular that means it has to allocate enough memory to support either branch of the cond.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@patrick-kidger
Comment options

Answer selected by mavenlin
@mavenlin
Comment options

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