tf.contrib.framework.get_graph_from_inputs
Stay organized with collections
Save and categorize content based on your preferences.
Returns the appropriate graph to use for the given inputs.
tf.contrib.framework.get_graph_from_inputs(
op_input_list, graph=None
)
- If
graph
is provided, we validate that all inputs in op_input_list
are
from the same graph.
- Otherwise, we attempt to select a graph from the first Operation- or
Tensor-valued input in
op_input_list
, and validate that all other
such inputs are in the same graph.
- If the graph was not specified and it could not be inferred from
op_input_list
, we attempt to use the default graph.
Args |
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.
|
Raises |
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.
|
Returns |
The appropriate graph to use for the given inputs.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-10-01 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2020-10-01 UTC."],[],[]]