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