Commit Graph

8 Commits

Author SHA1 Message Date
Xuehai Pan
5b1cedacde [BE] [2/3] Rewrite super() calls in functorch and torch (#94588)
Rewrite Python built-in class `super()` calls. Only non-semantic changes should be applied.

- #94587
- #94588
- #94592

Also, methods with only a `super()` call are removed:

```diff
class MyModule(nn.Module):
-   def __init__(self):
-       super().__init__()
-
    def forward(self, ...):
        ...
```

Some cases that change the semantics should be kept unchanged. E.g.:

f152a79be9/caffe2/python/net_printer.py (L184-L190)

f152a79be9/test/test_jit_fuser_te.py (L2628-L2635)

Pull Request resolved: https://github.com/pytorch/pytorch/pull/94588
Approved by: https://github.com/ezyang, https://github.com/albanD
2023-02-10 21:16:33 +00:00
Richard Zou
19c7a6b54b [functorch] Update notebooks for latest release (#85855)
This PR:
- dedups our colab notebooks with the regular functorch notebooks. The
colab notebooks were versions of the reuglar notebooks that had
install instructions. Now that functorch is easier to install, we do not
need those anymore.
- fixes the colab links

Test Plan:
- build docs locally and tested them
Pull Request resolved: https://github.com/pytorch/pytorch/pull/85855
Approved by: https://github.com/samdow
2022-09-29 20:00:34 +00:00
Janosh Riebesell
62d9f1559e Fix model type CNN->MLP in functorch ensembling notebook intro (#83603)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/83603
Approved by: https://github.com/albanD, https://github.com/zou3519
2022-08-22 21:42:37 +00:00
Geeta Chauhan
c58932ea79 [functorch] Fix link for colab (pytorch/functorch#929)
Fix link to point to correct colab for ensembling example
2022-07-21 13:41:37 -07:00
Richard Zou
9ae520640e [functorch] Update ensembling and per-sample-grad example (pytorch/functorch#556) 2022-07-21 13:41:24 -07:00
vfdev
3adc8167c9 [functorch] Updated css to reduce badge size and code-block bottom padding (pytorch/functorch#526)
* Updated css to reduce badge size and code-block bottom padding

* [skip ci] Added new line
2022-07-21 13:41:23 -07:00
Less Wright
cfe8ff227f [functorch] Colab ready tutorials (3 total) with updated colab badge links (pytorch/functorch#519)
* Create readme.md

* colab version, jacobians hessians tutorial

* per sample gradients tutorial in colab

* colab ready tutorial, ensembling

* add colab badge and link to colab ready tutorial

* Delete ensembling_colab.ipynb

* add colab badge and link to colab ready version

* add colab badge and link to colab ready tutorial

* add colab badge and link to colab ready tutorial, add meta-learning mention as addtl use case
2022-07-21 13:41:23 -07:00
Richard Zou
fd4d82ee0d [functorch] quick cleanup 2022-07-21 13:41:17 -07:00