Commit 13ea0f2
[dynamo][dynamic] Recompilation hint for nn module integer attributes (pytorch#154867)
For program like this
```
class Mod(torch.nn.Module):
def __init__(self):
super().__init__()
self.c = 0
def forward(self, x):
self.c += 1
return x * self.c
```
You can check the recompile reasons at https://manifold.edge.x2p.facebook.net/v0/read/tree/logs/.tmpzv9z6Q/index.html?bucketName=tlparse_reports&apiKey=tlparse_reports-key&withPayload=1&timeoutMsec=10000

Pull Request resolved: pytorch#154867
Approved by: https://github.com/zou35191 parent a14f427 commit 13ea0f2
3 files changed
+46
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1665 | 1665 | | |
1666 | 1666 | | |
1667 | 1667 | | |
1668 | | - | |
| 1668 | + | |
1669 | 1669 | | |
1670 | 1670 | | |
1671 | 1671 | | |
| |||
1762 | 1762 | | |
1763 | 1763 | | |
1764 | 1764 | | |
1765 | | - | |
1766 | | - | |
1767 | | - | |
| 1765 | + | |
| 1766 | + | |
| 1767 | + | |
| 1768 | + | |
| 1769 | + | |
| 1770 | + | |
| 1771 | + | |
| 1772 | + | |
1768 | 1773 | | |
1769 | 1774 | | |
1770 | 1775 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
901 | 902 | | |
902 | 903 | | |
903 | 904 | | |
| 905 | + | |
904 | 906 | | |
905 | 907 | | |
906 | 908 | | |
| |||
909 | 911 | | |
910 | 912 | | |
911 | 913 | | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
912 | 924 | | |
913 | 925 | | |
914 | 926 | | |
| |||
917 | 929 | | |
918 | 930 | | |
919 | 931 | | |
| 932 | + | |
920 | 933 | | |
921 | 934 | | |
922 | 935 | | |
| |||
925 | 938 | | |
926 | 939 | | |
927 | 940 | | |
| 941 | + | |
928 | 942 | | |
929 | 943 | | |
930 | 944 | | |
| |||
935 | 949 | | |
936 | 950 | | |
937 | 951 | | |
| 952 | + | |
938 | 953 | | |
939 | 954 | | |
940 | 955 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1807 | 1807 | | |
1808 | 1808 | | |
1809 | 1809 | | |
1810 | | - | |
| 1810 | + | |
| 1811 | + | |
| 1812 | + | |
| 1813 | + | |
| 1814 | + | |
| 1815 | + | |
| 1816 | + | |
| 1817 | + | |
| 1818 | + | |
| 1819 | + | |
| 1820 | + | |
| 1821 | + | |
| 1822 | + | |
| 1823 | + | |
| 1824 | + | |
| 1825 | + | |
| 1826 | + | |
| 1827 | + | |
| 1828 | + | |
| 1829 | + | |
| 1830 | + | |
| 1831 | + | |
1811 | 1832 | | |
1812 | 1833 | | |
1813 | 1834 | | |
| |||
0 commit comments