TF 2.0 is out! Get hands-on practice at TF World, Oct 28-31. Use code TF20 for 20% off select passes. Register now


View source on GitHub

Creates an assignment operation from a given mapping.


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.


  • var_names_to_values: A map from variable names to values.


  • 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.


  • ValueError: if any of the given variable names were not found.