Commit Graph

9 Commits

Author SHA1 Message Date
Shayekh Bin Islam
e8005781be Softmax in functorch example fixed (#107988)
The output of softmax was overwritten by the output of fc2 in the following line. So, the output of the softmax is never utilized. Now, the final output of the model includes softmax.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/107988
Approved by: https://github.com/zou3519
2023-09-05 17:18:48 +00:00
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
Sergii Dymchenko
a0b3854548 Change seperate -> separate (#83056)
One instance was caught by Meta-internal "exact-word-misspell" linter in D38505529.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/83056
Approved by: https://github.com/huydhn, https://github.com/seemethere
2022-08-09 23:11:34 +00:00
vfdev
aab0785d6b [functorch] [skip ci] Fix typo in notebook name (pytorch/functorch#549) 2022-07-21 13:41:26 -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