-
Notifications
You must be signed in to change notification settings - Fork 95
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
feat: improve debugger api #116
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.
looks good, test pass
src/kernl/utils/debugger.py
Outdated
self.total_gm_read = 0 | ||
self.total_gm_write = 0 | ||
|
||
def _add_input(self, tensor: torch.Tensor): |
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.
to make code safer we could check existance in this method "_add_input_if_not_exists", so a method can't create inconsistent state + it will reduce number of methods
Improve debugger api. Inputs are no more passed in debugger initialization, we can pass input tensor in get_ptr function.
close #43