pytorch - 💡(How to fix) Fix add_params metric_dict values not shown in tensorboard hparams tab [1 pull requests]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Fix Action

Fixed

Code Example

tb_writer = SummaryWriter(log_path)
tb_writer.add_hparams(
    hparam_dict={"lr": args.lr, "epochs": args.epochs},
    metric_dict={"sss": best_epoch},
)
tb_writer.close()
RAW_BUFFERClick to expand / collapse

🐛 Describe the bug

tb_writer = SummaryWriter(log_path)
tb_writer.add_hparams(
    hparam_dict={"lr": args.lr, "epochs": args.epochs},
    metric_dict={"sss": best_epoch},
)
tb_writer.close()

In tensorboard hparams tab, metric_dict sss can be identified and has its column, but cannot show values and curves:

<img width="1472" height="764" alt="Image" src="https://github.com/user-attachments/assets/a69fd5c9-ec33-4904-b215-6d77ffdca723" />

In scalars tab, sss value can be shown:

<img width="1230" height="740" alt="Image" src="https://github.com/user-attachments/assets/615bf426-793d-470c-acda-06027a7e18a9" />

Versions

torch 2.10.0+cu130 tensorboard 2.20.0

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

pytorch - 💡(How to fix) Fix add_params metric_dict values not shown in tensorboard hparams tab [1 pull requests]