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

Method clone

plugin/priorBoxPlugin/priorBoxPlugin.cpp:278–291  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

276}
277
278IPluginV2Ext* PriorBox::clone() const noexcept
279{
280 try
281 {
282 PriorBox* obj = new PriorBox(mParam, mH, mW);
283 obj->setPluginNamespace(mPluginNamespace.c_str());
284 return obj;
285 }
286 catch (std::exception const& e)
287 {
288 caughtError(e);
289 }
290 return nullptr;
291}
292
293// Set plugin namespace
294void PriorBox::setPluginNamespace(char const* pluginNamespace) noexcept

Callers

nothing calls this directly

Calls 3

caughtErrorFunction · 0.85
c_strMethod · 0.80
setPluginNamespaceMethod · 0.45

Tested by

no test coverage detected