pytorch/torch/nn
Yuanyuan Chen fb64da0791 [2/N] Use "is" in python type comparison (#165142)
This is follow-up of #165037. It generally recommended to use `is/is not` to compare types. Therefore this series of changes apply this suggestion in the code base, and it aims to finally enabling related linter checks.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/165142
Approved by: https://github.com/albanD
2025-10-10 15:36:44 +00:00
..
attention Add Flash Attention support to FlexAttention (#161118) 2025-10-10 01:23:37 +00:00
backends
intrinsic
modules [2/N] Use "is" in python type comparison (#165142) 2025-10-10 15:36:44 +00:00
parallel Revert "[2/N] More ruff SIM fixes (#165031)" 2025-10-10 13:42:14 +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 Add suppressions to torch/_inductor (#165062) 2025-10-09 20:34:20 +00:00
__init__.py
_reduction.py
common_types.py [2/N] Apply ruff UP035 check in torch files (#164054) 2025-09-29 03:35:32 +00:00
cpp.py Pyrefly suppressions 7/n (#164913) 2025-10-08 07:27:17 +00:00
functional.py Add scaled_mm python API, test (#164142) 2025-10-09 12:43:18 +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 Pyrefly suppressions 7/n (#164913) 2025-10-08 07:27:17 +00:00
parameter.py Pyrefly suppressions 7/n (#164913) 2025-10-08 07:27:17 +00:00
parameter.pyi