tensorflow / tensorflow/tensorboard

Support providing path to xplane.pb instead of having to provide log-dir

Open
#6,940 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
7.2k
Forks
1.7k
Avg merge
4d 22h
Merged PRs (30d)
1

Description

Let's assume I have a xplane.pb file in my current directory. Then in order to load it in tensorboard, I would have to do something like this:

mkdir -p summaries/train_train/plugins/profile/2024_11_15_21_36_34/
mv *.xplane.pb summaries/train_train/plugins/profile/2024_11_15_21_36_34/
tensorboard --logdir summaries/train_train --load_fast=false

It would be really nice if tensorboard had a simple UX like this:

tensorboard --event_file mah-profile.xplane.pb

I tried using --event_file:

tensorboard --event_file gke-tpu-4eba1e59-9k6z.xplane.pb
Error: A logdir or db must be specified. For example `tensorboard --logdir mylogdir` or `tensorboard --db sqlite:~/.tensorboard.db`. Run `tensorboard --helpfull` for details and examples.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the TensorBoard command-line handling for --event_file and the validation that currently requires a logdir or database. Trace how the supplied xplane.pb path is processed, then verify that tensorboard --event_file mah-profile.xplane.pb loads the profile without requiring a log directory.

Written by the indexing model from the issue text.

Assessment

Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.