pytorch/torch/nn/modules
Aaron Gokaslan 5a1216bb2e [BE]: Update ruff to 0.4.1 (#124549)
Update ruff to 0.4.1 .
This version fixes a lot false negatives/false positives, is 20-40% faster, and has various other bug fixes.

Below is a before and after table showing the execution time of ruff lint and ruff format in milliseconds courtesy of https://astral.sh/blog/ruff-v0.4.0

| Repository                                         | Linter (v0.3) | Linter (v0.4) | Formatter (v0.3) | Formatter (v0.4) |
|----------------------------------------------------|---------------|---------------|------------------|------------------|
| [pytorch/pytorch](https://github.com/pytorch/pytorch) | 328.7         | 251.8         | 351.1            | 274.9            |

Pull Request resolved: https://github.com/pytorch/pytorch/pull/124549
Approved by: https://github.com/ezyang
2024-04-21 14:06:23 +00:00
..
__init__.py Add RMSNorm module (#121364) 2024-03-29 18:05:28 +00:00
_functions.py
activation.py [DOC] Fix example and typo (#123959) 2024-04-16 05:38:24 +00:00
adaptive.py
batchnorm.py Add missing interfaces of torch.optim.swa_utils (#117036) 2024-04-12 17:17:36 +00:00
channelshuffle.py [DOC] Fix example and typo (#123959) 2024-04-16 05:38:24 +00:00
container.py
conv.py [BE]: Update ruff to 0.4.1 (#124549) 2024-04-21 14:06:23 +00:00
distance.py
dropout.py
flatten.py
fold.py
instancenorm.py Add missing interfaces of torch.optim.swa_utils (#117036) 2024-04-12 17:17:36 +00:00
lazy.py Remove warning from LazyModuleMixin constructor. (#123968) 2024-04-15 15:36:55 +00:00
linear.py [BE]: Update ruff to 0.4.1 (#124549) 2024-04-21 14:06:23 +00:00
loss.py Fix typos in docs (#124218) 2024-04-17 00:46:08 +00:00
module.py [BE]: Update ruff to 0.4.1 (#124549) 2024-04-21 14:06:23 +00:00
normalization.py Add RMSNorm module (#121364) 2024-03-29 18:05:28 +00:00
padding.py
pixelshuffle.py
pooling.py Describe special case in avgpool (#120335) 2024-02-23 15:29:54 +00:00
rnn.py Fix swap_tensors path in _apply for modules that inherit from RNNBase (RNN, GRU, LSTM) (#122800) 2024-03-27 23:34:16 +00:00
sparse.py
transformer.py Tiny comments improvement (#123426) 2024-04-05 17:25:42 +00:00
upsampling.py
utils.py Bugfix consume_prefix_in_state_dict_if_present function to keep the order of the state_dict (#117464) 2024-03-07 04:00:49 +00:00