Commit 8759ba7
committed
"Fix" static initialization order fiasco
that's bad. within the runtime library, the call to TORCH_LIBRARY in
register_trt_op.cpp relies on the fact that TRTEngine is already
registrered, which is done through another static object initialization,
in a different compilation unit (TRTEngine.cpp)1 parent 46311f1 commit 8759ba7
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | | - | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
0 commit comments