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

Method clone

plugin/gridAnchorPlugin/gridAnchorPlugin.cpp:354–367  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

352}
353
354IPluginV2Ext* GridAnchorGenerator::clone() const noexcept
355{
356 try
357 {
358 IPluginV2Ext* plugin = new GridAnchorGenerator(mParam.data(), mNumLayers, mPluginName.c_str());
359 plugin->setPluginNamespace(mPluginNamespace.c_str());
360 return plugin;
361 }
362 catch (std::exception const& e)
363 {
364 caughtError(e);
365 }
366 return nullptr;
367}
368
369GridAnchorBasePluginCreator::GridAnchorBasePluginCreator()
370{

Callers

nothing calls this directly

Calls 4

caughtErrorFunction · 0.85
c_strMethod · 0.80
dataMethod · 0.45
setPluginNamespaceMethod · 0.45

Tested by

no test coverage detected