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

Method clone

plugin/proposalPlugin/proposalPlugin.cpp:477–492  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

475}
476
477IPluginV2Ext* ProposalPlugin::clone() const noexcept
478{
479 try
480 {
481 IPluginV2Ext* plugin = new ProposalPlugin(mInputHeight, mInputWidth, mRpnHeight, mRpnWidth, mRpnStdScaling,
482 mRpnStride, mBboxMinSize, mNmsIouThreshold, mPreNmsTopN, mMaxBoxNum, &mAnchorSizes[0], mAnchorSizeNum,
483 &mAnchorRatios[0], mAnchorRatioNum);
484 plugin->setPluginNamespace(mNamespace.c_str());
485 return plugin;
486 }
487 catch (std::exception const& e)
488 {
489 caughtError(e);
490 }
491 return nullptr;
492}
493
494IPluginV2DynamicExt* ProposalDynamicPlugin::clone() const noexcept
495{

Callers

nothing calls this directly

Calls 3

caughtErrorFunction · 0.85
c_strMethod · 0.80
setPluginNamespaceMethod · 0.45

Tested by

no test coverage detected