tf.contrib.graph_editor.make_view
Stay organized with collections
Save and categorize content based on your preferences.
Create a SubGraphView from selected operations and passthrough tensors.
View aliases
Main aliases
`tf.contrib.graph_editor.sgv`
tf.contrib.graph_editor.make_view(
*args, **kwargs
)
Args |
*args
|
list of 1) regular expressions (compiled or not) or 2) (array of)
tf.Operation 3) (array of) tf.Tensor . Those objects will be converted
into a list of operations and a list of candidate for passthrough tensors.
|
**kwargs
|
keyword graph is used 1) to check that the ops and ts are from
the correct graph 2) for regular expression query
|
Raises |
TypeError
|
if the optional keyword argument graph is not a tf.Graph
or if an argument in args is not an (array of) tf.Tensor
or an (array of) tf.Operation or a string or a regular expression.
|
ValueError
|
if one of the keyword arguments is unexpected.
|
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.
[null,null,["Last updated 2020-10-01 UTC."],[],[],null,["# tf.contrib.graph_editor.make_view\n\n\u003cbr /\u003e\n\n|--------------------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/contrib/graph_editor/subgraph.py#L629-L655) |\n\nCreate a SubGraphView from selected operations and passthrough tensors.\n\n#### View aliases\n\n\n**Main aliases**\n\n\\`tf.contrib.graph_editor.sgv\\`\n\n\u003cbr /\u003e\n\n tf.contrib.graph_editor.make_view(\n *args, **kwargs\n )\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ---- ||\n|------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `*args` | list of 1) regular expressions (compiled or not) or 2) (array of) [`tf.Operation`](../../../tf/Operation) 3) (array of) [`tf.Tensor`](../../../tf/Tensor). Those objects will be converted into a list of operations and a list of candidate for passthrough tensors. |\n| `**kwargs` | keyword graph is used 1) to check that the ops and ts are from the correct graph 2) for regular expression query |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ------- ||\n|---|---|\n| A subgraph view. ||\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Raises ------ ||\n|--------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `TypeError` | if the optional keyword argument graph is not a [`tf.Graph`](../../../tf/Graph) or if an argument in args is not an (array of) [`tf.Tensor`](../../../tf/Tensor) or an (array of) [`tf.Operation`](../../../tf/Operation) or a string or a regular expression. |\n| `ValueError` | if one of the keyword arguments is unexpected. |\n\n\u003cbr /\u003e"]]