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

Method deserializePlugin

plugin/detectionLayerPlugin/detectionLayerPlugin.cpp:101–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99}
100
101IPluginV2Ext* DetectionLayerPluginCreator::deserializePlugin(
102 char const* /*name*/, void const* data, size_t length) noexcept
103{
104 try
105 {
106 return new DetectionLayer(data, length);
107 }
108 catch (std::exception const& e)
109 {
110 caughtError(e);
111 }
112 return nullptr;
113}
114
115DetectionLayer::DetectionLayer(int32_t numClasses, int32_t keepTopk, float scoreThreshold, float iouThreshold)
116 : mNbClasses(numClasses)

Callers

nothing calls this directly

Calls 1

caughtErrorFunction · 0.85

Tested by

no test coverage detected