# tf.contrib.framework.assign_from_values

<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#L514-L566) |

Creates an assignment operation from a given mapping.

    tf.contrib.framework.assign_from_values(
        var_names_to_values
    )

This function provides a mechanism for performing assignment of variables
to values in a way that does not fill the graph with large assignment values.

<br />

<br />

<br />

| ## Args ||
|---|---|
| `var_names_to_values` | A map from variable names to values. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| `assign_op` | An `Operation` that assigns each of the given variables to the requested values. |
| `feed_dict` | The feed dictionary to use when evaluating `assign_op`. |

<br />

<br />

<br />

<br />

| ## Raises ||
|---|---|
| `ValueError` | if any of the given variable names were not found. |

<br />