3da28fd634882d8fc11c5792afd635e3d0c9af2f,pytorch_lightning/trainer/trainer.py,Trainer,run_evaluation,#Trainer#Any#Any#,566
Before Change
def run_evaluation(self, test_mode: bool = False, max_batches=None):
// used to know if we are logging for val, test + reset cached results
self.logger_connector.set_stage(test_mode, reset=True)
// bookkeeping
self.evaluation_loop.testing = test_mode
After Change
def run_evaluation(self, test_mode: bool = False, max_batches=None):
// used to know if we are logging for val, test + reset cached results
self._set_wide_running_stage(RunningStage.TESTING if test_mode else RunningStage.EVALUATING)
self.logger_connector.reset()
// bookkeeping
self.evaluation_loop.testing = test_mode
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: williamFalcon/pytorch-lightning
Commit Name: 3da28fd634882d8fc11c5792afd635e3d0c9af2f
Time: 2021-01-27
Author: thomas@grid.ai
File Name: pytorch_lightning/trainer/trainer.py
Class Name: Trainer
Method Name: run_evaluation
Project Name: williamFalcon/pytorch-lightning
Commit Name: 3da28fd634882d8fc11c5792afd635e3d0c9af2f
Time: 2021-01-27
Author: thomas@grid.ai
File Name: pytorch_lightning/trainer/trainer.py
Class Name: Trainer
Method Name: test
Project Name: williamFalcon/pytorch-lightning
Commit Name: 3da28fd634882d8fc11c5792afd635e3d0c9af2f
Time: 2021-01-27
Author: thomas@grid.ai
File Name: pytorch_lightning/trainer/trainer.py
Class Name: Trainer
Method Name: train