Commit Graph

11 Commits

Author SHA1 Message Date
Richard Zou
db8cfb0aff [functorch] Purge some licenses 2022-07-21 13:41:22 -07:00
Samantha Andow
33cb1967c2 [functorch] fix small issues with examples (pytorch/functorch#464) 2022-07-21 13:41:21 -07:00
vfdev
c94446a04d [functorch] Fixed python code formatting and added flake8 setup (pytorch/functorch#346)
* Fixed python code formatting and added flake8 setup

* Fixes config.yaml

* Added missing setup.cfg

* Removed flake8 job from circle ci and setup GHA

* More flake8 fixes

* Fixed test_conv2d

* Fixed failing flake8
2022-07-21 13:41:17 -07:00
Horace He
b23c9b907c [functorch] removed unnecessary note 2022-07-21 13:41:03 -07:00
Richard Zou
b29e666ade [functorch] [BC-breaking] Update make_functional* (pytorch/functorch#52)
Updates make_functional to use the new improved variants. The new
variants are superior in every way so we're replacing the previous
variants with this.

If someone wants the older variants, they can be found at:
- make_functional_with_buffers_deprecated_v1
- make_functional_deprecated_v1
2022-07-21 13:40:55 -07:00
Richard Zou
fdcc680c9d [functorch] Update tests and examples to use make_functional*_v2
make_functional*_v2 is superior to the older make_functional. This PR
has all of our examples use it.

This PR also adds a "combine_state_for_ensemble(models)" API.

Coming soon: We're probably going to break BC on make_functional and
replace it with make_functional_v2. That's the nice thing about being a
prototype, we don't have to worry about BC too much.
2022-07-21 13:40:55 -07:00
Richard Zou
b627d3516e [functorch] Citations 2022-07-21 13:40:54 -07:00
Richard Zou
a7f406ce58 [functorch] Quick attempt at hiding functional module init
Introduces a `functional_init` and `functional_init_with_buffers` that
lets one initialize an ensemble of modules more easily than before. This
was done in the sprit of make_functional: the API still looks awkward,
especially when buffers are involved.
2022-07-21 13:40:53 -07:00
Richard Zou
15ab42ce7c [functorch] Beef up make_functional docstring, update some examples 2022-07-21 13:40:51 -07:00
Richard Zou
98df806b95 [functorch] Fix up the cifar10_transforms example 2022-07-21 13:40:51 -07:00
Richard Zou
93888a3779 [functorch] a lot of files 2022-07-21 13:40:50 -07:00