-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Include hook's object name when profiling #11026
Include hook's object name when profiling #11026
Conversation
…lightning into profile_hooks_separation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is really great to have more granular profiling available for debugging!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry for nit, isn't it better to mention this in changelog?
@awaelchli mention what in changelog? I do have an entry in the changelog |
I meant an entry under "changed" that the profiler now indexes and displays the names of the hooks with a new pattern (base class).(class).(hook name) |
@awaelchli sure, I already have an entry under changed, but I can edit it |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Requesting changes so I can review before merge :), ping me when you update it!
I'm really stumped on this test failure https://dev.azure.com/PytorchLightning/pytorch-lightning/_build/results?buildId=47638&view=logs&j=3afc50db-e620-5b81-6016-870a6976ad29&t=d9f671c5-a304-5675-5394-961fd7f98b9b Could anyone who has worked with profilers before try taking a look? cc @kaushikb11 @carmocca @rohitgr7 I can't figure out why |
…lightning into profile_hooks_separation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
heads up, there will be conflicts between this and #11142 since the naming is changing
cc @four4fish
…lightning into profile_hooks_separation
Ready to be merged! |
What does this PR do?
When profiling, we should distinguish between a LM hook vs callback hook vs TTP hook.
Part of #8506
Does your PR introduce any breaking changes? If yes, please list them.
Before submitting
PR review
Anyone in the community is welcome to review the PR.
Before you start reviewing make sure you have read Review guidelines. In short, see the following bullet-list:
Did you have fun?
Make sure you had fun coding 🙃