import tensorflow as tf

            return None, self._loss, sampled_words

    def calculate_encoder_features(self, encoder_states, encoder_dim):
        options = self.options
        input_shape = tf.shape(encoder_states)
        batch_size = input_shape[0]
        passage_len = input_shape[1]

