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

Method clone

plugin/detectionLayerPlugin/detectionLayerPlugin.cpp:184–197  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

182}
183
184IPluginV2Ext* DetectionLayer::clone() const noexcept
185{
186 try
187 {
188 DetectionLayer* plugin = new DetectionLayer(*this);
189 plugin->setPluginNamespace(mNameSpace.c_str());
190 return plugin;
191 }
192 catch (std::exception const& e)
193 {
194 caughtError(e);
195 }
196 return nullptr;
197}
198
199void DetectionLayer::setPluginNamespace(char const* libNamespace) noexcept
200{

Callers

nothing calls this directly

Calls 3

caughtErrorFunction · 0.85
c_strMethod · 0.80
setPluginNamespaceMethod · 0.45

Tested by

no test coverage detected