9e449772c5f97f66c507cfe08b4d30b2b3a69316,vislogger/pytorchexperimentlogger.py,PytorchExperimentLogger,load_best_checkpoint,#Any#,169
Before Change
name = "checkpoint_best.pth.tar"
checkpoint_file = os.path.join(dir, name)
if os.path.exists(checkpoint_file):
return PytorchPlotLogger.load_checkpoint(checkpoint_file, **kwargs)
else:
return PytorchPlotLogger.load_lastest_checkpoint(dir=dir)
After Change
dir_=dir_, name="checkpoint_best.pth.tar", **kwargs)
if best_checkpoint is not None:
return best_checkpoint
else:
return PytorchPlotLogger.load_lastest_checkpoint(dir_=dir_, **kwargs)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: MIC-DKFZ/trixi
Commit Name: 9e449772c5f97f66c507cfe08b4d30b2b3a69316
Time: 2017-11-10
Author: jens.petersen@dkfz.de
File Name: vislogger/pytorchexperimentlogger.py
Class Name: PytorchExperimentLogger
Method Name: load_best_checkpoint
Project Name: Scitator/catalyst
Commit Name: 54ca2c098233300e63491dad6932220d01743c56
Time: 2019-06-06
Author: scitator@gmail.com
File Name: catalyst/rl/core/sampler.py
Class Name: Sampler
Method Name: _run_trajectory_loop