# tf_agents.utils.common.extract_shared_variables

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/agents/blob/v0.19.0/tf_agents/utils/common.py#L1282-L1306) |

Separates shared variables from the given collections.

    tf_agents.utils.common.extract_shared_variables(
        variables_1, variables_2
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `variables_1` | An iterable of Variables |
| `variables_2` | An iterable of Variables |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A Tuple of ObjectIdentitySets described by the set operations <br /> (variables_1 - variables_2, variables_2 - variables_1, variables_1 & variables_2) <br /> ||

<br />