Skip to content

Simplify checkpoint saver and loader#1234

Merged
wyli merged 5 commits into
Project-MONAI:masterfrom
Nic-Ma:update-checkpoint-saver-loader
Nov 16, 2020
Merged

Simplify checkpoint saver and loader#1234
wyli merged 5 commits into
Project-MONAI:masterfrom
Nic-Ma:update-checkpoint-saver-loader

Conversation

@Nic-Ma

@Nic-Ma Nic-Ma commented Nov 16, 2020

Copy link
Copy Markdown
Contributor

Description

This PR removed some unnecessary hack logic in CheckpointSaver and CheckpointLoader handlers as ignite already integrated these features in v0.4.2 @vfdev-5 :
https://github.com/pytorch/ignite/blob/v0.4.2/ignite/handlers/checkpoint.py#L382
https://github.com/pytorch/ignite/blob/v0.4.2/ignite/handlers/checkpoint.py#L494
https://github.com/pytorch/ignite/blob/v0.4.2/ignite/handlers/checkpoint.py#L496
And ignite supports more cases than our previous hack.

Status

Ready

Types of changes

  • Non-breaking change (fix or new feature that would not break existing functionality).
  • Breaking change (fix or new feature that would cause existing functionality to change).
  • New tests added to cover the changes.
  • Integration tests passed locally by running ./runtests.sh --codeformat --coverage.
  • Quick tests passed locally by running ./runtests.sh --quick.
  • In-line docstrings updated.
  • Documentation updated, tested make html command in the docs/ folder.

@Nic-Ma

Nic-Ma commented Nov 16, 2020

Copy link
Copy Markdown
Contributor Author

/black

@Nic-Ma Nic-Ma changed the title Update checkpoint saver and loader Simplify checkpoint saver and loader Nov 16, 2020
@wyli wyli merged commit 7af785a into Project-MONAI:master Nov 16, 2020
This was referenced Sep 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants