Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Make ReduceLROnPlateau serializable. #5300

Merged
soumith merged 2 commits into
pytorch:masterfrom
elanmart:scheduler-fix
Feb 20, 2018
Merged

Make ReduceLROnPlateau serializable. #5300
soumith merged 2 commits into
pytorch:masterfrom
elanmart:scheduler-fix

Conversation

@elanmart
Copy link
Copy Markdown
Contributor

This PR replaces lambdas with partial, therefore making the ReduceLROnPlateau class serializable without dill.

Resolves #5218

Copy link
Copy Markdown
Contributor

@ezyang ezyang left a comment

Choose a reason for hiding this comment

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

LGTM.

@soumith soumith merged commit d2ff733 into pytorch:master Feb 20, 2018
@soumith
Copy link
Copy Markdown
Collaborator

soumith commented Feb 20, 2018

thanks Marcin!

laurentdupin pushed a commit to laurentdupin/pytorch that referenced this pull request Apr 24, 2026
* replace lambdas with partial

* flake8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Saving ReduceLROnPlateau crashes

3 participants