Error Parsing Hyper Parameters (`HPARAMS`) on Windows

Offen
#7,175 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

@Ramnath0521 arbeitet bereits daran.

Seit 16.11.2026.

  • #7176 von @Ramnath0521 — offen

Bewertung

Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Anfängerfreundlichkeit
35/100
Issue-Typ
Bug
Klarheit
Klar beschrieben
Aktivitätsstatus
Veraltet
Tech-Stack
python, typescript

Rechercherichtung

Start with tensorboard/plugins/hparams/metrics.py and inspect run_tag_from_session_and_metric, which the issue identifies as constructing the metric run path. Reproduce with the provided SummaryWriter.add_hparams example on Windows and check the HParams dashboard or JSON export. Done means the recorded metric values appear instead of null; an open pull request is already linked.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

Description
When viewing an experiment in TensorBoard’s HParams dashboard on Windows, the metric values are shown as null. Downloading the HParams data as JSON also returns null for the metrics.

The event files contain the expected scalar metrics, and the HParams session and experiment data are present. The issue appears to be in how the HParams plugin constructs the metric run path on Windows.

Steps to reproduce
Write HParams and numeric metrics with SummaryWriter.add_hparams:

from torch.utils.tensorboard import SummaryWriter

writer = SummaryWriter("logs/Model001")
writer.add_hparams(
    {"activation": "ELU"},
    {"train_loss": 0.16, "train_score": 0.95},
)
writer.close()

Launch TensorBoard on Windows and open the HParams dashboard.

View the experiment’s metrics or download the HParams data as JSON.

Expected behavior
The HParams dashboard and JSON export show the recorded metric values, such as 0.16 and 0.95.

Actual behavior
The metrics appear as null, despite being present in the event files.

Environment
OS: Windows
TensorBoard: 2.21.0
Possible cause
In tensorboard/plugins/hparams/metrics.py, run_tag_from_session_and_metric joins the session name and metric group, then only removes a trailing forward slash (/). On Windows, os.path.join(session_name, "") can produce a trailing backslash (), which is not removed. The resulting run path may not match the actual run name, causing the metric lookup to fail.

Vorherrschende Sprache
TypeScript
Sterne
7.2k
Forks
1.7k
Ø Merge
1 T. 13 Std.
Gemergte PRs (30 T.)
3

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus tensorflow/tensorboard

Alle Issues in tensorflow/tensorboard

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.