Enable all SIM rules except disabled ones (#164645)

`SIM` rules are useful for simplifying boolean expressions and enhances code readability.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/164645
Approved by: https://github.com/ezyang
This commit is contained in:
Yuanyuan Chen
2025-10-05 07:38:25 +00:00
committed by PyTorch MergeBot
parent 3c5ca685d6
commit 321e602692
97 changed files with 182 additions and 255 deletions

View File

@ -942,7 +942,7 @@ def forward(self, scores_1, mask_1, value_1):
# not exercised in test_ops_gradients atm. The problem is not
# complex32 per-se (which is supported by data movement only ops)
# but that when we do backwards we expect other ops like add to work
and not dtype == torch.complex32
and dtype != torch.complex32
)
samples = op.sample_inputs(device, dtype, requires_grad=requires_grad)