Move Sympy printers to torch/utils/_sympy/printers.py (#140597)

Pull Request resolved: https://github.com/pytorch/pytorch/pull/140597
Approved by: https://github.com/ezyang, https://github.com/anijain2305
This commit is contained in:
Isuru Fernando
2024-11-25 22:22:07 +00:00
committed by PyTorch MergeBot
parent 29ca44839e
commit 44186a0a4e
20 changed files with 589 additions and 579 deletions

View File

@ -3570,7 +3570,7 @@ class GraphModule(torch.nn.Module):
"cast_symbool_to_symint_guardless(L['pred']) == 1",
]
false_guard_code = [
"Ne(cast_symbool_to_symint_guardless(L['pred']), 1)",
"cast_symbool_to_symint_guardless(L['pred']) != 1",
]
test_symbool_guards(
f,