tf.contrib.graph_editor.TransformerInfo
Stay organized with collections
Save and categorize content based on your preferences.
"Contains information about the result of a transform operation.
tf.contrib.graph_editor.TransformerInfo(
info
)
Args |
info
|
an instance of Transformer._TmpInfo containing various internal
information about the transform operation.
|
Methods
original
View source
original(
transformed, missing_fn=None
)
Return the original op/tensor corresponding to the transformed one.
Note that the output of this function mimics the hierarchy
of its input argument transformed
.
Given an iterable, it returns a list. Given an operation or a tensor,
it will return an operation or a tensor.
Args |
transformed
|
the transformed tensor/operation.
|
missing_fn
|
function handling the case where the counterpart
cannot be found. By default, None is returned.
|
Returns |
the original tensor/operation (or None if no match is found).
|
View source
transformed(
original, missing_fn=None
)
Return the transformed op/tensor corresponding to the original one.
Note that the output of this function mimics the hierarchy
of its input argument original
.
Given an iterable, it returns a list. Given an operation or a tensor,
it will return an operation or a tensor.
Args |
original
|
the original tensor/operation.
|
missing_fn
|
function handling the case where the counterpart
cannot be found. By default, None is returned.
|
Returns |
the transformed tensor/operation (or None if no match is found).
|
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.TransformerInfo\n\n\u003cbr /\u003e\n\n|---------------------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/contrib/graph_editor/transform.py#L194-L316) |\n\n\"Contains information about the result of a transform operation. \n\n tf.contrib.graph_editor.TransformerInfo(\n info\n )\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ---- ||\n|--------|------------------------------------------------------------------------------------------------------------|\n| `info` | an instance of Transformer._TmpInfo containing various internal information about the transform operation. |\n\n\u003cbr /\u003e\n\nMethods\n-------\n\n### `original`\n\n[View source](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/contrib/graph_editor/transform.py#L281-L297) \n\n original(\n transformed, missing_fn=None\n )\n\nReturn the original op/tensor corresponding to the transformed one.\n\nNote that the output of this function mimics the hierarchy\nof its input argument `transformed`.\nGiven an iterable, it returns a list. Given an operation or a tensor,\nit will return an operation or a tensor.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ||\n|---------------|-------------------------------------------------------------------------------------------------|\n| `transformed` | the transformed tensor/operation. |\n| `missing_fn` | function handling the case where the counterpart cannot be found. By default, None is returned. |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ||\n|---|---|\n| the original tensor/operation (or None if no match is found). ||\n\n\u003cbr /\u003e\n\n### `transformed`\n\n[View source](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/contrib/graph_editor/transform.py#L263-L279) \n\n transformed(\n original, missing_fn=None\n )\n\nReturn the transformed op/tensor corresponding to the original one.\n\nNote that the output of this function mimics the hierarchy\nof its input argument `original`.\nGiven an iterable, it returns a list. Given an operation or a tensor,\nit will return an operation or a tensor.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ||\n|--------------|-------------------------------------------------------------------------------------------------|\n| `original` | the original tensor/operation. |\n| `missing_fn` | function handling the case where the counterpart cannot be found. By default, None is returned. |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ||\n|---|---|\n| the transformed tensor/operation (or None if no match is found). ||\n\n\u003cbr /\u003e"]]