Skip to content

Added workaround for CyclicLR saving - #1683

Merged
anautsch merged 1 commit into
speechbrain:developfrom
Gastron:fix-cycliclr-saveload
Nov 3, 2022
Merged

anautsch merged 1 commit into
speechbrain:developfrom
Gastron:fix-cycliclr-saveload

Conversation

@Gastron

@Gastron Gastron commented Nov 3, 2022

Copy link
Copy Markdown
Collaborator

Adds special saver/loader for CyclicLR since they have weakref.WeakMethods, which cannnot be pickled. Fortunately, those are not really state that gets updated during training, but rather they are reconstructed if the new instance is created with the same arguments (i.e. no custom scale function suddenly). Trying to detect this anyway, but only raise a warning - maybe users know what they are doing.

@Gastron
Gastron requested a review from anautsch November 3, 2022 08:45

@anautsch anautsch left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

lgtm - thank you for the adhoc fix !

@anautsch
anautsch merged commit c1d2093 into speechbrain:develop Nov 3, 2022
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