e6bbf54046cf4567e88cb130300b6b78ec88cb27,test_imagenet.py,,validate,#Any#Any#Any#,95

Before Change



            // measure accuracy and record loss
            prec1, prec5 = accuracy(output.data, target, topk=(1, 5))
            losses.update(loss.data[0], input.size(0))
            top1.update(prec1[0], input.size(0))
            top5.update(prec5[0], input.size(0))

            // measure elapsed time

After Change


              if dist.is_initialized():
                dist.all_reduce(val, dist.reduce_op.SUM)
              val /= count.item()
              meter.update(val.item(), count.item())
            
            // measure elapsed time
            batch_time.update(time.time() - end)
            end = time.time()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: mapillary/inplace_abn
Commit Name: e6bbf54046cf4567e88cb130300b6b78ec88cb27
Time: 2018-11-28
Author: samuel@mapillary.com
File Name: test_imagenet.py
Class Name:
Method Name: validate


Project Name: osmr/imgclsmob
Commit Name: 6e6f6c993efc6345f0582c32d96c778055f165cb
Time: 2019-05-10
Author: osemery@gmail.com
File Name: train_pt.py
Class Name:
Method Name: train_epoch


Project Name: osmr/imgclsmob
Commit Name: f5c40b06d1141f12e8329b93285f4bfc827fc328
Time: 2019-03-27
Author: osemery@gmail.com
File Name: pytorch/seg_utils.py
Class Name:
Method Name: validate1