fd723d719ddb49b66a5084215343de763a40083d,trainer.py,Trainer,train_one_epoch,#Trainer#,154
Before Change
// print to screen
if i % self.print_freq == 0:
print(
"Epoch: [{0}][{1}/{2}]\t"
"Time: {batch_time.val:.3f} ({batch_time.avg:.3f})\t"
"Train Loss: {loss.val:.4f} ({loss.avg:.4f})\t"
"Train Acc: {acc.val:.3f} ({acc.avg:.3f})".format(
epoch, i, len(self.train_loader),
batch_time=batch_time, loss=losses, acc=accs)
)
// log to tensorboard
if self.use_tensorboard:
log_value("train_loss", losses.avg, epoch)
After Change
)
)
)
pbar.update(self.batch_size)
// log to tensorboard
if self.use_tensorboard:
log_value("train_loss", losses.avg, epoch)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: kevinzakka/recurrent-visual-attention
Commit Name: fd723d719ddb49b66a5084215343de763a40083d
Time: 2018-01-23
Author: kevinarmandzakka@gmail.com
File Name: trainer.py
Class Name: Trainer
Method Name: train_one_epoch
Project Name: xinntao/BasicSR
Commit Name: 23a45d5eb839c763c94c0e413ad599d9f9b5e184
Time: 2018-09-06
Author: wxt1994@126.com
File Name: codes/scripts/create_lmdb.py
Class Name:
Method Name:
Project Name: kevinzakka/recurrent-visual-attention
Commit Name: fd723d719ddb49b66a5084215343de763a40083d
Time: 2018-01-23
Author: kevinarmandzakka@gmail.com
File Name: trainer.py
Class Name: Trainer
Method Name: validate