pytorch/torch/_subclasses
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
..
__init__.py [BE][Easy][14/19] enforce style for empty lines in import segments in torch/_[a-c]*/ and torch/_[e-h]*/ and torch/_[j-z]*/ (#129765) 2024-07-31 10:42:50 +00:00
_fake_tensor_utils.py Fix pyrefly error syntax (2/n) (#166448) 2025-10-29 00:36:40 +00:00
fake_impls.py remove more (#164753) 2025-10-08 14:23:38 +00:00
fake_tensor.py [2/N] Use 'is' in callable comparisons (#166685) 2025-10-31 08:08:07 +00:00
fake_utils.py [2/N] Fix ruff warnings (#164460) 2025-10-04 03:40:32 +00:00
functional_tensor.py [2/N] Use 'is' in callable comparisons (#166685) 2025-10-31 08:08:07 +00:00
meta_utils.py Fix pyrefly errors on main (#166548) 2025-10-30 16:47:27 +00:00
schema_check_mode.py [2/N] Use "is" in python type comparison (#165142) 2025-10-10 15:36:44 +00:00