Skip to content

Commit

Permalink
fix tensorboard events dir path (#1032)
Browse files Browse the repository at this point in the history
Fixed the tensorboard dir path after a recent change in MaxText
software:
AI-Hypercomputer/maxtext#863
  • Loading branch information
kocchop authored Sep 6, 2024
1 parent ecacd5b commit 44b4dfe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/baselines/test_maxtext_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
def test_loss(baseline_filename):
baseline_filepath = os.path.join(baselines_dir, baseline_filename)
test_config = baseline_filename.split(".")[0]
event_file = os.path.join(results_dir, test_config, "logdir/tensorboard/events*")
event_file = os.path.join(results_dir, test_config, "logdir/tensorboard/logdir/events*")
event_file = glob.glob(event_file)[0]
with open(baseline_filepath, "r") as baseline_file:
end_step = json.load(baseline_file)["end_step"]
Expand All @@ -31,7 +31,7 @@ def test_loss(baseline_filename):
def test_step_time(baseline_filename):
baseline_filepath = os.path.join(baselines_dir, baseline_filename)
test_config = baseline_filename.split(".")[0]
event_file = os.path.join(results_dir, test_config, "logdir/tensorboard/events*")
event_file = os.path.join(results_dir, test_config, "logdir/tensorboard/logdir/events*")
event_file = glob.glob(event_file)[0]
with open(baseline_filepath, "r") as baseline_file:
step_time_avg_expected = json.load(baseline_file)["step_time_avg"]
Expand Down

0 comments on commit 44b4dfe

Please sign in to comment.