<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/frontend.py) |

AutoGraph-based auto-batching frontend.

## Modules

[`ab_type_inference`](https://www.tensorflow.org/probability/api_docs/python/tfp/experimental/auto_batching/type_inference) module: Type inference pass on functional control flow graph.

[`allocation_strategy`](https://www.tensorflow.org/probability/api_docs/python/tfp/experimental/auto_batching/allocation_strategy) module: Live variable analysis.

[`dsl`](https://www.tensorflow.org/probability/api_docs/python/tfp/experimental/auto_batching/dsl) module: Python-embedded DSL frontend for authoring autobatchable IR programs.

[`gast_util`](https://www.tensorflow.org/probability/api_docs/python/tfp/experimental/auto_batching/frontend/gast_util) module: Gast compatibility library. Supports 0.2.2 and 0.3.2.

[`instructions`](https://www.tensorflow.org/probability/api_docs/python/tfp/experimental/auto_batching/instructions) module: Instruction language for auto-batching virtual machine.

[`lowering`](https://www.tensorflow.org/probability/api_docs/python/tfp/experimental/auto_batching/lowering) module: Lowering the full IR to stack machine instructions.

[`st`](https://www.tensorflow.org/probability/api_docs/python/tfp/experimental/auto_batching/stackless) module: A stackless auto-batching VM.

[`stack`](https://www.tensorflow.org/probability/api_docs/python/tfp/experimental/auto_batching/stack_optimization) module: Optimizing stack usage (pushes and pops).

[`tf_backend`](https://www.tensorflow.org/probability/api_docs/python/tfp/experimental/auto_batching/tf_backend) module: TensorFlow (graph) backend for auto-batching VM.

[`vm`](https://www.tensorflow.org/probability/api_docs/python/tfp/experimental/auto_batching/virtual_machine) module: The auto-batching VM itself.

## Classes

[`class Context`](https://www.tensorflow.org/probability/api_docs/python/tfp/experimental/auto_batching/Context): Context object for auto-batching multiple Python functions together.

## Functions

[`truthy(...)`](https://www.tensorflow.org/probability/api_docs/python/tfp/experimental/auto_batching/truthy): Normalizes Tensor ranks for use in `if` conditions.

<br />

<br />

<br />

| ## Other Members ||
|---|---|
| TF_BACKEND | Instance of [`tfp.experimental.auto_batching.TensorFlowBackend`](https://www.tensorflow.org/probability/api_docs/python/tfp/experimental/auto_batching/TensorFlowBackend) |

<br />