tf.contrib.framework.assign_from_values
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.
Args | |
---|---|
var_names_to_values | A map from variable names to values. |
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 . |
Raises | |
---|---|
ValueError | if any of the given variable names were not found. |
© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/contrib/framework/assign_from_values