import tensorflow as tf


            if encoder.attend_inputs:
                encoder_outputs.append(encoder_inputs_)
            elif encoder.attend_both:
                encoder_outputs.append(tf.concat([encoder_inputs_, encoder_outputs_], axis=2))
            else:
                encoder_outputs.append(encoder_outputs_)

