tensorboard-x
Router for tensorboardX logging, summaries, graph/projector workflows, and integration-safe writer usage.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- tensorboard-x
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Router for tensorboardX logging, summaries, graph/projector workflows, and integration-safe writer usage.
- disable-model-invocation
- true
02 资源文件 5
- 参考文档references/install-and-routing.md2.6 KB
- 参考文档references/repo-provenance.md892 B
- 参考文档references/repo-routing-metadata.json316 B
- 参考文档references/troubleshooting.md3.0 KB
- 脚本scripts/tbx_inspect_install.py2.4 KB
03 SKILL.md 正文
tensorboard-x
Use this repo skill when a task mentions tensorboardX, SummaryWriter, TensorBoard event files, or Python code that logs training progress for later inspection in TensorBoard.
This root skill is a router. It points to focused sub-skills for the common tensorboardX workflow families and keeps the public runtime guidance self-contained.
Quick start
- Install the package:
python -m pip install tensorboardX - Verify the import:
python -c "from tensorboardX import SummaryWriter; print(SummaryWriter)" - If you want to inspect a run directory, open TensorBoard with:
tensorboard --logdir <logdir> - If you want a fast install check, run the bundled helper:
python scripts/tbx_inspect_install.py --help python scripts/tbx_inspect_install.py
If you need graph/projector, media summaries, or remote writer integrations, install the optional packages described in references/install-and-routing.md. Do not assume every optional dependency is needed for every workflow.
Choose the right sub-skill
logging-core
Use this route for ordinary event logging and writer lifecycle tasks:
SummaryWritersetup and logdir policy- scalar logging, grouped scalars, hparams, custom scalars
use_metadata,purge_step,flush,close,reopenwrite_to_disk=False- event-file sanity checks and
tensorboard --logdir
Open sub-skills/logging-core/SKILL.md when the user asks about scalar series, run directories, hparams, or writer behavior.
rich-media-summaries
Use this route for image, audio, video, histogram, PR curve, text, or mesh summaries.
Open sub-skills/rich-media-summaries/SKILL.md when the user asks about payload shapes, media dependencies, or summary builders such as tensorboardX.summary.image() and SummaryWriter.add_video().
graph-and-embedding-plugins
Use this route for model graphs and projector output:
SummaryWriter.add_graph()for PyTorch modulesSummaryWriter.add_onnx_graph()SummaryWriter.add_openvino_graph()SummaryWriter.add_embedding()and projector metadata/label-image layout
Open sub-skills/graph-and-embedding-plugins/SKILL.md when the user asks about tracing models, loading ONNX/OpenVINO files, or writing embedding projector data.
remote-and-parallel-integrations
Use this route for integration boundaries:
GlobalSummaryWriter- multiprocessing or multi-module logging
s3://andgs://record-writer paths- Comet forwarding and GPU telemetry as optional input sources
Open sub-skills/remote-and-parallel-integrations/SKILL.md when the task crosses process, credential, or service boundaries.
What this skill does not do
- It does not expose a tensorboardX CLI; use Python APIs plus TensorBoard as the viewer.
- It does not rely on the original repository checkout at runtime.
- It does not ask future agents to run the source repo's examples or tests.
- It does not treat remote/cloud integrations as enabled by default.
Shared references
- references/install-and-routing.md: package install options, optional dependency map, and route selection guidance.
- references/troubleshooting.md: cross-cutting import, event-file, and optional dependency issues.
- references/repo-provenance.md: source commit and refresh baseline.
- references/repo-routing-metadata.json: router metadata used by the managed repo-skills router.
Common escape hatch
If you only need to confirm the installation before choosing a workflow, start with scripts/tbx_inspect_install.py. It is safe, self-contained, and does not depend on the original repository checkout.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).