Commit 9eb0520
[dynamo] Fix side-effect handling for pre-existing
Previously we never replayed side effects to `DequeVariable` with a
source; the bug was already in the `test_deque_input` test, but went
unnoticed because we didn't check the deque objects.
This patch adds limited but practical support for this (see comments in
`side_effects.py` for why limited), and updates the deque tests to check
for this.
Pull Request resolved: pytorch#141714
Approved by: https://github.com/jansel
ghstack dependencies: pytorch#141713collections.deque (pytorch#141714)1 parent f2ce2d4 commit 9eb0520
File tree
3 files changed
+40
-16
lines changed- test/dynamo
- torch/_dynamo
- variables
3 files changed
+40
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9387 | 9387 | | |
9388 | 9388 | | |
9389 | 9389 | | |
9390 | | - | |
9391 | | - | |
9392 | | - | |
9393 | | - | |
9394 | | - | |
| 9390 | + | |
| 9391 | + | |
9395 | 9392 | | |
9396 | 9393 | | |
9397 | 9394 | | |
| |||
9400 | 9397 | | |
9401 | 9398 | | |
9402 | 9399 | | |
9403 | | - | |
| 9400 | + | |
| 9401 | + | |
9404 | 9402 | | |
9405 | 9403 | | |
9406 | 9404 | | |
9407 | 9405 | | |
9408 | | - | |
9409 | | - | |
9410 | | - | |
9411 | | - | |
9412 | | - | |
| 9406 | + | |
| 9407 | + | |
9413 | 9408 | | |
9414 | 9409 | | |
9415 | 9410 | | |
| |||
9420 | 9415 | | |
9421 | 9416 | | |
9422 | 9417 | | |
9423 | | - | |
| 9418 | + | |
| 9419 | + | |
9424 | 9420 | | |
9425 | 9421 | | |
9426 | 9422 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
562 | 562 | | |
563 | 563 | | |
564 | 564 | | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
565 | 595 | | |
566 | 596 | | |
567 | 597 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1326 | 1326 | | |
1327 | 1327 | | |
1328 | 1328 | | |
1329 | | - | |
1330 | | - | |
1331 | | - | |
1332 | | - | |
| 1329 | + | |
| 1330 | + | |
1333 | 1331 | | |
1334 | 1332 | | |
1335 | 1333 | | |
| |||
0 commit comments