-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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] add MemProfiler #356
Conversation
20f4020
to
1e4bf85
Compare
colossalai/engine/_base_engine.py
Outdated
for h in self._ophook_list: | ||
if type(h) == type(ophook): | ||
# TODO: what error should be raised | ||
raise NotImplementedError |
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.
why did the hook exist you let the program fail? why not just return and give a warning?
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.
why did the hook exist you let the program fail? why not just return and give a warning?
You are right. I will fix it after I finish the overall profiler interface test.
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 error has been altered to warning. You could review 9fe8018 for more info.
TODOs: