Build the control outputs dictionary.
(self)
| 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 |
no test coverage detected