Type TransformerInfo
Namespace tensorflow.contrib.graph_editor
Parent PythonObjectContainer
Interfaces ITransformerInfo
"Contains information about the result of a transform operation.
Methods
- original
- original
- original
- original_dyn
- transformed
- transformed
- transformed
- transformed
- transformed
- transformed
- transformed
- transformed_dyn
Properties
Public instance methods
Nullable<ValueTuple<object>> original(IDictionary<object, object> transformed, PythonFunctionContainer missing_fn)
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.
Parameters
-
IDictionary<object, object>
transformed - the transformed tensor/operation.
-
PythonFunctionContainer
missing_fn - function handling the case where the counterpart cannot be found. By default, None is returned.
Returns
-
Nullable<ValueTuple<object>>
- the original tensor/operation (or None if no match is found).
Nullable<ValueTuple<object>> original(IEnumerable<object> transformed, PythonFunctionContainer missing_fn)
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.
Parameters
-
IEnumerable<object>
transformed - the transformed tensor/operation.
-
PythonFunctionContainer
missing_fn - function handling the case where the counterpart cannot be found. By default, None is returned.
Returns
-
Nullable<ValueTuple<object>>
- the original tensor/operation (or None if no match is found).
Nullable<ValueTuple<object>> original(object transformed, PythonFunctionContainer missing_fn)
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.
Parameters
-
object
transformed - the transformed tensor/operation.
-
PythonFunctionContainer
missing_fn - function handling the case where the counterpart cannot be found. By default, None is returned.
Returns
-
Nullable<ValueTuple<object>>
- the original tensor/operation (or None if no match is found).
object original_dyn(object transformed, object missing_fn)
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.
Parameters
-
object
transformed - the transformed tensor/operation.
-
object
missing_fn - function handling the case where the counterpart cannot be found. By default, None is returned.
Returns
-
object
- the original tensor/operation (or None if no match is found).
object transformed(bool original, PythonFunctionContainer missing_fn)
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.
Parameters
-
bool
original - the original tensor/operation.
-
PythonFunctionContainer
missing_fn - function handling the case where the counterpart cannot be found. By default, None is returned.
Returns
-
object
- the transformed tensor/operation (or None if no match is found).
object transformed(IDictionary<string, object> original, PythonFunctionContainer missing_fn)
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.
Parameters
-
IDictionary<string, object>
original - the original tensor/operation.
-
PythonFunctionContainer
missing_fn - function handling the case where the counterpart cannot be found. By default, None is returned.
Returns
-
object
- the transformed tensor/operation (or None if no match is found).
object transformed(IEnumerable<IGraphNodeBase> original, PythonFunctionContainer missing_fn)
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.
Parameters
-
IEnumerable<IGraphNodeBase>
original - the original tensor/operation.
-
PythonFunctionContainer
missing_fn - function handling the case where the counterpart cannot be found. By default, None is returned.
Returns
-
object
- the transformed tensor/operation (or None if no match is found).
object transformed(ValueTuple<IEnumerable<object>, object> original, PythonFunctionContainer missing_fn)
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.
Parameters
-
ValueTuple<IEnumerable<object>, object>
original - the original tensor/operation.
-
PythonFunctionContainer
missing_fn - function handling the case where the counterpart cannot be found. By default, None is returned.
Returns
-
object
- the transformed tensor/operation (or None if no match is found).
object transformed(int original, PythonFunctionContainer missing_fn)
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.
Parameters
-
int
original - the original tensor/operation.
-
PythonFunctionContainer
missing_fn - function handling the case where the counterpart cannot be found. By default, None is returned.
Returns
-
object
- the transformed tensor/operation (or None if no match is found).
object transformed(IGraphNodeBase original, PythonFunctionContainer missing_fn)
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.
Parameters
-
IGraphNodeBase
original - the original tensor/operation.
-
PythonFunctionContainer
missing_fn - function handling the case where the counterpart cannot be found. By default, None is returned.
Returns
-
object
- the transformed tensor/operation (or None if no match is found).
object transformed(PythonClassContainer original, PythonFunctionContainer missing_fn)
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.
Parameters
-
PythonClassContainer
original - the original tensor/operation.
-
PythonFunctionContainer
missing_fn - function handling the case where the counterpart cannot be found. By default, None is returned.
Returns
-
object
- the transformed tensor/operation (or None if no match is found).
object transformed_dyn(object original, object missing_fn)
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.
Parameters
-
object
original - the original tensor/operation.
-
object
missing_fn - function handling the case where the counterpart cannot be found. By default, None is returned.
Returns
-
object
- the transformed tensor/operation (or None if no match is found).