Searched refs:sgv (Results 1 - 9 of 9) sorted by relevance
/external/tensorflow/tensorflow/contrib/graph_editor/ |
H A D | edit.py | 38 def detach_control_inputs(sgv): 39 """Detach all the external control inputs of the subgraph sgv. 42 sgv: the subgraph view to be detached. This argument is converted to a 45 sgv = subgraph.make_view(sgv) 46 for op in sgv.ops: 47 cops = [cop for cop in op.control_inputs if cop not in sgv.ops] 51 def detach_control_outputs(sgv, control_outputs): 52 """Detach all the external control outputs of the subgraph sgv. 55 sgv [all...] |
H A D | transform.py | 123 if op in info.sgv.ops: 316 def __init__(self, sgv, dst_graph, dst_scope, src_scope): 317 self.sgv = sgv 318 self.sgv_inputs_set = frozenset(sgv.inputs) 319 self.ops = frozenset(sgv.ops) 320 self.control_outputs = util.ControlOutputs(sgv.graph) 321 self.graph = sgv.graph 374 in sgv.inputs. This handler defaults to a transform which keep the same 391 sgv, [all...] |
H A D | __init__.py | 39 sgv = _subgraph.make_view variable
|
H A D | subgraph.py | 164 this is to use subgraphs within a "with make_sgv(...) as sgv:" Python context. 542 with ge.make_sgv(...) as sgv: 543 print(sgv) 604 def _check_graph(sgv, graph): 605 """Check if sgv belongs to the given graph. 608 sgv: a SubGraphView. 611 The SubGraphView sgv. 613 TypeError: if sgv is not a SubGraphView or if graph is not None and not 615 ValueError: if the graph of sgv and the given graph are not None and 618 if not isinstance(sgv, SubGraphVie [all...] |
H A D | util.py | 174 for i, sgv in enumerate(args): 175 if graph is None and sgv.graph is not None: 176 graph = sgv.graph 177 elif sgv.graph is not None and sgv.graph is not graph:
|
/external/tensorflow/tensorflow/contrib/graph_editor/tests/ |
H A D | subgraph_test.py | 45 sgv = ge.sgv(self.graph) 46 self.assertEqual(list(sgv.outputs), [self.e, self.h]) 47 self.assertEqual(list(sgv.inputs), []) 48 self.assertEqual(len(sgv.ops), 8) 50 sgv = ge.sgv(self.f.op, self.g.op) 51 self.assertEqual(list(sgv.outputs), [self.f, self.g]) 52 self.assertEqual(list(sgv.inputs), [self.c, self.d, self.a]) 54 sgv [all...] |
H A D | edit_test.py | 53 sgv = ge.sgv(self.c.op, self.a.op) 55 ge.detach(sgv, control_ios=control_outputs) 67 sgv = ge.sgv(x.op, y.op, z.op) 68 ge.connect(sgv, ge.sgv(self.e.op).remap_inputs([0])) 74 ge.bypass(ge.sgv(self.f.op).remap_inputs([0]))
|
H A D | reroute_test.py | 51 ge.swap_ios(ge.sgv(a3.op).remap_outputs([0, 0]), 52 ge.sgv(self.a0.op, self.a1.op)) 83 sgv0 = ge.sgv(a.op, b.op, c.op) 84 sgv1 = ge.sgv(e.op, f.op)
|
H A D | transform_test.py | 78 sgv = ge.make_view([assert_op, eq.op, a.op, b.op]) 80 _, info = copier(sgv, sgv.graph, "", "") 117 sgv, _ = ge.copy_with_input_replacements(self.o.op, 120 val = sess.run(sgv.outputs[0])
|
Completed in 110 milliseconds