import tensorflow as tf

        self._final_state_name = self.with_prefix(self._name, 'final')
        for state_tuple in self._initial_state:
            tf.add_to_collection(self._initial_state_name, state_tuple.c)
            tf.add_to_collection(self._initial_state_name, state_tuple.h)
        for state_tuple in self._final_state:
            tf.add_to_collection(self._final_state_name, state_tuple.c)
