contrib.copy_graph.copy_variable_to_graph
tf.contrib.copy_graph.copy_variable_to_graph
tf.contrib.copy_graph.copy_variable_to_graph
copy_variable_to_graph( org_instance, to_graph, scope='' )
Defined in tensorflow/contrib/copy_graph/python/util/copy_elements.py
.
Given a Variable
instance from one Graph
, initializes and returns a copy of it from another Graph
, under the specified scope (default ""
).
Args:
-
org_instance
: AVariable
from someGraph
. -
to_graph
: TheGraph
to copy theVariable
to. -
scope
: A scope for the newVariable
(default""
).
Returns:
The copied Variable
from to_graph
.
Raises:
-
TypeError
: Iforg_instance
is not aVariable
.
© 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/copy_graph/copy_variable_to_graph