Commit Graph

3 Commits

Author SHA1 Message Date
albanD
c8216e558b Add basic Module serialization BC test (#96238)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/96238
Approved by: https://github.com/ezyang
2023-03-08 21:01:27 +00:00
Xuehai Pan
046e88a291 [BE] [3/3] Rewrite super() calls in test (#94592)
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/94592
Approved by: https://github.com/ezyang, https://github.com/seemethere
2023-02-12 22:20:53 +00:00
Han Qi
d65414d145 Add test for FC/BC for torchscript file.
Summary:
title

Test Plan:
CI

Reviewers:

Subscribers:

Tasks:

Tags:

Fixes #ISSUE_NUMBER

Pull Request resolved: https://github.com/pytorch/pytorch/pull/75136
Approved by: https://github.com/gmagogsfm
2022-04-13 23:23:13 +00:00