ac7b6cf0992219b5118738e05672306f8acc215f,catalyst/dl/state.py,RunnerState,on_batch_end_pre,#RunnerState#,160

Before Change


        elapsed_time = time.time() - self._datatime

        self.batch_metrics["base/batch_time"] = elapsed_time
        self.batch_metrics["base/sample_per_second"] = \
            self.batch_size / elapsed_time

    def on_batch_end_post(self):
        lm = self.loader_name
        for key, value in self.batch_metrics.items():

After Change


    def on_batch_end_pre(self):
        elapsed_time = time.time() - self._datatime

        self.metrics.add_batch_value("base/batch_time", elapsed_time)
        self.metrics.add_batch_value(
            "base/sample_per_second", self.batch_size / elapsed_time
        )
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: Scitator/catalyst
Commit Name: ac7b6cf0992219b5118738e05672306f8acc215f
Time: 2019-02-17
Author: poletaev.va@gmail.com
File Name: catalyst/dl/state.py
Class Name: RunnerState
Method Name: on_batch_end_pre


Project Name: Scitator/catalyst
Commit Name: ac7b6cf0992219b5118738e05672306f8acc215f
Time: 2019-02-17
Author: poletaev.va@gmail.com
File Name: catalyst/dl/state.py
Class Name: RunnerState
Method Name: on_batch_start_pre


Project Name: Scitator/catalyst
Commit Name: 01298b93648d59c7f5e1617ace5131c8074eddea
Time: 2019-02-26
Author: scitator@gmail.com
File Name: catalyst/dl/callbacks/metrics.py
Class Name: MetricCallback
Method Name: on_batch_end