Commit 6d25060
Lazy imports in detectron2
Summary: This should reduce most of the import time for `detectron2.engine` (which is about 0.7s currently, see https://fburl.com/scuba/import_prof/6tywe8xm)
Reviewed By: ppwwyyxx
Differential Revision: D26072937
fbshipit-source-id: d34aae9c974f4a3d8ec97595ab6f216094d86f151 parent 82b9b21 commit 6d25060
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
| |||
198 | 197 | | |
199 | 198 | | |
200 | 199 | | |
| 200 | + | |
| 201 | + | |
201 | 202 | | |
202 | 203 | | |
203 | 204 | | |
| |||
343 | 344 | | |
344 | 345 | | |
345 | 346 | | |
| 347 | + | |
| 348 | + | |
346 | 349 | | |
347 | 350 | | |
348 | 351 | | |
| |||
0 commit comments