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

Method clone

plugin/regionPlugin/regionPlugin.cpp:402–418  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

400}
401
402IPluginV2Ext* Region::clone() const noexcept
403{
404 try
405 {
406 RegionParameters params{num, coords, classes, nullptr};
407 Region* plugin = new Region(params, C, H, W);
408 plugin->setPluginNamespace(mPluginNamespace.c_str());
409 plugin->setSoftmaxTree(smTree);
410
411 return plugin;
412 }
413 catch (std::exception const& e)
414 {
415 caughtError(e);
416 }
417 return nullptr;
418}
419
420// Set plugin namespace
421void Region::setPluginNamespace(char const* pluginNamespace) noexcept

Callers

nothing calls this directly

Calls 4

caughtErrorFunction · 0.85
c_strMethod · 0.80
setSoftmaxTreeMethod · 0.80
setPluginNamespaceMethod · 0.45

Tested by

no test coverage detected