Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
BoyuanFeng committed Dec 7, 2023
1 parent bcf1ca0 commit 33ecf8e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions submission_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,12 +377,15 @@ def train_once(
train_state['test_goal_reached'] = (
workload.has_reached_test_target(latest_eval_result) or
train_state['test_goal_reached'])

# Save last eval time.
eval_end_time = get_time()
train_state['last_eval_time'] = eval_end_time

# Accumulate eval time.
train_state[
'accumulated_eval_time'] += eval_end_time - eval_start_time

# Add times to eval results for logging.
latest_eval_result['score'] = (
train_state['accumulated_submission_time'])
Expand Down

0 comments on commit 33ecf8e

Please sign in to comment.