All time taken by {method 'enable' of '_lsprof.Profiler' objects}
in Advanced profiler output
#11800
Replies: 7 comments 2 replies
-
Experiencing this issue as well. |
Beta Was this translation helpful? Give feedback.
-
Yes, I faced a similar issue when debugging. Considering that PL is enabling the Profiler and printing the results at the end, |
Beta Was this translation helpful? Give feedback.
-
Have any of you had any luck with a workaround? |
Beta Was this translation helpful? Give feedback.
-
Hi all, I believe that's totally expected as
You can see the implementation here: https://github.com/Lightning-AI/lightning/blob/1c05a9e597a0eb8f0eaf7b3ce1fa0b27e82cb19f/src/pytorch_lightning/profilers/advanced.py |
Beta Was this translation helpful? Give feedback.
-
Any update on this problem? I am experiencing this too and it is hard to profile given 99% of the time is on this, but without the profiler I see the same time. |
Beta Was this translation helpful? Give feedback.
-
Any update? |
Beta Was this translation helpful? Give feedback.
-
Any updates on this? |
Beta Was this translation helpful? Give feedback.
-
Hi,
I was trying to understand what is the bottleneck in my network, and was playing with the
simple
andadvanced
profiler bundled directly in lightning.The output I got from the
simple
profiler seemed correct, while not terribly informative in my case. However, the output of theadvanced
profiler is a bit confusing with almost all thetottime
being spent in{method 'enable' of '_lsprof.Profiler' objects}
Excerpt below:
I could not find much information elsewhere, the only bit related is this SO question which is not much helping as I never call nor import
cProfile
in my code.Anyone had a similar issue before?
Just in case:
Beta Was this translation helpful? Give feedback.
All reactions