Error Parsing Hyper Parameters (`HPARAMS`) on Windows

Aperta
#7,175 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@Ramnath0521 ci sta già lavorando.

Dal 16/11/2026.

  • #7176 di @Ramnath0521 — aperta

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Ferma
Stack tecnologico
python, typescript

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
TypeScript
Stelle
7.2k
Fork
1.7k
Merge medio
1g 13h
PR unite (30g)
3

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di tensorflow/tensorboard

Tutte le issue di tensorflow/tensorboard

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.