Commit 31bebde
Fix torch export issue
Summary: X-link: fairinternal/detectron2#604 Pull Request resolved: #5334 Add a check to deal with dynamic shapes so that the model can be exported with `torch.export`. This check prevents the graph break caused by the SymInt by delaying the assertion to runtime. Reviewed By: wat3rBro Differential Revision: D60126415 fbshipit-source-id: a2a75530db523bfdde984b890595e02360d8e07f1 parent 2a420ed commit 31bebde
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
87 | 92 | | |
88 | 93 | | |
89 | 94 | | |
| |||
0 commit comments