tf.contrib.framework.get_graph_from_inputs(
op_input_list,
graph=None
)
Defined in tensorflow/contrib/framework/python/ops/ops.py.
See the guide: Framework (contrib)
Returns the appropriate graph to use for the given inputs.
graph is provided, we validate that all inputs in op_input_list are from the same graph.op_input_list, and validate that all other such inputs are in the same graph.op_input_list, we attempt to use the default graph.op_input_list: A list of inputs to an operation, which may include Tensor, Operation, and other objects that may be converted to a graph element.graph: (Optional) The explicit graph to use.TypeError: If op_input_list is not a list or tuple, or if graph is not a Graph.ValueError: If a graph is explicitly passed and not all inputs are from it, or if the inputs are from multiple graphs, or we could not find a graph and there was no default graph.The appropriate graph to use for the given inputs.
© 2018 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/get_graph_from_inputs