<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/instructions.py#L1205-L1237) |

Extracts a set of the variable names referenced by the node in question.

#### View aliases


**Main aliases**

[`tfp.experimental.auto_batching.frontend.instructions.extract_referenced_variables`](https://www.tensorflow.org/probability/api_docs/python/tfp/experimental/auto_batching/instructions/extract_referenced_variables), [`tfp.experimental.auto_batching.frontend.st.inst.extract_referenced_variables`](https://www.tensorflow.org/probability/api_docs/python/tfp/experimental/auto_batching/instructions/extract_referenced_variables), [`tfp.experimental.auto_batching.frontend.stack.inst.extract_referenced_variables`](https://www.tensorflow.org/probability/api_docs/python/tfp/experimental/auto_batching/instructions/extract_referenced_variables), [`tfp.experimental.auto_batching.stack_optimization.inst.extract_referenced_variables`](https://www.tensorflow.org/probability/api_docs/python/tfp/experimental/auto_batching/instructions/extract_referenced_variables), [`tfp.experimental.auto_batching.stackless.inst.extract_referenced_variables`](https://www.tensorflow.org/probability/api_docs/python/tfp/experimental/auto_batching/instructions/extract_referenced_variables)

<br />

    tfp.experimental.auto_batching.instructions.extract_referenced_variables(
        node
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `node` | Most structures from the VM, including ops, sequences of ops, blocks. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| `varnames` | `set` of variable names referenced by the node in question. |

<br />