# tf.contrib.framework.get_variables_by_name

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/contrib/framework/python/ops/variables.py#L477-L488) |

Gets the list of variables that were given that name.

    tf.contrib.framework.get_variables_by_name(
        given_name, scope=None
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `given_name` | name given to the variable without any scope. |
| `scope` | an optional scope for filtering the variables to return. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| a copied list of variables with the given name and scope. ||

<br />