deepy/trainers/base.py
def add_iter_controllers(self, *controllers):
        """
        Add iteration callbacks function (receives an argument of the trainer).
        :param controllers: can be a `TrainingController` or a function.
        :type funcs: list of TrainingContoller
        """
        for controller in controllers:
            if isinstance(controller, TrainingController):
                controller.bind(self)
            self._iter_controllers.append(controller)
def add_iter_controllers(self, *controllers):
        """
        Add iteration callbacks function (receives an argument of the trainer).
        :param controllers: can be a `TrainingController` or a function.
        :type funcs: list of TrainingContoller
        """
        for controller in controllers:
            if isinstance(controller, TrainingController):
                controller.bind(self)
            self._iter_controllers.append(controller)
def add_iter_controllers ( self , * controllers ) : for controller in controllers : if isinstance ( controller , TrainingController ) : controller . bind ( self ) self . _iter_controllers . append ( controller )
Add iteration callbacks function (receives an argument of the trainer).
        :param controllers: can be a `TrainingController` or a function.
        :type funcs: list of TrainingContoller
Add iteration callbacks function ( receives an argument of the trainer ) . : param controllers : can be a TrainingController or a function . : type funcs : list of TrainingContoller