- Notifications
You must be signed in to change notification settings - Fork26.3k
Commit9f5153b
Preserve GrpahModule node stack trace after torch package deserializaion re-tracing (#155638)
Summary:urrently the node.meta["stack_trace"] is not preserved when we torch package/load GraphModule, which means the original stack trace is lost. When we re-trace the packaged graph module, we just get a stack trace like fx-generated._0......Adding the node.meta["stack_trace"] to torch packaged graph moduleTest Plan:```buck2 run @//mode/dev-nosan fbcode//caffe2/test:package -- -r TestPackageFX```Rollback Plan:Differential Revision: D76379692Pull Requestresolved:#155638Approved by:https://github.com/angelayi1 parentce9ba07 commit9f5153b
2 files changed
+39
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
190 | 211 | | |
191 | 212 | | |
192 | 213 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
207 | 215 | | |
208 | 216 | | |
209 | 217 | | |
| |||
859 | 867 | | |
860 | 868 | | |
861 | 869 | | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
862 | 880 | | |
863 | 881 | | |
864 | 882 | | |
| |||
0 commit comments
Comments
(0)