(self, decode_results)
return lstm_utils.LstmDecodeResults(
        rnn_output=rnn_output,
        rnn_input=rnn_input,
        samples=tf.concat(zipped_results.samples, axis=time_axis),
        final_state=zipped_results.final_state[-1],
        final_sequence_lengths=tf.stack(
            zipped_results.final_sequence_lengths, axis=time_axis))
Merge across time.
Merge across time.
Merge across time .
def _merge_decode_results(self, decode_results):
    """Merge across time."""
    assert decode_results
    time_axis = 1
    zipped_results = lstm_utils.LstmDecodeResults(*list(zip(*decode_results)))
    if zipped_results.rnn_output[0] is None:
      rnn_output = None
      rnn_input = None
    else:
      rnn_output = tf.concat(zipped_results.rnn_output, axis=time_axis)
      rnn_input = tf.concat(zipped_results.rnn_input, axis=time_axis)
    return lstm_utils.LstmDecodeResults(
        rnn_output=rnn_output,
        rnn_input=rnn_input,
        samples=tf.concat(zipped_results.samples, axis=time_axis),
        final_state=zipped_results.final_state[-1],
        final_sequence_lengths=tf.stack(
            zipped_results.final_sequence_lengths, axis=time_axis))
def _merge_decode_results ( self , decode_results ) : assert decode_results time_axis = 1 zipped_results = lstm_utils . LstmDecodeResults ( * list ( zip ( * decode_results ) ) ) if zipped_results . rnn_output [ 0 ] is None : rnn_output = None rnn_input = None else : rnn_output = tf . concat ( zipped_results . rnn_output , axis = time_axis ) rnn_input = tf . concat ( zipped_results . rnn_input , axis = time_axis ) return lstm_utils . LstmDecodeResults ( rnn_output = rnn_output , rnn_input = rnn_input , samples = tf . concat ( zipped_results . samples , axis = time_axis ) , final_state = zipped_results . final_state [ - 1 ] , final_sequence_lengths = tf . stack ( zipped_results . final_sequence_lengths , axis = time_axis ) )