4ba6e85223cdd4dd020f0414895b530c85d134cf,catalyst/dl/callbacks/logging.py,ConsoleLogger,on_stage_start,#ConsoleLogger#Any#,135

Before Change


    def on_stage_start(self, state: RunnerState):
        Prepare ``state.logdir`` for the current stage
        assert state.logdir is not None
        state.logdir.mkdir(parents=True, exist_ok=True)
        self.logger = self._get_logger(state.logdir)

    def on_stage_end(self, state):
        Called at the end of each stage

After Change



    def on_stage_start(self, state: RunnerState):
        Prepare ``state.logdir`` for the current stage
        if state.logdir:
            state.logdir.mkdir(parents=True, exist_ok=True)
        self.logger = self._get_logger(state.logdir)

    def on_stage_end(self, state):
        Called at the end of each stage
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: catalyst-team/catalyst
Commit Name: 4ba6e85223cdd4dd020f0414895b530c85d134cf
Time: 2020-01-12
Author: lightsanweb@yandex.ru
File Name: catalyst/dl/callbacks/logging.py
Class Name: ConsoleLogger
Method Name: on_stage_start


Project Name: NifTK/NiftyNet
Commit Name: a2538c4df2446fb4afd7700a3f63bf2ea208023e
Time: 2017-09-04
Author: d.shakir@ucl.ac.uk
File Name: doc/source/conf.py
Class Name:
Method Name: generate_apidocs


Project Name: keras-team/keras
Commit Name: b8059aeaba0c65ee57276e3949015909cb205af5
Time: 2016-04-14
Author: francois.chollet@gmail.com
File Name: tests/keras/preprocessing/test_image.py
Class Name:
Method Name: setup_function