| 195 | } // namespace |
| 196 | |
| 197 | IRuntime* createRuntime() |
| 198 | { |
| 199 | if (!initNvinfer()) |
| 200 | { |
| 201 | return {}; |
| 202 | } |
| 203 | ASSERT(pCreateInferRuntimeInternal != nullptr); |
| 204 | return static_cast<IRuntime*>(pCreateInferRuntimeInternal(&gLogger.getTRTLogger(), NV_TENSORRT_VERSION)); |
| 205 | } |
| 206 | |
| 207 | IBuilder* createBuilder() |
| 208 | { |
nothing calls this directly
no test coverage detected