tf.contrib.framework.assign_from_values_fn(var_names_to_values)
See the guide: Framework (contrib) > Variables
Returns a function that assigns specific variables from the given 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.
var_names_to_values
: A map from variable names to values.A function that takes a single argument, a tf.Session
, that applies the assignment operation.
ValueError
: if any of the given variable names were not found.Defined in tensorflow/contrib/framework/python/ops/variables.py
.
© 2017 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/api_docs/python/tf/contrib/framework/assign_from_values_fn