Skip to content

Commit

Permalink
Issue 452: Added the assertion to check if the total time and number …
Browse files Browse the repository at this point in the history
…of eva is aligned with expectations with real wall_clock_time
  • Loading branch information
harneet862 committed Sep 13, 2024
1 parent bdece3b commit 78aa7b5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion submission_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,11 @@ def train_once(
preemption_count=preemption_count,
checkpoint_dir=log_dir,
save_intermediate_checkpoints=FLAGS.save_intermediate_checkpoints)

assert(abs(metrics['eval_results'][-1][1]['total_duration'] -
(train_state['accumulated_submission_time'] +
train_state['accumulated_logging_time'] +
train_state['accumulated_eval_time']) <= 10))
assert(int(train_state['accumulated_submission_time'] // workload.eval_period_time_sec) <= len(metrics['eval_results']) + 2)
return train_state['accumulated_submission_time'], metrics


Expand Down

0 comments on commit 78aa7b5

Please sign in to comment.