Commit a426837
Don't set replacement if lhs is in the free symbols of the rhs (pytorch#139250)
Fixes python test/dynamo/test_functions.py FunctionTests.test_is_integer
when we turn off specialize float on eager: pytorch#138915
Pull Request resolved: pytorch#139250
Approved by: https://github.com/ezyang1 parent 754b262 commit a426837
File tree
2 files changed
+16
-1
lines changed- test/dynamo
- torch/fx/experimental
2 files changed
+16
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
601 | 601 | | |
602 | 602 | | |
603 | 603 | | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
604 | 617 | | |
605 | 618 | | |
606 | 619 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5591 | 5591 | | |
5592 | 5592 | | |
5593 | 5593 | | |
5594 | | - | |
5595 | 5594 | | |
5596 | 5595 | | |
5597 | 5596 | | |
| 5597 | + | |
| 5598 | + | |
| 5599 | + | |
5598 | 5600 | | |
5599 | 5601 | | |
5600 | 5602 | | |
| |||
0 commit comments