Error Parsing Hyper Parameters (`HPARAMS`) on Windows

Đang mở
#7,175 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@Ramnath0521 đang làm issue này rồi.

Từ ngày 16/11/2026.

  • #7176 của @Ramnath0521 — đang mở

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
python, typescript

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
TypeScript
Star
7.2k
Fork
1.7k
Merge trung bình
1 ngày 13 giờ
Pull request đã merge (30 ngày)
3

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của tensorflow/tensorboard

Tất cả issue của tensorflow/tensorboard

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.