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

Profiler : No Profile Data was Found in Collab code example #602

Open
JaShams opened this issue Apr 14, 2023 · 8 comments
Open

Profiler : No Profile Data was Found in Collab code example #602

JaShams opened this issue Apr 14, 2023 · 8 comments

Comments

@JaShams
Copy link

JaShams commented Apr 14, 2023

I am new to Tensorflow, and was trying to figure out how to use the profiler. By following the docs ( https://www.tensorflow.org/tensorboard/tensorboard_profiling_keras ), I got tensorboard working on my remote development machine and could view everything except the profiler output.
I then tried executing the code example mentioned in the doc in Collab ( https://colab.research.google.com/github/tensorflow/tensorboard/blob/master/docs/tensorboard_profiling_keras.ipynb ) only to see the same output.

Is the code example not up to date or is there an issue somewhere else?

Thanks
Screenshot 2023-04-15 000305

@rick020
Copy link

rick020 commented Apr 18, 2023

I am running into the same problem after running the command tensorboard --logdir logs/
System information:

  • Azure ML compute instance
  • Linux 22.08.19

Environment information

  • python=3.8.16
  • pip= 22.3.1
  • tensorboard=2.10.1
  • tensorboard-plugin-profile=2.10.1

Files in logs directory
files

Tensorboard:
tb

@gxxxh
Copy link

gxxxh commented Apr 26, 2023

I run into the same problem, too

@Pondiniii
Copy link

I can confirm that I'm experiencing the same issue 🫤

@caleb1010
Copy link

same here. Does anybody know how to solve this? Several months have passed, without even a single reply from the developers.

@zzzaries
Copy link
Collaborator

zzzaries commented Sep 6, 2023

Hey, just took a look, seems the log directory is missing an events file, we will look into fixing this.
As a quick workaround for now, please try:

  1. download the events.out.tfevents file at
    https://github.com/tensorflow/profiler/tree/master/demo
  2. upload this file to the demo log directory like:
Screenshot 2023-09-05 at 9 49 44 PM

then you should be able to see the profiler:
Screenshot 2023-09-05 at 9 46 13 PM

@lakeyk
Copy link

lakeyk commented Oct 11, 2023

When using the profiler, the logs address should include the run ID.
In the original example, this would be: %tensorboard --logdir='logs/20230414-182044'

@ZM-J
Copy link

ZM-J commented Apr 17, 2024

Hey, just took a look, seems the log directory is missing an events file, we will look into fixing this. As a quick workaround for now, please try:

  1. download the events.out.tfevents file at
    https://github.com/tensorflow/profiler/tree/master/demo
  2. upload this file to the demo log directory like:
Screenshot 2023-09-05 at 9 49 44 PM then you should be able to see the profiler: Screenshot 2023-09-05 at 9 46 13 PM

Hi, I have the same problem showing that "No profile data was found". However, there exists a file events.out.tfevents.1713334799.XX.profile-empty in folder logs/20240417-141935.

My TF version is also 2.10.1, but I try to profile everything in my own computer.

I even tried the advice from @lakeyk , but that still didn't work.

Seems that everything required by tensorboard is present:

│  events.out.tfevents.1713334799.XX.profile-empty
│
├─plugins
│  └─profile
│      └─2024_04_17_06_19_59
│              XX.input_pipeline.pb
│              XX.kernel_stats.pb
│              XX.memory_profile.json.gz
│              XX.overview_page.pb
│              XX.tensorflow_stats.pb
│              XX.trace.json.gz
│              XX.xplane.pb
│
├─train
│      events.out.tfevents.1713334775.XX.40004.0.v2
│
└─validation
        events.out.tfevents.1713334787.XX.40004.1.v2

I'm not sure whether it is an issue of this version of TF or not though.

@lakeyk
Copy link

lakeyk commented Apr 17, 2024

I recommend updating Tensorflow to the latest version. I am able to successfully load the files with the given file structure with version 2.16.1, but am not able to with version 2.10.1.

2.16.1

2.10.1

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

8 participants