Skip to content
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

added a serialize function in SGD class to utilize the existing macro for serialization/deserialization calls #30739

Closed
wants to merge 3 commits into from

Conversation

anjali411
Copy link
Contributor

No description provided.

static void serialize(Self& self, Archive& archive) {
_TORCH_OPTIM_SERIALIZE(momentum_buffers);
_TORCH_OPTIM_SERIALIZE(iteration_);
}
Copy link
Contributor

Choose a reason for hiding this comment

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

We might need to #include <torch/optim/serialize.h> in this file to fix the CI build error

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@anjali411 has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@anjali411 merged this pull request in 5687ee1.

wuhuikx pushed a commit to wuhuikx/pytorch that referenced this pull request Jan 30, 2020
… for serialization/deserialization calls

Summary: Pull Request resolved: pytorch#30739

Differential Revision: D18842908

Pulled By: anjali411

fbshipit-source-id: 7dc13ff9c4fc126790b88b1b4b5d03425c349d38
@yf225 yf225 added the module: cpp Related to C++ API label Apr 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Merged module: cpp Related to C++ API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants