Skip to content

Commit

Permalink
fix e2e time bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ashors1 committed Mar 21, 2024
1 parent 90bb901 commit 8fe85d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/baselines/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def read_maxtext_tb_tag(tb_file: str, summary_name: str) -> dict:

def read_e2e_time(log_file: str) -> float:
with open(log_file, "r") as log:
for line in log:
for line in reversed(list(log)):
if line.startswith("real"):
minutes = line.split()[1].split('m')[0]
seconds = line.split('m')[1].split('s')[0]
Expand Down

0 comments on commit 8fe85d0

Please sign in to comment.