<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/probability/blob/v0.25.0/tensorflow_probability/python/experimental/auto_batching/allocation_strategy.py) |

Live variable analysis.

#### View aliases


**Main aliases**

[`tfp.experimental.auto_batching.frontend.allocation_strategy`](https://www.tensorflow.org/probability/api_docs/python/tfp/experimental/auto_batching/allocation_strategy)

<br />

A variable is "dead" at some point if the compiler can find a proof that no
future instruction will read the value before that value is overwritten; "live"
otherwise.

This module implements a liveness analysis for the IR defined in
instructions.py.

## Functions

[`optimize(...)`](https://www.tensorflow.org/probability/api_docs/python/tfp/experimental/auto_batching/allocation_strategy/optimize): Optimizes a `Program`'s variable allocation strategy.