Commit 157e88b
shardTensor metadata recalc after checkpoint state_dict (pytorch#4146)
Summary:
Pull Request resolved: pytorch#4146
X-link: facebookresearch/FBGEMM#1227
Add ST metadata recalc into the DistributedCheckpointWrapper, so that all the state_dict calls will invoke recalc virtual PMT.
Reviewed By: pradeepfn
Differential Revision: D73567632
fbshipit-source-id: 40dbdaa6f51a0d58dcb48008688c1a9a3c8939e31 parent f257102 commit 157e88b
File tree
1 file changed
+6
-1
lines changed- fbgemm_gpu/fbgemm_gpu/tbe/ssd/utils
1 file changed
+6
-1
lines changedLines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
| 162 | + | |
| 163 | + | |
162 | 164 | | |
163 | 165 | | |
164 | 166 | | |
| |||
169 | 171 | | |
170 | 172 | | |
171 | 173 | | |
| 174 | + | |
| 175 | + | |
172 | 176 | | |
173 | 177 | | |
174 | 178 | | |
175 | 179 | | |
176 | 180 | | |
177 | 181 | | |
178 | 182 | | |
179 | | - | |
| 183 | + | |
| 184 | + | |
180 | 185 | | |
181 | 186 | | |
182 | 187 | | |
| |||
0 commit comments