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

Method clone

plugin/nmsPlugin/nmsPlugin.cpp:378–396  ·  view source on GitHub ↗

Cloning the plugin

Source from the content-addressed store, hash-verified

376
377// Cloning the plugin
378IPluginV2Ext* DetectionOutput::clone() const noexcept
379{
380 try
381 {
382 // Create a new instance
383 auto* plugin = new DetectionOutput(param, C1, C2, numPriors);
384 plugin->mType = mType;
385 // Set the namespace
386 plugin->setPluginNamespace(mPluginNamespace.c_str());
387 // set mScoreBits
388 plugin->setScoreBits(mScoreBits);
389 return plugin;
390 }
391 catch (std::exception const& e)
392 {
393 caughtError(e);
394 }
395 return nullptr;
396}
397
398IPluginV2DynamicExt* DetectionOutputDynamic::clone() const noexcept
399{

Callers

nothing calls this directly

Calls 4

caughtErrorFunction · 0.85
c_strMethod · 0.80
setPluginNamespaceMethod · 0.45
setScoreBitsMethod · 0.45

Tested by

no test coverage detected