LostTech.TensorFlow : API Documentation

Type Transformer

Namespace tensorflow.contrib.graph_editor

Parent PythonObjectContainer

Interfaces ITransformer

Transform a subgraph into another one.

By default, the constructor create a transform which copy a subgraph and replaces inputs with placeholders. This behavior can be modified by changing the handlers.

Methods

Properties

Public instance methods

ValueTuple<object, TransformerInfo> __call__(IEnumerable<object> sgv, Graph dst_graph, string dst_scope, string src_scope, bool reuse_dst_scope)

Execute the transformation.
Parameters
IEnumerable<object> sgv
the source subgraph-view.
Graph dst_graph
the destination graph.
string dst_scope
the destination scope.
string src_scope
the source scope, which specify the path from which the relative path of the transformed nodes are computed. For instance, if src_scope is a/ and dst_scoped is b/, then the node a/x/y will have a relative path of x/y and will be transformed into b/x/y.
bool reuse_dst_scope
if True the dst_scope is re-used if it already exists. Otherwise, the scope is given a unique name based on the one given by appending an underscore followed by a digit (default).
Returns
ValueTuple<object, TransformerInfo>
A tuple `(sgv, info)` where: `sgv` is the transformed subgraph view; `info` is an instance of TransformerInfo containing information about the transform, including mapping between original and transformed tensors and operations.

ValueTuple<object, TransformerInfo> __call__(SubGraphView sgv, Graph dst_graph, string dst_scope, string src_scope, bool reuse_dst_scope)

Execute the transformation.
Parameters
SubGraphView sgv
the source subgraph-view.
Graph dst_graph
the destination graph.
string dst_scope
the destination scope.
string src_scope
the source scope, which specify the path from which the relative path of the transformed nodes are computed. For instance, if src_scope is a/ and dst_scoped is b/, then the node a/x/y will have a relative path of x/y and will be transformed into b/x/y.
bool reuse_dst_scope
if True the dst_scope is re-used if it already exists. Otherwise, the scope is given a unique name based on the one given by appending an underscore followed by a digit (default).
Returns
ValueTuple<object, TransformerInfo>
A tuple `(sgv, info)` where: `sgv` is the transformed subgraph view; `info` is an instance of TransformerInfo containing information about the transform, including mapping between original and transformed tensors and operations.

ValueTuple<object, TransformerInfo> __call__(Graph sgv, Graph dst_graph, string dst_scope, string src_scope, bool reuse_dst_scope)

Execute the transformation.
Parameters
Graph sgv
the source subgraph-view.
Graph dst_graph
the destination graph.
string dst_scope
the destination scope.
string src_scope
the source scope, which specify the path from which the relative path of the transformed nodes are computed. For instance, if src_scope is a/ and dst_scoped is b/, then the node a/x/y will have a relative path of x/y and will be transformed into b/x/y.
bool reuse_dst_scope
if True the dst_scope is re-used if it already exists. Otherwise, the scope is given a unique name based on the one given by appending an underscore followed by a digit (default).
Returns
ValueTuple<object, TransformerInfo>
A tuple `(sgv, info)` where: `sgv` is the transformed subgraph view; `info` is an instance of TransformerInfo containing information about the transform, including mapping between original and transformed tensors and operations.

ValueTuple<object, TransformerInfo> __call__(object sgv, Graph dst_graph, string dst_scope, string src_scope, bool reuse_dst_scope)

Execute the transformation.
Parameters
object sgv
the source subgraph-view.
Graph dst_graph
the destination graph.
string dst_scope
the destination scope.
string src_scope
the source scope, which specify the path from which the relative path of the transformed nodes are computed. For instance, if src_scope is a/ and dst_scoped is b/, then the node a/x/y will have a relative path of x/y and will be transformed into b/x/y.
bool reuse_dst_scope
if True the dst_scope is re-used if it already exists. Otherwise, the scope is given a unique name based on the one given by appending an underscore followed by a digit (default).
Returns
ValueTuple<object, TransformerInfo>
A tuple `(sgv, info)` where: `sgv` is the transformed subgraph view; `info` is an instance of TransformerInfo containing information about the transform, including mapping between original and transformed tensors and operations.

object __call___dyn(object sgv, object dst_graph, object dst_scope, ImplicitContainer<T> src_scope, ImplicitContainer<T> reuse_dst_scope)

Execute the transformation.
Parameters
object sgv
the source subgraph-view.
object dst_graph
the destination graph.
object dst_scope
the destination scope.
ImplicitContainer<T> src_scope
the source scope, which specify the path from which the relative path of the transformed nodes are computed. For instance, if src_scope is a/ and dst_scoped is b/, then the node a/x/y will have a relative path of x/y and will be transformed into b/x/y.
ImplicitContainer<T> reuse_dst_scope
if True the dst_scope is re-used if it already exists. Otherwise, the scope is given a unique name based on the one given by appending an underscore followed by a digit (default).
Returns
object
A tuple `(sgv, info)` where: `sgv` is the transformed subgraph view; `info` is an instance of TransformerInfo containing information about the transform, including mapping between original and transformed tensors and operations.

Public properties

object assign_collections_handler get; set;

object PythonObject get;

object transform_control_input_handler get; set;

object transform_external_hidden_input_handler get; set;

object transform_external_input_handler get; set;

object transform_op_handler get; set;

object transform_original_op_handler get; set;