-
-
Notifications
You must be signed in to change notification settings - Fork 617
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
Move contrib.handlers #3204
Move contrib.handlers #3204
Conversation
@leej3 thanks for the PR! |
40552c6
to
8d77d87
Compare
@vfdev-5 two remaining details that I can spot, and will work through now, are corresponding updates to handlers.rst files, and altering the imports across the codebase (notebooks etc.) to try to guide usage to the new import location of this functionality. One potential issue is the dependencies that this introduces (I spotted in the guidelines for contributing that the contrib module has "handlers classes that may require additional dependencies". I am assuming that this will not cause an issue but let me know if there is a way of addressing this. |
thanks, sounds good!
I think we can remove that sentence where it is written. Overall global idea is to get rid of contrib module (keeping it just for BC). |
I'm encountering a circular import with "global_step_from_engine". In I think the solution is to remove global_step_from_engine from the namespace of each logger module and change everywhere in the codebase that currently imports it from those modules to
Shall I include a deprecated "global_step_from_engine" in the migrated API for now to help users with the migration? Something like:
Also, let know if you want/think of another solution. |
79d9d0f
to
959abc2
Compare
move loggers and other class from contrib to ignite.handlers make changes in a backwards compatible manner fix circular imports that happened during the migration in ignite/__init__.py and ignite/handlers/__init__.py
move tests to ignite.handlers along with fixtures and changing the imports add a test to ensure deprecation warnings for ignite.contrib.handlers
b41b65a
to
b2c0ab2
Compare
As discussed, this implementation makes sure that global_step_from_engine is still importable from the logger modules and ignite.handlers (the circular import is solved by defining the function in a utils.py). Another circular import was resolved in |
mark as deprecated and provide link to migrated functionality
previously this occured as a side effect, adding it explicitly now.
a827eb7
to
ed7db21
Compare
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.
Thanks John, looks good!
Moves ignite.contrib.handers to ignite.handlers maintaining backwards compatible. Proposed removal is
0.8.00.6.0.Full test suite was run locally (though with 356skips, mostly due to missing (multi-node, horovod, or xla dependencies). Unrelated failures were observed before and after these changes in ignite/metrics/nlp/test_rouge.py and ignite/handlers/test_checkpoint.py.