def pre_adapt(self, exp):
        """Pre-adaptation.

        Remember to call this before training on a new experience.

        :param exp: current experience
        """
        for uo in self._updatable_objects:
            if hasattr(uo, "pre_adapt"):
                uo.pre_adapt(self, exp)
                if self.verbose:
                    print("pre_adapt ", uo)
        for foo in self._pre_hooks:
            if self.verbose:
                print("pre_adapt hook ", foo)
            foo(self, exp)
Pre-adaptation.

        Remember to call this before training on a new experience.

        :param exp: current experience
        
avalanche/core.py