MCPcopy Create free account
hub / github.com/NVIDIA/TensorRT / initNvonnxparser

Function initNvonnxparser

samples/trtexec/trtexec.cpp:159–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157}
158
159bool 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
173bool initNvparsers()
174{

Callers 1

createONNXParserFunction · 0.85

Calls 1

initLibraryFunction · 0.85

Tested by

no test coverage detected