d192ef06119f3eccf569a844b30976db99cfa0f6,python/ray/util/sgd/torch/distributed_torch_runner.py,DistributedTorchRunner,train_epoch,#DistributedTorchRunner#,106
Before Change
Automatically sets epoch of sampler if possible.
if hasattr(self.train_loader.sampler, "set_epoch") :
self.train_loader.sampler.set_epoch(self.epochs)
return super(DistributedTorchRunner, self).train_epoch(**kwargs)
After Change
Automatically sets epoch of sampler if possible.
if hasattr(self.train_loader, "sampler") and hasattr(
self.train_loader.sampler, "set_epoch") :
self.train_loader.sampler.set_epoch(self.epochs)
return super(DistributedTorchRunner, self).train_epoch(**kwargs)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances Project Name: ray-project/ray
Commit Name: d192ef06119f3eccf569a844b30976db99cfa0f6
Time: 2020-03-10
Author: rliaw@berkeley.edu
File Name: python/ray/util/sgd/torch/distributed_torch_runner.py
Class Name: DistributedTorchRunner
Method Name: train_epoch
Project Name: NervanaSystems/coach
Commit Name: cc76a9ad70e4fab5f12e8d166bf29d420081b914
Time: 2018-01-10
Author: zach.dwiel@intel.com
File Name: environments/gym_environment_wrapper.py
Class Name: GymEnvironmentWrapper
Method Name: _update_state
Project Name: AlexEMG/DeepLabCut
Commit Name: 2b0745e74e436448c69e251d7c77845a82c0da72
Time: 2019-03-12
Author: amathis@fas.harvard.edu
File Name: deeplabcut/pose_estimation_tensorflow/dataset/pose_dataset.py
Class Name: PoseDataset
Method Name: is_valid_size