<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/stackless.py#L284-L296) |

Returns whether the stackless machine is running a computation.

#### View aliases


**Main aliases**

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

<br />

    tfp.experimental.auto_batching.stackless.is_running()

This can be useful for writing special primitives that change their behavior
depending on whether they are being staged, run stackless, inferred (see
[`type_inference.is_inferring`](https://www.tensorflow.org/probability/api_docs/python/tfp/experimental/auto_batching/type_inference/is_inferring)), or none of the above (i.e., dry-run execution,
see [`frontend.Context.batch`](https://www.tensorflow.org/probability/api_docs/python/tfp/experimental/auto_batching/Context#batch)).

<br />

<br />

<br />

| ## Returns ||
|---|---|
| `running` | Python `bool`, `True` if this is called in the dynamic scope of stackless running, otherwise `False`. |

<br />