pytorch/examples

imagenet benchmark measure elapsed time function issue

Open

Aperta il 23 mar 2020

Vedi su GitHub
 (0 commenti) (0 reazioni) (0 assegnatari)Python (21.634 star) (9429 fork)batch import
good first issue

Descrizione

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)

Guida contributor