Add a new control input to this operation. Args: op: the Operation to add as control input. Raises: TypeError: if op is not an Operation. ValueError: if op is from a different graph.
(self, op)
| 2087 | c_api.AddControlInput(self._graph._c_graph, self._c_op, op._c_op) # pylint: disable=protected-access |
| 2088 | |
| 2089 | def _add_control_input(self, op): |
| 2090 | """Add a new control input to this operation. |
| 2091 | |
| 2092 | Args: |
| 2093 | op: the Operation to add as control input. |
| 2094 | |
| 2095 | Raises: |
| 2096 | TypeError: if op is not an Operation. |
| 2097 | ValueError: if op is from a different graph. |
| 2098 | """ |
| 2099 | if not isinstance(op, Operation): |
| 2100 | raise TypeError("op must be an Operation: %s" % op) |
| 2101 | c_api.AddControlInput(self._graph._c_graph, self._c_op, op._c_op) # pylint: disable=protected-access |
| 2102 | |
| 2103 | def _remove_all_control_inputs(self): |
| 2104 | """Removes any control inputs to this operation.""" |
no outgoing calls