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

Method clone

plugin/batchedNMSPlugin/batchedNMSPlugin.cpp:488–508  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

486}
487
488IPluginV2Ext* BatchedNMSPlugin::clone() const noexcept
489{
490 try
491 {
492 auto* plugin = new BatchedNMSPlugin(param);
493 plugin->mBoxesSize = mBoxesSize;
494 plugin->mScoresSize = mScoresSize;
495 plugin->mNumPriors = mNumPriors;
496 plugin->setPluginNamespace(mNamespace.c_str());
497 plugin->setClipParam(mClipBoxes);
498 plugin->mPrecision = mPrecision;
499 plugin->setScoreBits(mScoreBits);
500 plugin->setCaffeSemantics(mCaffeSemantics);
501 return plugin;
502 }
503 catch (std::exception const& e)
504 {
505 caughtError(e);
506 }
507 return nullptr;
508}
509
510IPluginV2DynamicExt* BatchedNMSDynamicPlugin::clone() const noexcept
511{

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected