Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Small cleanups for checkpoint loading #615

Merged
merged 3 commits into from
Dec 13, 2021
Merged

Small cleanups for checkpoint loading #615

merged 3 commits into from
Dec 13, 2021

Conversation

ant0nsc
Copy link
Contributor

@ant0nsc ant0nsc commented Dec 10, 2021

Please follow the guidelines for PRs contained here. Checklist:

  • Ensure that your PR is small, and implements one change.
  • Add unit tests for all functions that you introduced or modified.
  • Run PyCharm's code cleanup tools on your Python files.
  • Link the correct GitHub issue for tracking.
  • Update the Changelog file: Describe your change in terms of
    Added/Changed/Removed/... in the "Upcoming" section.
  • When merging your PR, replace the default merge message with a description of your PR,
    and if needed a motivation why that change was required.

@ant0nsc ant0nsc enabled auto-merge (squash) December 10, 2021 23:37
checkpoint_prefix = f"{DEFAULT_AML_UPLOAD_DIR}/{CHECKPOINT_FOLDER}/"
existing_checkpoints = get_run_file_names(run, prefix=checkpoint_prefix)
cleaned_prefix = folder.strip("/") + "/"
existing_checkpoints = get_run_file_names(run, prefix=cleaned_prefix)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We still refer to checkpoints here and a few times below, but these files don't necessarily have to be checkpoints. Rename to something more generic?

@ant0nsc ant0nsc merged commit f58c457 into main Dec 13, 2021
@ant0nsc ant0nsc deleted the antonsc/hotfixcleanup branch December 13, 2021 12:05
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants