pytorch/examples

imagenet benchmark measure elapsed time function issue

開放

#741 建立於 2020年3月23日

 (0 則留言) (0 個反應) (0 位負責人)Python (9,429 個分叉)batch import
good first issue

倉庫指標

星標
 (21,634 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

Hi Pytorch team, I think the measure elaspsed time function is not right. Both trainning and validate function show the progress if i %args.print_freq == 0 in magenet/main.py . currently, the batch_time only measure one loop. I think the batch_time should measure args.print_freq loop elaspsed time.


     # measure elapsed time
     batch_time.update(time.time() - end)
     end = time.time()

     if i % args.print_freq == 0:
         progress.display(i)

貢獻者指南