-
Notifications
You must be signed in to change notification settings - Fork 363
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
[Feature] Add test of get_hooks_info() #672
Conversation
Approve by mistake 🤣 .... |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #672 +/- ##
=======================================
Coverage ? 78.50%
=======================================
Files ? 127
Lines ? 9215
Branches ? 1836
=======================================
Hits ? 7234
Misses ? 1670
Partials ? 311
Flags with carried forward coverage won't be shown. Click here to find out more. Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
Hi @songyuc , thanks for your contribution. One thing to note is that MMEngine support adding additional custom hook methods so this logic for printing hook information is a little different from MMCV. mmengine/mmengine/runner/runner.py Lines 1735 to 1749 in 79c8d73
|
Motivation
This PR is linked to #599
Modification
I added the test of
runner.get_hook_info()
intests/test_runner/test_runner.py
Use cases (Optional)
If this PR introduces a new feature, it is better to list some use cases here, and update the documentation.
Checklist