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

Method clone

plugin/cropAndResizePlugin/cropAndResizePlugin.cpp:345–359  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

343}
344
345IPluginV2Ext* CropAndResizePlugin::clone() const noexcept
346{
347 try
348 {
349 IPluginV2Ext* plugin
350 = new CropAndResizePlugin(mCropWidth, mCropHeight, mDepth, mInputWidth, mInputHeight, mNumBoxes);
351 plugin->setPluginNamespace(mNamespace.c_str());
352 return plugin;
353 }
354 catch (std::exception const& e)
355 {
356 caughtError(e);
357 }
358 return nullptr;
359}
360
361IPluginV2DynamicExt* CropAndResizeDynamicPlugin::clone() const noexcept
362{

Callers

nothing calls this directly

Calls 3

caughtErrorFunction · 0.85
c_strMethod · 0.80
setPluginNamespaceMethod · 0.45

Tested by

no test coverage detected