| 157 | } |
| 158 | |
| 159 | bool initNvonnxparser() |
| 160 | { |
| 161 | #if !TRT_STATIC |
| 162 | static LibraryPtr libnvonnxparserPtr{}; |
| 163 | auto fetchPtrs = [](DynamicLibrary* l) { |
| 164 | pCreateNvOnnxParserInternal = l->symbolAddress<void*(void*, void*, int)>("createNvOnnxParser_INTERNAL"); |
| 165 | }; |
| 166 | return initLibrary(libnvonnxparserPtr, kNVONNXPARSER_LIBNAME, fetchPtrs); |
| 167 | #else |
| 168 | pCreateNvOnnxParserInternal = createNvOnnxParser_INTERNAL; |
| 169 | return true; |
| 170 | #endif // !TRT_STATIC |
| 171 | } |
| 172 | |
| 173 | bool initNvparsers() |
| 174 | { |
no test coverage detected