-
Notifications
You must be signed in to change notification settings - Fork 12
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
Removed DiskHandler wrapper in Checkpoint calls #72
Conversation
@Priyansi the diff is huge even though changes are minimum -- making changes to one of the files (02-convert-pytorch-to-ignite) automatically introduced some new changes -- perhaps indentation introduced via the IDE? |
" return DiskSaver(config[\"output_path_\"], require_empty=False)" | ||
" return config[\"output_path_\"]" |
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.
Hi @anirudhb11 thanks for the changes! Since now it is returning only a path (and not a handler) should we change the name of the function to something like get_save_path
?
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.
I thought over this, you're right that it returns the path, but if we do this we would have code like: save_handler=get_save_path(config)
in some places which might also not be good. Something that would look better would be to modify it to save_path=get_save_path(config)
and then we also change the Checkpoint
class to take in save_path
instead of save_handler
. Let me know your thoughts.
Hey @anirudhb11 thanks for the PR! Could you also removes instances of |
@Priyansi I have addressed this. |
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! LGTM!
The following PR addresses #53 by replacing all instances of
save_handler = DiskHandler()