MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / _build

Method _build

tensorflow/contrib/graph_editor/util.py:366–376  ·  view source on GitHub ↗

Build the control outputs dictionary.

(self)

Source from the content-addressed store, hash-verified

364 return self
365
366 def _build(self):
367 """Build the control outputs dictionary."""
368 self._control_outputs.clear()
369 ops = self._graph.get_operations()
370 for op in ops:
371 for control_input in op.control_inputs:
372 if control_input not in self._control_outputs:
373 self._control_outputs[control_input] = []
374 if op not in self._control_outputs[control_input]:
375 self._control_outputs[control_input].append(op)
376 self._version = self._graph.version
377
378 def get_all(self):
379 return self._control_outputs

Callers 3

__init__Method · 0.95
updateMethod · 0.95
actual_buildMethod · 0.45

Calls 3

get_operationsMethod · 0.80
clearMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected