class tf.contrib.graph_editor.TransformerInfo
"Contains information about the result of a transform operation.
__init__(info)
Constructor.
info
: an instance of Transformer._TmpInfo containing various internal information about the transform operation.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.
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).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.
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).Defined in tensorflow/contrib/graph_editor/transform.py
.
© 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/graph_editor/TransformerInfo