Lines Matching defs:subgraph

15 """Class to transform an subgraph into another.
30 from tensorflow.contrib.graph_editor import subgraph
53 This handler is typically used to transform a subgraph input tensor into a
110 """Transform an optional op only if it is inside the subgraph.
113 if they are inside the subgraph, otherwise they are just ignored.
353 """Transform a subgraph into another one.
355 By default, the constructor create a transform which copy a subgraph and
370 the given subgraph. This handler defaults to creating placeholders
371 instead of the ops just before the input tensors of the subgraph.
373 hidden inputs of the subgraph, that is, the inputs which are not listed
379 subgraph, otherwise they are ignored.
399 sgv: the source subgraph-view.
411 `sgv` is the transformed subgraph view;
418 sgv = subgraph.make_view(sgv)
445 # TODO(fkp): return a subgraph?
488 """Transform a subgraph view.
490 For convenience, a transform operation returns a subgraph view of the
495 sgv: the subgraph to be transformed.
497 The transformed subgraph.
500 sgv_ = subgraph.SubGraphView(ops_)
531 # If op is not in the subgraph.
533 # t is an input of the subgraph.
536 # t is a hidden input of the subgraph.
539 # If op is in the subgraph, just return its transformed.
545 """Copy a subgraph.
548 sgv: the source subgraph-view. This argument is converted to a subgraph
549 using the same rules than the function subgraph.make_view.
558 `sgv` is the transformed subgraph view;
565 the same rules than the function subgraph.make_view.
567 sgv = subgraph.make_view(sgv)
581 """Copy a subgraph, replacing some of its inputs.
584 is an input of the given subgraph. The inputs of a subgraph can
588 sgv: the source subgraph-view. This argument is converted to a subgraph
589 using the same rules as the function subgraph.make_view.
600 `sgv` is the transformed subgraph view;
607 the same rules as the function subgraph.make_view.
609 sgv = subgraph.make_view(sgv)
660 # Create a copy of the relevant subgraph