(input_, seq_lengths, seq_dim, batch_dim)
| 410 | batch_dim = 1 |
| 411 | |
| 412 | def _reverse(input_, seq_lengths, seq_dim, batch_dim): |
| 413 | if seq_lengths is not None: |
| 414 | return array_ops.reverse_sequence( |
| 415 | input=input_, seq_lengths=seq_lengths, |
| 416 | seq_dim=seq_dim, batch_dim=batch_dim) |
| 417 | else: |
| 418 | return array_ops.reverse(input_, axis=[seq_dim]) |
| 419 | |
| 420 | with vs.variable_scope("bw") as bw_scope: |
| 421 | inputs_reverse = _reverse( |
no test coverage detected