    def add_path(self, path):
        """Add a rollout to the replay pool.

        This default implementation naively goes through every step, but you
        may want to optimize this.

        NOTE: You should NOT call "terminate_episode" after calling add_path.
        It's assumed that this function handles the episode termination.

        :param path: Dict like one outputted by railrl.samplers.util.rollout
        """
        self.add_samples(path)
        self.terminate_episode()
Add a rollout to the replay pool.

This default implementation naively goes through every step, but you
may want to optimize this.

NOTE: You should NOT call "terminate_episode" after calling add_path.
It's assumed that this function handles the episode termination.

:param path: Dict like one outputted by railrl.samplers.util.rollout
softlearning/replay_pools/replay_pool.py