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

Method clone

plugin/scatterPlugin/scatterPlugin.cpp:229–243  ·  view source on GitHub ↗

Clone the plugin

Source from the content-addressed store, hash-verified

227
228// Clone the plugin
229IPluginV2DynamicExt* ScatterND::clone() const noexcept
230{
231 try
232 {
233 // Create a new instance
234 ScatterND* plugin = new ScatterND();
235 plugin->setPluginNamespace(mPluginNamespace.c_str());
236 return plugin;
237 }
238 catch (std::exception const& e)
239 {
240 caughtError(e);
241 }
242 return nullptr;
243}
244
245ScatterNDPluginCreator::ScatterNDPluginCreator()
246{

Callers

nothing calls this directly

Calls 3

caughtErrorFunction · 0.85
c_strMethod · 0.80
setPluginNamespaceMethod · 0.45

Tested by

no test coverage detected