Returns an operation that can be control-depended on that is dead iff `data` is dead.
| 84 | // Returns an operation that can be control-depended on that is dead iff `data` |
| 85 | // is dead. |
| 86 | Operation DataToControl(const Scope& scope, Output data) { |
| 87 | return Operation( |
| 88 | ops::Identity(scope.WithOpName("data_as_ctrl"), data).node()); |
| 89 | } |
| 90 | |
| 91 | // Replaces each outgoing edge from `old_node` with a merge node that merges in |
| 92 | // the corresponding output from `new_node`. |
no test coverage detected