`InspectionUnit.generator` is useless as the one-time generator is already used by `get_field_to_observations_map`

オープン
#6,994 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python
領域
api, backend

調査の方向性

tensorboard.backend.event_processing.event_file_inspector、特に get_inspection_units と get_field_to_observations_map から始め、issue の例を使って一度しか使用できないジェネレーターの動作を再現してください。InspectionUnit のジェネレーターを使用して、TensorFlow を必要とせずに検査後のメトリクスへアクセスできるようになれば、作業は完了です。

索引モデルが issue の本文から書いたものです。

説明

type:feature

Environment information (required)

TensorBoard 2.19

Issue description

I am trying to access the TensorBoard data for my own graphs, alerting and review

import tensorboard.backend.event_processing.event_file_inspector

a = tensorboard.backend.event_processing.event_file_inspector.get_inspection_units(logdir=manager.summary_folder)
# Found event files in:
# runs/20250514-105417
# runs/20250514-105417/loss_epoch_trn
# runs/20250514-105417/loss_trn
# runs/20250514-105417/loss_epoch_tst

a[1].name
# 'runs/20250514-105417/loss_epoch_trn'

list(a[1].generator)
# [] <- this the problem

I noticed all generators from generators_from_logdir can be used only once and probably this is the problem, as this generator is already used in field_to_obs=get_field_to_observations_map(generator, tag):

inspection_units.append(
    InspectionUnit(
        name=subdir,
        generator=generator,
        field_to_obs=get_field_to_observations_map(generator, tag),
    )
)

It would be nice to have a clean API to access the metrics from TensorBoard without installing whole TensorFlow package.

主要言語
TypeScript
スター
7.2k
フォーク
1.7k
平均マージ
1日 13時間
マージ済み PR(30日)
3

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

tensorflow/tensorboard のほかの issue

tensorflow/tensorboard の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。