pytorch/android/pytorch_android
Xuehai Pan 8d45f555d7 [BE] [1/3] Rewrite super() calls in caffe2 and benchmarks (#94587)
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/94587
Approved by: https://github.com/ezyang
2023-02-11 18:19:48 +00:00
..
host improve android instrumentation test and update README 2022-02-22 08:05:33 +00:00
src [BE] Tweak Meta copyright headers (#90805) 2022-12-14 20:30:31 +00:00
build.gradle improve android instrumentation test and update README 2022-02-22 08:05:33 +00:00
CMakeLists.txt Migrate PyTorch to C++17 (#85969) 2022-12-08 02:27:48 +00:00
generate_test_asset.cpp [NOOP][clangformat][codemod] Enable CLANGFORMAT for some folders in caffe2/* (#67746) 2021-11-03 12:23:14 -07:00
generate_test_torchscripts.py [BE] [1/3] Rewrite super() calls in caffe2 and benchmarks (#94587) 2023-02-11 18:19:48 +00:00
gradle.properties [android] Lite interpreter naming for android nightly publishing (#68651) 2021-11-19 10:56:13 -08:00
test_asset.jit Clean up some type annotations in android (#49944) 2021-01-07 15:42:55 -08:00