| 99 | } |
| 100 | |
| 101 | IPluginV2Ext* 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 | |
| 115 | DetectionLayer::DetectionLayer(int32_t numClasses, int32_t keepTopk, float scoreThreshold, float iouThreshold) |
| 116 | : mNbClasses(numClasses) |
nothing calls this directly
no test coverage detected