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

Method clone

plugin/normalizePlugin/normalizePlugin.cpp:266–283  ·  view source on GitHub ↗

Clone the plugin

Source from the content-addressed store, hash-verified

264
265// Clone the plugin
266IPluginV2Ext* Normalize::clone() const noexcept
267{
268 try
269 {
270 // Create a new instance
271 IPluginV2Ext* plugin
272 = new Normalize(&mWeights, mNbWeights, mScalarScale, acrossSpatial, channelShared, eps, C, H, W);
273
274 // Set the namespace
275 plugin->setPluginNamespace(mPluginNamespace.c_str());
276 return plugin;
277 }
278 catch (std::exception const& e)
279 {
280 caughtError(e);
281 }
282 return nullptr;
283}
284
285NormalizePluginCreator::NormalizePluginCreator()
286{

Callers

nothing calls this directly

Calls 3

caughtErrorFunction · 0.85
c_strMethod · 0.80
setPluginNamespaceMethod · 0.45

Tested by

no test coverage detected