94a995defe223eed0898f25d2332ba6178a92abe,ssd/engine/trainer.py,,do_train,#Any#Any#Any#Any#Any#Any#Any#,46
Before Change
global_step = iteration
summary_writer.add_scalar("losses/total_loss", losses_reduced.item(), global_step=global_step)
summary_writer.add_scalar("losses/location_loss", loss_dict_reduced["regression_loss"].item(), global_step=global_step)
summary_writer.add_scalar("losses/class_loss", loss_dict_reduced["classification_loss"].item(), global_step=global_step)
summary_writer.add_scalar("lr", optimizer.param_groups[0]["lr"], global_step=global_step)
tic = time.time()
After Change
if summary_writer:
global_step = iteration
summary_writer.add_scalar("losses/total_loss", losses_reduced, global_step=global_step)
for loss_name, loss_item in loss_dict_reduced.items():
summary_writer.add_scalar("losses/{}".format(loss_name), loss_item, global_step=global_step)
summary_writer.add_scalar("lr", optimizer.param_groups[0]["lr"], global_step=global_step)
tic = time.time()
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: lufficc/SSD
Commit Name: 94a995defe223eed0898f25d2332ba6178a92abe
Time: 2018-12-19
Author: luffy.lcc@gmail.com
File Name: ssd/engine/trainer.py
Class Name:
Method Name: do_train
Project Name: facebookresearch/ParlAI
Commit Name: 892b037877b91d47df552079fa4463ee742104ee
Time: 2018-05-31
Author: kulikov@fb.com
File Name: parlai/scripts/train_model.py
Class Name: TrainLoop
Method Name: validate
Project Name: facebookresearch/ParlAI
Commit Name: 892b037877b91d47df552079fa4463ee742104ee
Time: 2018-05-31
Author: kulikov@fb.com
File Name: parlai/scripts/train_model.py
Class Name: TrainLoop
Method Name: log