(input_, seq_lengths, seq_axis, batch_axis)
| 472 | batch_axis = 1 |
| 473 | |
| 474 | def _reverse(input_, seq_lengths, seq_axis, batch_axis): |
| 475 | if seq_lengths is not None: |
| 476 | return array_ops.reverse_sequence( |
| 477 | input=input_, |
| 478 | seq_lengths=seq_lengths, |
| 479 | seq_axis=seq_axis, |
| 480 | batch_axis=batch_axis) |
| 481 | else: |
| 482 | return array_ops.reverse(input_, axis=[seq_axis]) |
| 483 | |
| 484 | with vs.variable_scope("bw") as bw_scope: |
| 485 |
no test coverage detected