mirror of
https://github.com/saymrwulf/pytorch.git
synced 2026-05-14 20:57:59 +00:00
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.: |
||
|---|---|---|
| .. | ||
| C2Module.py | ||
| framework_overhead_benchmark.py | ||
| pt_wrapper_module.py | ||
| SimpleAddModule.py | ||
| utils.py | ||