Commit a6f51be
[Dynamo] Guard serialization for NN_MODULE (pytorch#152725)
Throws an error when attempting to serialize an NN_MODULE guard. It is not supported because it uses the unsupported ID_MATCH guard (pytorch#152330):
https://github.com/pytorch/pytorch/blob/a6dd1c2208f29a3169c1fe96bf4e79a10aa5647d/torch/_dynamo/guards.py#L1738-L1739
Pull Request resolved: pytorch#152725
Approved by: https://github.com/jansel1 parent 2cf7fd0 commit a6f51be
File tree
2 files changed
+20
-0
lines changed- test/dynamo
- torch/_dynamo
2 files changed
+20
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
604 | 605 | | |
605 | 606 | | |
606 | 607 | | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
607 | 624 | | |
608 | 625 | | |
609 | 626 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1740 | 1740 | | |
1741 | 1741 | | |
1742 | 1742 | | |
| 1743 | + | |
| 1744 | + | |
| 1745 | + | |
1743 | 1746 | | |
1744 | 1747 | | |
1745 | 1748 | | |
| |||
0 commit comments