Skip to content

Commit

Permalink
fix(torch): fix very long ETA with iter_size != 1
Browse files Browse the repository at this point in the history
  • Loading branch information
Bycob authored and beniz committed Apr 14, 2021
1 parent e674fcc commit 0c716a6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/backends/torch/torchlib.cc
Expand Up @@ -817,8 +817,7 @@ namespace dd
+= duration_cast<milliseconds>(tstop - tstart).count();
this->add_meas("iteration_duration_ms", last_it_time);

double remain_time_ms
= last_it_time * iter_size * (iterations - it);
double remain_time_ms = last_it_time * (iterations - it);

if (test_interval > 0)
{
Expand Down

0 comments on commit 0c716a6

Please sign in to comment.