import tensorflow as tf

            def get_initial_state(name='initial_state'):
                if encoder.train_initial_states:
                    initial_state = get_variable(name, initializer=tf.zeros(cell_state_size))
                    return tf.tile(tf.expand_dims(initial_state, axis=0), [batch_size, 1])
