@@ -181,8 +181,6 @@ def main():
181181 dllogger .metadata ("best_hr" , {"unit" : None })
182182 dllogger .metadata ("average_eval_time_per_epoch" , {"unit" : "s" })
183183 dllogger .metadata ("average_train_time_per_epoch" , {"unit" : "s" })
184- dllogger .metadata ("time_to_best" , {"unit" : "s" })
185- dllogger .metadata ("time_to_train" , {"unit" : "s" })
186184 dllogger .metadata ("average_train_throughput" , {"unit" : "samples/s" })
187185 dllogger .metadata ("average_eval_throughput" , {"unit" : "samples/s" })
188186
@@ -346,7 +344,6 @@ def main():
346344 eval_times = list ()
347345 # Accuracy Metrics
348346 first_to_target = None
349- time_to_train = 0.0
350347 best_hr = 0
351348 best_epoch = 0
352349 # Buffers for global metrics
@@ -361,7 +358,6 @@ def main():
361358 local_ndcg_count = np .ones (1 )
362359
363360 # Begin training
364- begin_train = time .time ()
365361 for epoch in range (args .epochs ):
366362 # Train for one epoch
367363 train_start = time .time ()
@@ -430,11 +426,9 @@ def main():
430426 # Update summary metrics
431427 if hit_rate > args .target and first_to_target is None :
432428 first_to_target = epoch
433- time_to_train = time .time () - begin_train
434429 if hit_rate > best_hr :
435430 best_hr = hit_rate
436431 best_epoch = epoch
437- time_to_best = time .time () - begin_train
438432 if hit_rate > args .target and final_checkpoint_path :
439433 saver .save (sess , final_checkpoint_path )
440434
@@ -451,8 +445,6 @@ def main():
451445 'average_eval_time_per_epoch' : np .mean (eval_times ),
452446 'average_eval_throughput' : np .mean (eval_throughputs ),
453447 'first_epoch_to_hit' : first_to_target ,
454- 'time_to_train' : time_to_train ,
455- 'time_to_best' : time_to_best ,
456448 'best_hr' : best_hr ,
457449 'best_epoch' : best_epoch })
458450 dllogger .flush ()
0 commit comments