Converts an Enter node.
(self, parent_pfor, enter)
| 328 | return pfor |
| 329 | |
| 330 | def _convert_enter(self, parent_pfor, enter): |
| 331 | """Converts an Enter node.""" |
| 332 | inp, stacked, _ = parent_pfor._convert_helper(enter.op.inputs[0]) |
| 333 | control_inputs = [ |
| 334 | parent_pfor._convert_helper(x).t for x in enter.op.control_inputs |
| 335 | ] |
| 336 | if control_inputs: |
| 337 | with ops.control_dependencies(control_inputs): |
| 338 | inp = array_ops.identity(inp) |
| 339 | return inp, stacked |
| 340 | |
| 341 | def _maybe_stacked(self, cache, inp): |
| 342 | """Heuristic to figue out if the coverting inp leads to a stacked value. |
no test coverage detected