mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-07 00:21:07 +01: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.: |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| beam_search.py | ||
| seq2seq_beam_search_test.py | ||
| seq2seq_model_helper_test.py | ||
| seq2seq_model_helper.py | ||
| seq2seq_util.py | ||
| train.py | ||
| translate.py | ||