8648d437573e2e41b92b8fea13b4afe5e01851e8,baseline/tf/classify/training/eager.py,ClassifyTrainerEagerTf,_train,#ClassifyTrainerEagerTf#Any#Any#,76
Before Change
for features, y in pg(loader):
lossv = self.optimizer.update(self.model, features, y).numpy()
batchsz = int(y.shape[0])
report_lossv = lossv * batchsz
epoch_loss += report_lossv
epoch_div += batchsz
self.nstep_agg += report_lossv
After Change
)
nstep_loss.reset_states()
nstep_div.reset_states()
self.nstep_start = time.time()
epoch_loss = epoch_loss.result().numpy()
epoch_div = epoch_div.result().numpy()
metrics = self.calc_metrics(epoch_loss, epoch_div)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: dpressel/mead-baseline
Commit Name: 8648d437573e2e41b92b8fea13b4afe5e01851e8
Time: 2020-04-02
Author: dpressel@gmail.com
File Name: baseline/tf/classify/training/eager.py
Class Name: ClassifyTrainerEagerTf
Method Name: _train
Project Name: pytorch/pytorch
Commit Name: 16e5af41dab3a64072d88d76003dd9c2aa49d4bc
Time: 2021-01-05
Author: pritam.damania@fb.com
File Name: torch/distributed/distributed_c10d.py
Class Name:
Method Name: _store_based_barrier
Project Name: vatlab/SoS
Commit Name: c5432a96acb5b5695b70384c2702e52c806c6df3
Time: 2019-08-04
Author: ben.bog@gmail.com
File Name: src/sos/workers.py
Class Name: WorkerManager
Method Name: __init__