mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
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:
committed by
PyTorch MergeBot
parent
3c5ca685d6
commit
321e602692
@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user