pytorch/torch/nn
Yuanyuan Chen 030de07aff [2/N] Use 'is' in callable comparisons (#166685)
It is generally advised to use `is/is not` for comparisons against torch functions.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/166685
Approved by: https://github.com/xmfan, https://github.com/mlazos
2025-10-31 08:08:07 +00:00
..
attention Revert "[2/N] Add strict parameter to Python zip calls (#166257)" 2025-10-30 13:20:00 +00:00
backends
intrinsic Remove unnecessary noqa suppressions (#164106) 2025-10-18 04:52:41 +00:00
modules Revert "[2/N] Add strict parameter to Python zip calls (#166257)" 2025-10-30 13:20:00 +00:00
parallel Revert "[2/N] Add strict parameter to Python zip calls (#166257)" 2025-10-30 13:20:00 +00:00
qat [BE][PYFMT] migrate PYFMT for {torch,test}/{nn,optim}/** to ruff format (#144548) 2025-06-14 11:27:04 +00:00
quantizable [BE][PYFMT] migrate PYFMT for {torch,test}/{nn,optim}/** to ruff format (#144548) 2025-06-14 11:27:04 +00:00
quantized [BE][PYFMT] migrate PYFMT for {torch,test}/{nn,optim}/** to ruff format (#144548) 2025-06-14 11:27:04 +00:00
utils [2/N] Use 'is' in callable comparisons (#166685) 2025-10-31 08:08:07 +00:00
__init__.py
_reduction.py Fix flake8 B028 warnings (#166224) 2025-10-26 06:18:55 +00:00
common_types.py [2/N] Apply ruff UP035 check in torch files (#164054) 2025-09-29 03:35:32 +00:00
cpp.py Fix error suppression syntax in utils and nn (#166242) 2025-10-26 05:21:07 +00:00
functional.py Revert "[2/N] Add strict parameter to Python zip calls (#166257)" 2025-10-30 13:20:00 +00:00
functional.pyi.in Revert "Add label_smoothing param in nn.BCELoss and nn.BCEWithLogitsLoss (#150282)" 2025-08-13 09:01:52 +00:00
grad.py
init.py Fix flake8 B028 warnings (#166224) 2025-10-26 06:18:55 +00:00
parameter.py Fix error suppression syntax in utils and nn (#166242) 2025-10-26 05:21:07 +00:00
parameter.pyi