Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
samos123 opened this issue Nov 19, 2024 · 1 comment
Open

Comments

@samos123
Copy link

samos123 commented Nov 19, 2024

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.
@rileyajones
Copy link
Contributor

Based on the contents of your command I'm guessing you're particularly interested in the profiler plugin. The file structure is important to how tensorboard understands the data being read is profiler plugin data. Running tensorboard --logdir=. should start the tool but the profiler plugin will not be available.

Is there a reason you need to perform this action frequently? I imagine you could change there the files are written?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants