-
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
[bugfix] Resolve schedule step bug for PyTorch Profiler #6674
Conversation
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.
Not sure on all the technical details and you're much more versed, but looks reasonable to me
Co-authored-by: Carlos Mocholí <[email protected]>
@@ -107,6 +107,15 @@ def __init__(self, schedule: Callable) -> None: | |||
if not _KINETO_AVAILABLE: | |||
raise ModuleNotFoundError("You are trying to use `ScheduleWrapper` which require kineto install.") | |||
self._schedule = schedule | |||
self.reset() |
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 the only diff here, right?
the rest for setup
and pre_step
seems the same
What does this PR do?
Fixes #<issue_number>
Before submitting
PR review
Anyone in the community is free to review the PR once the tests have passed.
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 🙃