| 169 | } |
| 170 | |
| 171 | void AddWhileInputHack(TF_Graph* graph, TF_Output new_src, TF_Operation* dst, |
| 172 | TF_Status* status) { |
| 173 | mutex_lock l(graph->mu); |
| 174 | status->status = graph->graph.AddWhileInputHack(&new_src.oper->node, |
| 175 | new_src.index, &dst->node); |
| 176 | if (TF_GetCode(status) == TF_OK) { |
| 177 | // This modification only updates the destination node for |
| 178 | // the purposes of running this graph in a session. Thus, we don't |
| 179 | // record the source node as being modified. |
| 180 | RecordMutation(graph, *dst, "adding input tensor"); |
| 181 | } |
| 182 | } |
| 183 | |
| 184 | } // namespace tensorflow |
nothing calls this directly
no test coverage detected