ac7bb33dd978e2bf6ecb0cf055dd6bf6c9c1ea05,train.py,,,#,21
Before Change
// model.load_weights(opt.weights_path)
model.apply(weights_init_normal)
if cuda:
model = model.cuda()
model.train()
// Get dataloader
dataloader = torch.utils.data.DataLoader(
After Change
batches_done = len(dataloader) * epoch + batch_i
// Tensorboard logging
for loss_name, loss in model.losses.items():
logger.scalar_summary(loss_name, loss, batches_done)
model.seen += imgs.size(0)
torch.cuda.empty_cache()
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances Project Name: eriklindernoren/PyTorch-YOLOv3
Commit Name: ac7bb33dd978e2bf6ecb0cf055dd6bf6c9c1ea05
Time: 2019-04-19
Author: eriklindernoren@live.se
File Name: train.py
Class Name:
Method Name:
Project Name: dpressel/mead-baseline
Commit Name: 7a4f4148317f7274c0c88095c037e93f95b1d00d
Time: 2018-09-25
Author: dpressel@gmail.com
File Name: python/baseline/pytorch/classify/model.py
Class Name: LSTMModel
Method Name: make_input
Project Name: facebookresearch/Horizon
Commit Name: de10f79e39f04779438248be76633e55a11cba41
Time: 2020-04-23
Author: kittipat@fb.com
File Name: reagent/types.py
Class Name: TensorDataClass
Method Name: cuda