| 1270 | } |
| 1271 | |
| 1272 | std::string getLayerInformation( |
| 1273 | nvinfer1::ICudaEngine* engine, nvinfer1::IExecutionContext* context, nvinfer1::LayerInformationFormat format) |
| 1274 | { |
| 1275 | auto runtime = std::unique_ptr<IRuntime>{createRuntime()}; |
| 1276 | auto inspector = std::unique_ptr<IEngineInspector>(engine->createEngineInspector()); |
| 1277 | if (context != nullptr) |
| 1278 | { |
| 1279 | inspector->setExecutionContext(context); |
| 1280 | } |
| 1281 | std::string result = inspector->getEngineInformation(format); |
| 1282 | return result; |
| 1283 | } |
| 1284 | |
| 1285 | void Binding::fill(std::string const& fileName) |
| 1286 | { |
no test coverage detected