added eta to metrics.json
Summary:
Hi there ! This is in regard to .
I linted and tested on my local computer and everything looks fine.
Pull Request resolved:
@@ -156,6 +156,7 @@ class CommonMetricPrinter(EventWriter):
data_time = storage.history("data_time").avg(20)
time = storage.history("time").global_avg()
eta_seconds = storage.history("time").median(1000) * (self._max_iter - iteration)
+ storage.put_scalar("eta_seconds", eta_seconds, smoothing_hint=False)
eta_string = str(datetime.timedelta(seconds=int(eta_seconds)))
except KeyError: # they may not exist in the first few iterations (due to warmup)
pass
