torchnet/engine/engine.py [47:54]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
            for sample in state['iterator']:
                state['sample'] = sample
                self.hook('on_sample', state)

                def closure():
                    loss, output = state['network'](state['sample'])
                    state['output'] = output
                    state['loss'] = loss
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



torchnet/engine/engine.py [80:87]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        for sample in state['iterator']:
            state['sample'] = sample
            self.hook('on_sample', state)

            def closure():
                loss, output = state['network'](state['sample'])
                state['output'] = output
                state['loss'] = loss
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



