Skip to content

Conversation

@facebook-github-bot
Copy link
Contributor

The internal and external repositories are out of sync. This attempts to brings them back in sync by patching the GitHub repository. Please carefully review this patch. You must disable ShipIt for your project in order to merge this pull request. DO NOT IMPORT this pull request. Instead, merge it directly on GitHub using the MERGE BUTTON. Re-enable ShipIt after merging.

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fh:direct-merge-enabled labels Nov 12, 2021
@RenfeiChen-FB RenfeiChen-FB merged commit d7ada36 into main Nov 12, 2021
842974287 added a commit to 842974287/torchrec-1 that referenced this pull request Feb 26, 2022
Summary:
X-link: pytorch/pytorch#72839

X-link: meta-pytorch#16

`__getstate__` functions are used by pickle and the base class (PyTorch optimizer) overrides this function https://github.com/pytorch/pytorch/blob/6f29313e38881edeb8e877ed40626f56cb00c34a/torch/optim/optimizer.py#L56.

Torchrec optimizer classes has different attributes from the base class which is causing AttributeNotFound error during pickling.

Reviewed By: YazhiGao

Differential Revision: D34147809

fbshipit-source-id: c16efa8a677fb946dc1fd308e92638068ad291e5
facebook-github-bot pushed a commit that referenced this pull request Feb 28, 2022
Summary:
Pull Request resolved: #113

X-link: pytorch/pytorch#72839

X-link: #16

`__getstate__` functions are used by pickle and the base class (PyTorch optimizer) overrides this function https://github.com/pytorch/pytorch/blob/6f29313e38881edeb8e877ed40626f56cb00c34a/torch/optim/optimizer.py#L56.

Torchrec optimizer classes has different attributes from the base class which is causing AttributeNotFound error during pickling.

Reviewed By: houseroad, YazhiGao

Differential Revision: D34147809

fbshipit-source-id: 4b261a9a2329c41bfc9712e7a4418debf73a2657
@colin2328 colin2328 deleted the fixup-T105719317-main branch March 17, 2022 23:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fh:direct-merge-enabled

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants