This repository has been archived by the owner on Jul 1, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Model state should support PyTorch API (#727)
Summary: Pull Request resolved: #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
- Loading branch information