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

Model state should support PyTorch API #727

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mannatsingh
Copy link
Contributor

Summary: Classy Models should work like regular PyTorch models. The {get, set}_classy_state functions for state are the only blockers which this diff fixes by moving over to state_dict and load_state_dict

Differential Revision: D25213283

@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. fb-exported labels Mar 24, 2021
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D25213283

Summary:
Pull Request resolved: facebookresearch#727

Classy Models should work like regular PyTorch models. The `{get, set}_classy_state` functions for state are the only blockers which this diff fixes by moving over to `state_dict` and `load_state_dict`.

`{get, set}_classy_state` will still work for backwards compatibility, but will call the PyTorch functions directly.

Differential Revision: D25213283

fbshipit-source-id: 3cd64f530de83574174884d3b8848a1f6003f854
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D25213283

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants