Commit 9cb160a
Make iter persistent for AdagradW (pytorch#4147)
Summary:
Pull Request resolved: pytorch#4147
X-link: facebookresearch/FBGEMM#1228
Make iter persistent for AdagradW optimizer state saving.
This is to avoid potential loss of the iter information when training is restarted.
Reviewed By: q10
Differential Revision: D747178481 parent 157e88b commit 9cb160a
File tree
1 file changed
+6
-4
lines changed- fbgemm_gpu/fbgemm_gpu
1 file changed
+6
-4
lines changedLines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1122 | 1122 | | |
1123 | 1123 | | |
1124 | 1124 | | |
| 1125 | + | |
1125 | 1126 | | |
1126 | 1127 | | |
1127 | 1128 | | |
| |||
1131 | 1132 | | |
1132 | 1133 | | |
1133 | 1134 | | |
| 1135 | + | |
| 1136 | + | |
| 1137 | + | |
1134 | 1138 | | |
1135 | 1139 | | |
1136 | 1140 | | |
| |||
1359 | 1363 | | |
1360 | 1364 | | |
1361 | 1365 | | |
| 1366 | + | |
1362 | 1367 | | |
1363 | 1368 | | |
1364 | 1369 | | |
| |||
2766 | 2771 | | |
2767 | 2772 | | |
2768 | 2773 | | |
2769 | | - | |
2770 | | - | |
2771 | | - | |
2772 | | - | |
| 2774 | + | |
2773 | 2775 | | |
2774 | 2776 | | |
2775 | 2777 | | |
| |||
0 commit comments